OSDN Git Service

Use PQescapeString to ensure that tab-completion queries are not messed
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 14 Oct 2003 22:47:12 +0000 (22:47 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 14 Oct 2003 22:47:12 +0000 (22:47 +0000)
commit77c1791a587f482504ad651ef4bc8012888a5e4a
treeb1cb53411f5cd92959c8334fd3d4d895423358fe
parent2a0f1c08d5db7225057b81a7cf8d21457ca83350
Use PQescapeString to ensure that tab-completion queries are not messed
up by quotes or backslashes in words that are being matched to database
names (per gripe from Ian Barwick, though I didn't use his patch).
Also fix possible memory leakage if _complete_with_query isn't run to
completion (not clear if that can happen or not, but be safe).
src/bin/psql/tab-complete.c