mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Allow floats of type 1.0e1
This commit is contained in:
@ -650,12 +650,9 @@ int yylex(void *arg)
|
||||
if (c == 'e' || c == 'E')
|
||||
{
|
||||
c = yyGet();
|
||||
if (c != '-' && c != '+' && !isdigit(c))
|
||||
{ // No exp sig found
|
||||
state= STATE_CHAR;
|
||||
break;
|
||||
}
|
||||
if (!isdigit(yyGet()))
|
||||
if (c == '-' || c == '+')
|
||||
c = yyGet(); // Skipp sign
|
||||
if (!isdigit(c))
|
||||
{ // No digit after sign
|
||||
state= STATE_CHAR;
|
||||
break;
|
||||
|
Reference in New Issue
Block a user