summaryrefslogtreecommitdiff
path: root/sql/sql_lex.cc
diff options
context:
space:
mode:
authorunknown <monty@hundin.mysql.fi>2001-06-28 15:24:28 +0300
committerunknown <monty@hundin.mysql.fi>2001-06-28 15:24:28 +0300
commit9665a34a73b42209251759b32c003c0a01bfae2d (patch)
treee68147e4ae9c9aa0bdb03416fc4873823457480a /sql/sql_lex.cc
parent93edcc74ef6d4c76cd07a31f908667804ff4164e (diff)
downloadmariadb-git-9665a34a73b42209251759b32c003c0a01bfae2d.tar.gz
Allow floats of type 1.0e1
Diffstat (limited to 'sql/sql_lex.cc')
-rw-r--r--sql/sql_lex.cc9
1 files changed, 3 insertions, 6 deletions
diff --git a/sql/sql_lex.cc b/sql/sql_lex.cc
index b8d2ee13b0e..a78fef62657 100644
--- a/sql/sql_lex.cc
+++ b/sql/sql_lex.cc
@@ -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;