Prevent evaluation of backticks while discarding unwanted arguments
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 19 Dec 2004 19:39:47 +0000 (19:39 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 19 Dec 2004 19:39:47 +0000 (19:39 +0000)
commit52a0ae13c00e6611c80414c3ded48e56753d80ce
treed743eeefaabd768208ff508b24c4ef7ff18f942f
parent74f3df3d205108402f8df04f11dfb704fb89482f
Prevent evaluation of backticks while discarding unwanted arguments
after an unknown or failed psql backslash command, and also while
discarding "extra" arguments of a putatively valid backslash command.
In the case of an unknown/failed command, make sure we discard the
whole rest of the line, rather than trying to resume at the next
backslash.  Per discussion with Thomer Gil.
src/bin/psql/command.c
src/bin/psql/psqlscan.h
src/bin/psql/psqlscan.l