Обсуждение: pgsql-server/src/bin/psql tab-complete.c

Поиск
Список
Период
Сортировка

pgsql-server/src/bin/psql tab-complete.c

От
tgl@svr1.postgresql.org (Tom Lane)
Дата:
CVSROOT:    /cvsroot
Module name:    pgsql-server
Changes by:    tgl@svr1.postgresql.org    03/10/14 19:47:12

Modified files:
    src/bin/psql   : tab-complete.c

Log message:
    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).