Skip to content

Commit 96c40c6

Browse files
committed
Add missing schema-qualification in tab completion query.
1 parent e15d53e commit 96c40c6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/bin/psql/tab-complete.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* Copyright (c) 2000-2010, PostgreSQL Global Development Group
55
*
6-
* $PostgreSQL: pgsql/src/bin/psql/tab-complete.c,v 1.189 2010/01/02 16:58:00 momjian Exp $
6+
* $PostgreSQL: pgsql/src/bin/psql/tab-complete.c,v 1.190 2010/01/02 21:28:46 tgl Exp $
77
*/
88

99
/*----------------------------------------------------------------------
@@ -387,7 +387,7 @@ static const SchemaQuery Query_for_list_of_views = {
387387

388388
#define Query_for_list_of_template_databases \
389389
"SELECT pg_catalog.quote_ident(datname) FROM pg_catalog.pg_database "\
390-
" WHERE substring(pg_catalog.quote_ident(datname),1,%d)='%s' and datistemplate IS TRUE"
390+
" WHERE substring(pg_catalog.quote_ident(datname),1,%d)='%s' AND datistemplate"
391391

392392
#define Query_for_list_of_databases \
393393
"SELECT pg_catalog.quote_ident(datname) FROM pg_catalog.pg_database "\
@@ -404,9 +404,9 @@ static const SchemaQuery Query_for_list_of_views = {
404404

405405
#define Query_for_list_of_languages \
406406
"SELECT pg_catalog.quote_ident(lanname) "\
407-
" FROM pg_language "\
407+
" FROM pg_catalog.pg_language "\
408408
" WHERE lanname != 'internal' "\
409-
" AND substring(pg_catalog.quote_ident(lanname),1,%d)='%s' "
409+
" AND substring(pg_catalog.quote_ident(lanname),1,%d)='%s'"
410410

411411
#define Query_for_list_of_schemas \
412412
"SELECT pg_catalog.quote_ident(nspname) FROM pg_catalog.pg_namespace "\

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy