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

Commit6e2341a

Browse files
committed
psql paren. with \r fix.
1 parent1a395b7 commit6e2341a

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

‎src/bin/psql/psql.c

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/bin/psql/Attic/psql.c,v 1.43 1996/12/28 02:12:31 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/bin/psql/Attic/psql.c,v 1.44 1997/01/02 06:45:25 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -1263,6 +1263,7 @@ MainLoop(PsqlSettings * settings, FILE * source)
12631263
/* main loop for getting queries and executing them */
12641264
while (!eof) {
12651265
if (slashCmdStatus==3) {
1266+
paren_level=0;
12661267
line=strdup(query);
12671268
query[0]='\0';
12681269
}else {
@@ -1376,8 +1377,12 @@ MainLoop(PsqlSettings * settings, FILE * source)
13761377
query_start,
13771378
query);
13781379
if (slashCmdStatus==1) {
1379-
free(line);
1380-
continue;
1380+
if (query[0]=='\0')
1381+
{
1382+
paren_level=0;
1383+
free(line);
1384+
continue;
1385+
}
13811386
}
13821387
if (slashCmdStatus==2) {
13831388
free(line);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp