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:
@ -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)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Reference in New Issue
Block a user