1
0
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:
monty@hundin.mysql.fi
2001-06-28 15:24:28 +03:00
parent 96aac3f0f5
commit 3c3d0bbd57
3 changed files with 7 additions and 7 deletions

View File

@ -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;