Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit02549a2

Browse files
committed
Add comment to explain need for bizarre-looking coding in HandleSlashCmds.
1 parent2e1579a commit02549a2

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

‎src/bin/psql/command.c

Lines changed: 5 additions & 5 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/command.c,v 1.52 2001/05/09 17:29:10 momjian Exp $
6+
* $Header: /cvsroot/pgsql/src/bin/psql/command.c,v 1.53 2001/05/12 17:37:15 tgl Exp $
77
*/
88
#include"postgres_fe.h"
99
#include"command.h"
@@ -132,16 +132,16 @@ HandleSlashCmds(const char *line,
132132
{
133133

134134
/*
135-
* If the command was not recognized, try inserting a space after
136-
* the first letter and call again. The one letter commands allow
137-
* arguments to start immediately after the command, but that is
138-
* no longer encouraged.
135+
* If the command was not recognized, try to parse it as a one-letter
136+
* command with immediately following argument (a still-supported,
137+
* but no longer encouraged, syntax).
139138
*/
140139
charnew_cmd[2];
141140

142141
new_cmd[0]=my_line[0];
143142
new_cmd[1]='\0';
144143

144+
/* use line for options, because my_line was clobbered above */
145145
status=exec_command(new_cmd,line+1,&continue_parse,query_buf);
146146

147147
/* continue_parse must be relative to my_line for calculation below */

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp