diff options
author | unknown <kent@mysql.com> | 2006-05-24 00:55:53 +0200 |
---|---|---|
committer | unknown <kent@mysql.com> | 2006-05-24 00:55:53 +0200 |
commit | 6a60accef25b70fcc87db20df02c028c6e38c73a (patch) | |
tree | abf866cbea4dcc9f5363defee88ee1d555dde106 /sql | |
parent | a171aa693e7f1c28ce67761621d032704fabde70 (diff) | |
download | mariadb-git-6a60accef25b70fcc87db20df02c028c6e38c73a.tar.gz |
don't let bugfix for bug#8303 break the bugfix for bug#8378
revert the fix for bug#8303
correct the test for bug#8378
mysql-test/r/ctype_sjis.result:
updated
mysql-test/t/ctype_sjis.test:
updated
sql/sql_lex.cc:
revert the fix for bug#8303
tests/mysql_client_test.c:
correct the test for bug#8378
Diffstat (limited to 'sql')
-rw-r--r-- | sql/sql_lex.cc | 30 |
1 files changed, 5 insertions, 25 deletions
diff --git a/sql/sql_lex.cc b/sql/sql_lex.cc index 16641ad6dd5..fbc8403cbbc 100644 --- a/sql/sql_lex.cc +++ b/sql/sql_lex.cc @@ -295,18 +295,7 @@ static char *get_text(LEX *lex) found_escape=1; if (lex->ptr == lex->end_of_query) return 0; -#ifdef USE_MB - int l; - if (use_mb(cs) && - (l = my_ismbchar(cs, - (const char *)lex->ptr, - (const char *)lex->end_of_query))) { - lex->ptr += l; - continue; - } - else -#endif - yySkip(); + yySkip(); } else if (c == sep) { @@ -335,9 +324,6 @@ static char *get_text(LEX *lex) { uchar *to; - /* Re-use found_escape for tracking state of escapes */ - found_escape= 0; - for (to=start ; str != end ; str++) { #ifdef USE_MB @@ -351,7 +337,7 @@ static char *get_text(LEX *lex) continue; } #endif - if (!found_escape && *str == '\\' && str+1 != end) + if (*str == '\\' && str+1 != end) { switch(*++str) { case 'n': @@ -377,20 +363,14 @@ static char *get_text(LEX *lex) *to++= '\\'; // remember prefix for wildcard /* Fall through */ default: - found_escape= 1; - str--; + *to++= *str; break; } } - else if (!found_escape && *str == sep) - { - found_escape= 1; - } + else if (*str == sep) + *to++= *str++; // Two ' or " else - { *to++ = *str; - found_escape= 0; - } } *to=0; lex->yytoklen=(uint) (to-start); |