]> granicus.if.org Git - postgresql/commit
Fix broken definition for function name in pgbench's exprscan.l.
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 7 Mar 2016 02:04:25 +0000 (21:04 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 7 Mar 2016 02:04:25 +0000 (21:04 -0500)
commit3899caf772c8dec5c79e553c91f8fc248ca686c9
treeb128249dea0d979dc5df240f17c1ac74c272406d
parentfd45d16f6212df15821684b231a44448389fb002
Fix broken definition for function name in pgbench's exprscan.l.

As written, this would accept e.g. 123e9 as a function name.  Aside
from being mildly astonishing, that would come back to haunt us if
we ever try to add float constants to the expression syntax.  Insist
that function names start with letters (or at least non-digits).

In passing reset yyline as well as yycol when starting a new expression.
This variable is useless since it's used nowhere, but if we're going
to have it we should have it act sanely.
src/bin/pgbench/exprscan.l