Skip to content

Commit

Permalink
sp: parser: support keys that starts with an underscore
Browse files Browse the repository at this point in the history
Signed-off-by: Eduardo Silva <[email protected]>
  • Loading branch information
edsiper committed Jun 10, 2019
1 parent 3d163c4 commit 02f73b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/stream_processor/parser/sql.l
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ RECORD_TIME return RECORD_TIME;
(-?[1-9][0-9]*|0)\.[0-9]+ { yylval->fval = atof(yytext); return FLOATING; }
\'([^']|'{2})*\' { yylval->string = remove_dup_qoutes(yytext + 1, yyleng - 2); return STRING; }

[A-Za-z][A-Za-z0-9_.]* { yylval->string = flb_strdup(yytext); return IDENTIFIER; }
[_A-Za-z][A-Za-z0-9_.]* { yylval->string = flb_strdup(yytext); return IDENTIFIER; }

"*" |
"," |
Expand Down

0 comments on commit 02f73b6

Please sign in to comment.