mirror of
https://github.com/MariaDB/server.git
synced 2026-05-15 19:37:16 +02:00
Merge remote-tracking branch 'origin/10.3' into 10.4
This commit is contained in:
commit
5211af1c16
39 changed files with 165 additions and 180 deletions
|
|
@ -10126,7 +10126,7 @@ void append_replace_regex(char* expr, char *expr_end, struct st_replace_regex* r
|
|||
/* Allow variable for the *entire* list of replacements */
|
||||
if (*p == '$')
|
||||
{
|
||||
const char *v_end;
|
||||
const char *v_end= 0;
|
||||
VAR *val= var_get(p, &v_end, 0, 1);
|
||||
|
||||
if (val)
|
||||
|
|
@ -10767,7 +10767,7 @@ REPLACE *init_replace(char * *from, char * *to,uint count,
|
|||
for (i=1 ; i <= found_sets ; i++)
|
||||
{
|
||||
pos=from[found_set[i-1].table_offset];
|
||||
rep_str[i].found= !memcmp(pos, "\\^", 3) ? 2 : 1;
|
||||
rep_str[i].found= !strncmp(pos, "\\^", 3) ? 2 : 1;
|
||||
rep_str[i].replace_string=to_array[found_set[i-1].table_offset];
|
||||
rep_str[i].to_offset=found_set[i-1].found_offset-start_at_word(pos);
|
||||
rep_str[i].from_offset=found_set[i-1].found_offset-replace_len(pos)+
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue