Have psql escape bytes in strings for variables follow the backend

Bruce Momjian <bruce@momjian.us>

Commit: f13c132072fe39ecbabf662c440216d9ef74c9c4
Author: Bruce Momjian <bruce@momjian.us>
Date: 2005-05-30T14:50:35Z
Releases: 8.1.0
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.

Files

PathChange+/−
src/bin/psql/psqlscan.l modified +3 −22