Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit96c40c6

Browse files
committed
Add missing schema-qualification in tab completion query.
1 parente15d53e commit96c40c6

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/0216:58:00 momjian Exp $
6+
* $PostgreSQL: pgsql/src/bin/psql/tab-complete.c,v 1.190 2010/01/0221:28:46 tgl Exp $
77
*/
88

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

388388
#defineQuery_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
#defineQuery_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
#defineQuery_for_list_of_languages \
406406
"SELECT pg_catalog.quote_ident(lanname) "\
407-
" FROM pg_language "\
407+
" FROMpg_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
#defineQuery_for_list_of_schemas \
412412
"SELECT pg_catalog.quote_ident(nspname) FROM pg_catalog.pg_namespace "\

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp