Fix assert to allow zero. OK'ed by Bryan.

This commit is contained in:
Bruce Momjian 1996-10-05 20:31:38 +00:00
parent a433f22c24
commit 47279960a0
1 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/executor/execQual.c,v 1.2 1996/09/16 05:33:20 scrappy Exp $
* $Header: /cvsroot/pgsql/src/backend/executor/execQual.c,v 1.3 1996/10/05 20:31:38 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@ -231,7 +231,7 @@ ExecEvalVar(Var *variable, ExprContext *econtext, bool *isNull)
attnum = variable->varattno;
/* (See prolog for explanation of this Assert) */
Assert(attnum < 0 ||
Assert(attnum <= 0 ||
variable->vartype == tuple_type->attrs[attnum-1]->atttypid)
/*