Commit 2a2f6cfa authored by Tom Lane's avatar Tom Lane

Fix oversight: ignore-till-SYNC state should not ignore EOF ...

parent 22c4caef
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.344 2003/05/14 03:26:01 tgl Exp $ * $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.345 2003/05/14 18:40:37 tgl Exp $
* *
* NOTES * NOTES
* this is the "main" module of the postgres backend and * this is the "main" module of the postgres backend and
...@@ -309,6 +309,7 @@ SocketBackend(StringInfo inBuf) ...@@ -309,6 +309,7 @@ SocketBackend(StringInfo inBuf)
case 'X': /* terminate */ case 'X': /* terminate */
doing_extended_query_message = false; doing_extended_query_message = false;
ignore_till_sync = false;
break; break;
case 'B': /* bind */ case 'B': /* bind */
...@@ -2525,7 +2526,7 @@ PostgresMain(int argc, char *argv[], const char *username) ...@@ -2525,7 +2526,7 @@ PostgresMain(int argc, char *argv[], const char *username)
if (!IsUnderPostmaster) if (!IsUnderPostmaster)
{ {
puts("\nPOSTGRES backend interactive interface "); puts("\nPOSTGRES backend interactive interface ");
puts("$Revision: 1.344 $ $Date: 2003/05/14 03:26:01 $\n"); puts("$Revision: 1.345 $ $Date: 2003/05/14 18:40:37 $\n");
} }
/* /*
...@@ -2714,7 +2715,7 @@ PostgresMain(int argc, char *argv[], const char *username) ...@@ -2714,7 +2715,7 @@ PostgresMain(int argc, char *argv[], const char *username)
/* /*
* (6) process the command. But ignore it if we're skipping till Sync. * (6) process the command. But ignore it if we're skipping till Sync.
*/ */
if (ignore_till_sync) if (ignore_till_sync && firstchar != EOF)
continue; continue;
switch (firstchar) switch (firstchar)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment