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

Commit6495f4e

Browse files
committed
This patch fixes a "multi-line string literal" warning encountered
when compiling psql with GCC 3.1.Neil Conway
1 parent19e0e35 commit6495f4e

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

‎src/bin/psql/tab-complete.c

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* Copyright 2000 by PostgreSQL Global Development Group
55
*
6-
* $Header: /cvsroot/pgsql/src/bin/psql/tab-complete.c,v 1.54 2002/08/02 18:15:09 tgl Exp $
6+
* $Header: /cvsroot/pgsql/src/bin/psql/tab-complete.c,v 1.55 2002/08/04 05:01:57 momjian Exp $
77
*/
88

99
/*----------------------------------------------------------------------
@@ -567,8 +567,10 @@ psql_completion(char *text, int start, int end)
567567
*/
568568
elseif ((strcasecmp(prev3_wd,"GRANT")==0||strcasecmp(prev3_wd,"REVOKE")==0)&&
569569
strcasecmp(prev_wd,"ON")==0)
570-
COMPLETE_WITH_QUERY("SELECT relname FROM pg_catalog.pg_class WHERE relkind in ('r','i','S','v') AND substr(relname,1,%d)='%s'
571-
UNIONSELECTnspnameFROMpg_catalog.pg_namespace;");
570+
COMPLETE_WITH_QUERY("SELECT relname FROM pg_catalog.pg_class "
571+
"WHERE relkind in ('r','i','S','v') AND "
572+
"substr(relname,1,%d)='%s' UNION "
573+
"SELECT nspname FROM pg_catalog.pg_namespace;");
572574
/* Complete "GRANT * ON * " with "TO" */
573575
elseif (strcasecmp(prev4_wd,"GRANT")==0&&strcasecmp(prev2_wd,"ON")==0)
574576
COMPLETE_WITH_CONST("TO");

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp