Skip to content

Commit 6495f4e

Browse files
committed
This patch fixes a "multi-line string literal" warning encountered
when compiling psql with GCC 3.1. Neil Conway
1 parent 19e0e35 commit 6495f4e

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
else if ((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-
UNION SELECT nspname FROM pg_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
else if (strcasecmp(prev4_wd, "GRANT") == 0 && strcasecmp(prev2_wd, "ON") == 0)
574576
COMPLETE_WITH_CONST("TO");

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