From 03b30d673288245cdcbd406f0ef275a4eb903965 Mon Sep 17 00:00:00 2001 From: Marc Olivier Bergeron Date: Mon, 4 Oct 2021 16:53:27 -0400 Subject: [PATCH] Fixed scientific notation bug where the float token containing a dot with an 'e' notation was dropped from the request completely. --- sql/sql_lex.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sql/sql_lex.cc b/sql/sql_lex.cc index 146a46047140..5a555049ffeb 100644 --- a/sql/sql_lex.cc +++ b/sql/sql_lex.cc @@ -1699,8 +1699,7 @@ static int lex_one_token(Lexer_yystype *yylval, THD *thd) { c = lip->yyGet(); if (c == '-' || c == '+') c = lip->yyGet(); // Skip sign if (!my_isdigit(cs, c)) { // No digit after sign - state = MY_LEX_CHAR; - break; + return (ABORT_SYM); } while (my_isdigit(cs, lip->yyGet())) ;