Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 82ccb42

Browse files
author
Hiroshi Inoue
committed
Fix a bug introduced in 7.2.
1 parent 40f2eec commit 82ccb42

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/backend/tcop/postgres.c

Lines changed: 3 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.285 2002/08/29 07:22:23 ishii Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.286 2002/08/29 23:39:05 inoue Exp $
1212
*
1313
* NOTES
1414
* this is the "main" module of the postgres backend and
@@ -751,7 +751,7 @@ pg_exec_query_string(StringInfo query_string, /* string to execute */
751751
{
752752
elog(DEBUG2, "ProcessQuery");
753753

754-
if (querytree->originalQuery)
754+
if (querytree->originalQuery || length(querytree_list) == 1)
755755
{
756756
/* original stmt can override default tag string */
757757
ProcessQuery(querytree, plan, dest, completionTag);
@@ -1664,7 +1664,7 @@ PostgresMain(int argc, char *argv[], const char *username)
16641664
if (!IsUnderPostmaster)
16651665
{
16661666
puts("\nPOSTGRES backend interactive interface ");
1667-
puts("$Revision: 1.285 $ $Date: 2002/08/29 07:22:23 $\n");
1667+
puts("$Revision: 1.286 $ $Date: 2002/08/29 23:39:05 $\n");
16681668
}
16691669

16701670
/*

0 commit comments

Comments
 (0)