Handle sql queries where a double constant value has a trailing .

with no extra digits, e.g. "my_double_col" = 123.
This commit is contained in:
Nyall Dawson
2021-08-27 10:16:11 +10:00
committed by Evan Miller
parent 036f9b95c6
commit 4c61f2d49b

View File

@@ -113,7 +113,7 @@ strptime\( { return STRPTIME; }
return STRING;
}
(-?[0-9]+|(-?[0-9]*\.[0-9]+)(e[-+]?[0-9]+)?) {
(-?[0-9]+|(-?[0-9]*\.[0-9]*)(e[-+]?[0-9]+)?) {
yylval->name = g_strdup(yytext); return NUMBER;
}
~?(\/?[a-z0-9\.\-\_\!\~\'\(\)\%\xa0-\xff]+)+ {