diff options
author | unknown <bar@bar.mysql.r18.ru> | 2003-04-01 15:52:09 +0500 |
---|---|---|
committer | unknown <bar@bar.mysql.r18.ru> | 2003-04-01 15:52:09 +0500 |
commit | 158b54873a931859c768a01f88270927d3cda682 (patch) | |
tree | e150b071b41bd913be7a617346c394420d40ce95 /sql/sql_lex.cc | |
parent | 75bcfdb14ff403835610743e6e577abf5373c69d (diff) | |
download | mariadb-git-158b54873a931859c768a01f88270927d3cda682.tar.gz |
mbcharlen() is now used instead of ismbhead(). The last one has been removed.
Diffstat (limited to 'sql/sql_lex.cc')
-rw-r--r-- | sql/sql_lex.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sql/sql_lex.cc b/sql/sql_lex.cc index a5bed692293..88375b9469b 100644 --- a/sql/sql_lex.cc +++ b/sql/sql_lex.cc @@ -495,7 +495,7 @@ int yylex(void *arg, void *yythd) #if defined(USE_MB) && defined(USE_MB_IDENT) if (use_mb(cs)) { - if (my_ismbhead(cs, yyGetLast())) + if (my_mbcharlen(cs, yyGetLast()) > 1) { int l = my_ismbchar(cs, (const char *)lex->ptr-1, @@ -508,7 +508,7 @@ int yylex(void *arg, void *yythd) } while (ident_map[c=yyGet()]) { - if (my_ismbhead(cs, c)) + if (my_mbcharlen(cs, c) > 1) { int l; if ((l = my_ismbchar(cs, @@ -604,7 +604,7 @@ int yylex(void *arg, void *yythd) #if defined(USE_MB) && defined(USE_MB_IDENT) if (use_mb(cs)) { - if (my_ismbhead(cs, yyGetLast())) + if (my_mbcharlen(cs, yyGetLast()) > 1) { int l = my_ismbchar(cs, (const char *)lex->ptr-1, @@ -618,7 +618,7 @@ int yylex(void *arg, void *yythd) } while (ident_map[c=yyGet()]) { - if (my_ismbhead(cs, c)) + if (my_mbcharlen(cs, c) > 1) { int l; if ((l = my_ismbchar(cs, @@ -650,7 +650,7 @@ int yylex(void *arg, void *yythd) { while ((c=yyGet()) && c != delim && c != (uchar) NAMES_SEP_CHAR) { - if (my_ismbhead(cs, c)) + if (my_mbcharlen(cs, c) > 1) { int l; if ((l = my_ismbchar(cs, |