]> granicus.if.org Git - postgresql/commit
Fix thinko in tok_is_keyword(): it was looking at the wrong union variant
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 25 Jun 2010 16:40:13 +0000 (16:40 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 25 Jun 2010 16:40:13 +0000 (16:40 +0000)
commit399da7d882dff22b7ad926fb07aafeda2feab999
tree52ce13ba93e80836a85ad95b3eb161e48c98f4bc
parent3bdd23932b2a1d0dcae5b10e639108c2430ca9f0
Fix thinko in tok_is_keyword(): it was looking at the wrong union variant
of YYSTYPE, and hence returning the wrong answer for cases where a plpgsql
"unreserved keyword" really does conflict with a variable name.  Obviously
I didn't test this enough :-(.  Per bug #5524 from Peter Gagarinov.
src/pl/plpgsql/src/gram.y
src/test/regress/expected/plpgsql.out
src/test/regress/sql/plpgsql.sql