Re-fix broken definition for function name in pgbench's exprscan.l.
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 7 Mar 2016 02:45:34 +0000 (21:45 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 7 Mar 2016 02:45:34 +0000 (21:45 -0500)
Wups, my first try wasn't quite right either.  Too focused on fixing
the existing bug, not enough on not introducing new ones.

src/bin/pgbench/exprscan.l

index cb51a98fd6b4be3551fee054f13027436a24c53f..fc7615f55859552c1fa72b8ef4cc8bd3a2275366 100644 (file)
@@ -61,7 +61,7 @@ space         [ \t\r\f]
                    yylval.ival = strtoint64(yytext);
                    return INTEGER;
                }
-{alpha}{alnum}+    {
+{alpha}{alnum}*    {
                    yycol += yyleng;
                    yylval.str = pg_strdup(yytext);
                    return FUNCTION;