]> granicus.if.org Git - postgresql/commit
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)
commitf13c132072fe39ecbabf662c440216d9ef74c9c4
tree075e75bb14c05717f229b7d314e3516963918de8
parent6616e23264a6da446c6c28aa46a54f61297cd729
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