rework of patch #879693 to support 0=1 in where clause

This commit is contained in:
brianb
2004-02-08 21:54:20 +00:00
parent 4a56f06da9
commit fed589b2e7
11 changed files with 129 additions and 64 deletions

View File

@@ -43,14 +43,14 @@ null { return NUL; }
(>=) { return GTEQ; }
like { return LIKE; }
[ \t\r] ;
\"[A-z][A-z0-9 _]*\" {
\"[A-z][A-z0-9 _#@]*\" {
yylval.name = strdup(&yytext[1]);
yylval.name[strlen(yylval.name)-1]='\0';
return IDENT;
}
[A-z][A-z0-9_]* { yylval.name = strdup(yytext); return NAME; }
[A-z][A-z0-9_#@]* { yylval.name = strdup(yytext); return NAME; }
'.*' { yylval.name = strdup(yytext); return STRING; }
'[A-z0-9 !@#$%^&*()-_+={}[\];:",.<>/?`~|\\]*' { yylval.name = strdup(yytext); return STRING; }
([0-9]+|([0-9]*\.[0-9+)([eE][-+]?[0-9]+)?) {
yylval.name = strdup(yytext); return NUMBER;
}