aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiroshi Inoue <inoue@tpf.co.jp>2002-08-29 23:39:05 +0000
committerHiroshi Inoue <inoue@tpf.co.jp>2002-08-29 23:39:05 +0000
commit82ccb420d5c6f62cec1bf042cf0b6472fabdff42 (patch)
treea23dc0dd1b22c540d3d13ae3317e3387b4ae3a33
parent40f2eec503237b34854c2249a4b6182c4f4800e2 (diff)
downloadpostgresql-82ccb420d5c6f62cec1bf042cf0b6472fabdff42.tar.gz
postgresql-82ccb420d5c6f62cec1bf042cf0b6472fabdff42.zip
Fix a bug introduced in 7.2.
-rw-r--r--src/backend/tcop/postgres.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/backend/tcop/postgres.c b/src/backend/tcop/postgres.c
index d16edabfe3f..6988972e1d6 100644
--- a/src/backend/tcop/postgres.c
+++ b/src/backend/tcop/postgres.c
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.285 2002/08/29 07:22:23 ishii Exp $
+ * $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.286 2002/08/29 23:39:05 inoue Exp $
*
* NOTES
* this is the "main" module of the postgres backend and
@@ -751,7 +751,7 @@ pg_exec_query_string(StringInfo query_string, /* string to execute */
{
elog(DEBUG2, "ProcessQuery");
- if (querytree->originalQuery)
+ if (querytree->originalQuery || length(querytree_list) == 1)
{
/* original stmt can override default tag string */
ProcessQuery(querytree, plan, dest, completionTag);
@@ -1664,7 +1664,7 @@ PostgresMain(int argc, char *argv[], const char *username)
if (!IsUnderPostmaster)
{
puts("\nPOSTGRES backend interactive interface ");
- puts("$Revision: 1.285 $ $Date: 2002/08/29 07:22:23 $\n");
+ puts("$Revision: 1.286 $ $Date: 2002/08/29 23:39:05 $\n");
}
/*