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
02549a2d
Commit
02549a2d
authored
May 12, 2001
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add comment to explain need for bizarre-looking coding in HandleSlashCmds.
parent
2e1579a9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
src/bin/psql/command.c
src/bin/psql/command.c
+5
-5
No files found.
src/bin/psql/command.c
View file @
02549a2d
...
...
@@ -3,7 +3,7 @@
*
* Copyright 2000 by PostgreSQL Global Development Group
*
* $Header: /cvsroot/pgsql/src/bin/psql/command.c,v 1.5
2 2001/05/09 17:29:10 momjian
Exp $
* $Header: /cvsroot/pgsql/src/bin/psql/command.c,v 1.5
3 2001/05/12 17:37:15 tgl
Exp $
*/
#include "postgres_fe.h"
#include "command.h"
...
...
@@ -132,16 +132,16 @@ HandleSlashCmds(const char *line,
{
/*
* If the command was not recognized, try inserting a space after
* the first letter and call again. The one letter commands allow
* arguments to start immediately after the command, but that is
* no longer encouraged.
* If the command was not recognized, try to parse it as a one-letter
* command with immediately following argument (a still-supported,
* but no longer encouraged, syntax).
*/
char
new_cmd
[
2
];
new_cmd
[
0
]
=
my_line
[
0
];
new_cmd
[
1
]
=
'\0'
;
/* use line for options, because my_line was clobbered above */
status
=
exec_command
(
new_cmd
,
line
+
1
,
&
continue_parse
,
query_buf
);
/* continue_parse must be relative to my_line for calculation below */
...
...
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