Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
postgres-lambda-diff
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakob Huber
postgres-lambda-diff
Commits
02549a2d
Commit
02549a2d
authored
24 years ago
by
Tom Lane
Browse files
Options
Downloads
Patches
Plain Diff
Add comment to explain need for bizarre-looking coding in HandleSlashCmds.
parent
2e1579a9
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/bin/psql/command.c
+5
-5
5 additions, 5 deletions
src/bin/psql/command.c
with
5 additions
and
5 deletions
src/bin/psql/command.c
+
5
−
5
View file @
02549a2d
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
*
*
* Copyright 2000 by PostgreSQL Global Development Group
* 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
"postgres_fe.h"
#include
"command.h"
#include
"command.h"
...
@@ -132,16 +132,16 @@ HandleSlashCmds(const char *line,
...
@@ -132,16 +132,16 @@ HandleSlashCmds(const char *line,
{
{
/*
/*
* If the command was not recognized, try inserting a space after
* If the command was not recognized, try to parse it as a one-letter
* the first letter and call again. The one letter commands allow
* command with immediately following argument (a still-supported,
* arguments to start immediately after the command, but that is
* but no longer encouraged, syntax).
* no longer encouraged.
*/
*/
char
new_cmd
[
2
];
char
new_cmd
[
2
];
new_cmd
[
0
]
=
my_line
[
0
];
new_cmd
[
0
]
=
my_line
[
0
];
new_cmd
[
1
]
=
'\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
);
status
=
exec_command
(
new_cmd
,
line
+
1
,
&
continue_parse
,
query_buf
);
/* continue_parse must be relative to my_line for calculation below */
/* continue_parse must be relative to my_line for calculation below */
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment