diff options
Diffstat (limited to 'sql/sql_lex.cc')
-rw-r--r-- | sql/sql_lex.cc | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/sql/sql_lex.cc b/sql/sql_lex.cc index 00e1d30f209..b2ce5adaed6 100644 --- a/sql/sql_lex.cc +++ b/sql/sql_lex.cc @@ -1642,10 +1642,7 @@ int Lex_input_stream::lex_one_token(YYSTYPE *yylval, THD *thd) if (c == '-' || c == '+') c= yyGet(); // Skip sign if (!my_isdigit(cs, c)) - { // No digit after sign - state= MY_LEX_CHAR; - break; - } + return ABORT_SYM; // No digit after sign while (my_isdigit(cs, yyGet())) ; yylval->lex_str= get_token(0, yyLength()); return(FLOAT_NUM); |