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

Commit 4727996

Browse files
committed
Fix assert to allow zero. OK'ed by Bryan.
1 parent a433f22 commit 4727996

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/backend/executor/execQual.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/executor/execQual.c,v 1.2 1996/09/16 05:33:20 scrappy Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/executor/execQual.c,v 1.3 1996/10/05 20:31:38 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -231,7 +231,7 @@ ExecEvalVar(Var *variable, ExprContext *econtext, bool *isNull)
231231
attnum = variable->varattno;
232232

233233
/* (See prolog for explanation of this Assert) */
234-
Assert(attnum < 0 ||
234+
Assert(attnum <= 0 ||
235235
variable->vartype == tuple_type->attrs[attnum-1]->atttypid)
236236

237237
/*

0 commit comments

Comments
 (0)