Fix some more boundary-case errors in psql variable substitution:

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 08a46ad4f688a1244eddb6f85f94283ec5b59a0a
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2002-07-03T16:47:46Z
Releases: 7.3.1
Fix some more boundary-case errors in psql variable substitution:
wasn't really right for case where :var is at the end of the line,
was definitely not right if var expanded to empty in that case,
and failed to recalculate thislen before jumping back to rescan.

Files

PathChange+/−
src/bin/psql/mainloop.c modified +19 −14