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

Commit 649ffe1

Browse files
committed
Improve subquery error message, now says "More than one tuple returned
by subselect used as expression."
1 parent e1b212f commit 649ffe1

File tree

2 files changed

+3
-10
lines changed

2 files changed

+3
-10
lines changed

doc/README.NT

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,3 @@
1-
From: "Joost Kraaijeveld" <JKraaijeveld@askesis.nl>
2-
To: "Pgsql-Ports@Postgresql. Org" <pgsql-ports@postgreSQL.org>
3-
Subject: RE: [PORTS] Re: psql under win32
4-
Date: Wed, 21 Apr 1999 07:07:47 +0200
5-
Message-ID: <000001be8bb4$e59b0ab0$0300a8c0@abraracourcix.askesis.nl>
6-
MIME-Version: 1.0
7-
81
Installing PostgreSQL on NT:
92

103
---------------------------------------------------------------------------

src/backend/executor/nodeSubplan.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* Copyright (c) 1994, Regents of the University of California
77
*
88
* IDENTIFICATION
9-
* $Header: /cvsroot/pgsql/src/backend/executor/nodeSubplan.c,v 1.18 1999/12/16 22:19:44 wieck Exp $
9+
* $Header: /cvsroot/pgsql/src/backend/executor/nodeSubplan.c,v 1.19 1999/12/29 22:57:17 momjian Exp $
1010
*
1111
*-------------------------------------------------------------------------
1212
*/
@@ -105,7 +105,7 @@ ExecSubPlan(SubPlan *node, List *pvar, ExprContext *econtext, bool *isNull)
105105
{
106106
/* cannot allow multiple input tuples for EXPR sublink */
107107
if (found)
108-
elog(ERROR, "ExecSubPlan: more than one tuple returned by expression subselect");
108+
elog(ERROR, "More than one tuple returned by subselect used as expression.");
109109
found = true;
110110
/*
111111
* We need to copy the subplan's tuple in case the result is of
@@ -126,7 +126,7 @@ ExecSubPlan(SubPlan *node, List *pvar, ExprContext *econtext, bool *isNull)
126126

127127
/* cannot allow multiple input tuples for MULTIEXPR sublink either */
128128
if (subLinkType == MULTIEXPR_SUBLINK && found)
129-
elog(ERROR, "ExecSubPlan: more than one tuple returned by expression subselect");
129+
elog(ERROR, "More than one tuple returned by subselect used as expression.");
130130

131131
found = true;
132132

0 commit comments

Comments
 (0)