From 6495f4e52ff0323df231aa234087f4424ce80105 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Sun, 4 Aug 2002 05:01:57 +0000 Subject: [PATCH] This patch fixes a "multi-line string literal" warning encountered when compiling psql with GCC 3.1. Neil Conway --- src/bin/psql/tab-complete.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/bin/psql/tab-complete.c b/src/bin/psql/tab-complete.c index 3eef1d55ee..3c0da27b75 100644 --- a/src/bin/psql/tab-complete.c +++ b/src/bin/psql/tab-complete.c @@ -3,7 +3,7 @@ * * Copyright 2000 by PostgreSQL Global Development Group * - * $Header: /cvsroot/pgsql/src/bin/psql/tab-complete.c,v 1.54 2002/08/02 18:15:09 tgl Exp $ + * $Header: /cvsroot/pgsql/src/bin/psql/tab-complete.c,v 1.55 2002/08/04 05:01:57 momjian Exp $ */ /*---------------------------------------------------------------------- @@ -567,8 +567,10 @@ psql_completion(char *text, int start, int end) */ else if ((strcasecmp(prev3_wd, "GRANT") == 0 || strcasecmp(prev3_wd, "REVOKE") == 0) && strcasecmp(prev_wd, "ON") == 0) - COMPLETE_WITH_QUERY("SELECT relname FROM pg_catalog.pg_class WHERE relkind in ('r','i','S','v') AND substr(relname,1,%d)='%s' -UNION SELECT nspname FROM pg_catalog.pg_namespace;"); + COMPLETE_WITH_QUERY("SELECT relname FROM pg_catalog.pg_class " + "WHERE relkind in ('r','i','S','v') AND " + "substr(relname,1,%d)='%s' UNION " + "SELECT nspname FROM pg_catalog.pg_namespace;"); /* Complete "GRANT * ON * " with "TO" */ else if (strcasecmp(prev4_wd, "GRANT") == 0 && strcasecmp(prev2_wd, "ON") == 0) COMPLETE_WITH_CONST("TO"); -- 2.40.0