mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-02-23 19:39:53 +08:00
Fix assert to allow zero. OK'ed by Bryan.
This commit is contained in:
parent
a433f22c24
commit
47279960a0
@ -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)
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user