1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-28 23:42:10 +03:00

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

View File

@ -7,7 +7,7 @@
* *
* *
* IDENTIFICATION * 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; attnum = variable->varattno;
/* (See prolog for explanation of this Assert) */ /* (See prolog for explanation of this Assert) */
Assert(attnum < 0 || Assert(attnum <= 0 ||
variable->vartype == tuple_type->attrs[attnum-1]->atttypid) variable->vartype == tuple_type->attrs[attnum-1]->atttypid)
/* /*