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

Commit2a2f6cf

Browse files
committed
Fix oversight: ignore-till-SYNC state should not ignore EOF ...
1 parent22c4cae commit2a2f6cf

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

‎src/backend/tcop/postgres.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.344 2003/05/1403:26:01 tgl Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.345 2003/05/1418:40:37 tgl Exp $
1212
*
1313
* NOTES
1414
* this is the "main" module of the postgres backend and
@@ -309,6 +309,7 @@ SocketBackend(StringInfo inBuf)
309309

310310
case'X':/* terminate */
311311
doing_extended_query_message= false;
312+
ignore_till_sync= false;
312313
break;
313314

314315
case'B':/* bind */
@@ -2525,7 +2526,7 @@ PostgresMain(int argc, char *argv[], const char *username)
25252526
if (!IsUnderPostmaster)
25262527
{
25272528
puts("\nPOSTGRES backend interactive interface ");
2528-
puts("$Revision: 1.344 $ $Date: 2003/05/1403:26:01 $\n");
2529+
puts("$Revision: 1.345 $ $Date: 2003/05/1418:40:37 $\n");
25292530
}
25302531

25312532
/*
@@ -2714,7 +2715,7 @@ PostgresMain(int argc, char *argv[], const char *username)
27142715
/*
27152716
* (6) process the command. But ignore it if we're skipping till Sync.
27162717
*/
2717-
if (ignore_till_sync)
2718+
if (ignore_till_sync&&firstchar!=EOF)
27182719
continue;
27192720

27202721
switch (firstchar)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp