mirror of
https://github.com/MariaDB/server.git
synced 2025-04-11 17:55:34 +02:00
mysqltest bug: replace_regex /^foo/bar/ didn't work
This commit is contained in:
parent
a7b2c95a40
commit
15623fd7bb
1 changed files with 1 additions and 1 deletions
|
@ -10200,7 +10200,7 @@ int reg_replace(char** buf_p, int* buf_len_p, char *pattern,
|
|||
{
|
||||
/* find the match */
|
||||
err_code= regexec(&r,str_p, r.re_nsub+1, subs,
|
||||
(str_p == string) ? REG_NOTBOL : 0);
|
||||
(str_p == string) ? 0 : REG_NOTBOL);
|
||||
|
||||
/* if regular expression error (eg. bad syntax, or out of memory) */
|
||||
if (err_code && err_code != REG_NOMATCH)
|
||||
|
|
Loading…
Add table
Reference in a new issue