Have psql escape bytes in strings for variables follow the backend
authorBruce Momjian <bruce@momjian.us>
Mon, 30 May 2005 14:50:35 +0000 (14:50 +0000)
committerBruce Momjian <bruce@momjian.us>
Mon, 30 May 2005 14:50:35 +0000 (14:50 +0000)
commite71c148759e0138e8a27653a28afc1fba752bc58
treeb8171eb6b2d54e524736ccca9cd7a1e21a0dfa9c
parent22d638346cb441249d5ced02b5f5df645b5ced36
Have psql escape bytes in strings for variables follow the backend
conventions of only allowing octal, like \045.  Remove support for
\decimal, \0octal, and \0xhex which matches the strtol() function but
didn't make sense with backslashes.

These now return the same character:

test=> \set x '\54'
test=> \echo :x
,
test=> \set x '\054'
test=> \echo :x
,

THIS IS A BACKWARD COMPATIBILITY CHANGE.
src/bin/psql/psqlscan.l