Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
6495f4e5
Commit
6495f4e5
authored
Aug 04, 2002
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
This patch fixes a "multi-line string literal" warning encountered
when compiling psql with GCC 3.1. Neil Conway
parent
19e0e35b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
src/bin/psql/tab-complete.c
src/bin/psql/tab-complete.c
+5
-3
No files found.
src/bin/psql/tab-complete.c
View file @
6495f4e5
...
...
@@ -3,7 +3,7 @@
*
* Copyright 2000 by PostgreSQL Global Development Group
*
* $Header: /cvsroot/pgsql/src/bin/psql/tab-complete.c,v 1.5
4 2002/08/02 18:15:09 tgl
Exp $
* $Header: /cvsroot/pgsql/src/bin/psql/tab-complete.c,v 1.5
5 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"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment