OSDN Git Service

Make OFF keyword unreserved. It's not hard to imagine wanting to use 'off'
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Fri, 22 Oct 2010 14:37:38 +0000 (17:37 +0300)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Fri, 22 Oct 2010 14:44:50 +0000 (17:44 +0300)
commit5c84fe4607907b22e45433195fec800d23ac1f49
treee666cf6e58ef1e6083be156dab6485116c403fcc
parent71be8db5dfada851c45d6f4d1d7364456fd40be5
Make OFF keyword unreserved. It's not hard to imagine wanting to use 'off'
as a variable or column name, and it's not reserved in recent versions of
the SQL spec either. This became particularly annoying in 9.0, before that
PL/pgSQL replaced variable names in queries with parameter markers, so
it was possible to use OFF and many other backend parser keywords as
variable names. Because of that, backpatch to 9.0.
src/backend/parser/gram.y
src/include/parser/kwlist.h