提交 47279960 编写于 作者: B Bruce Momjian

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

上级 a433f22c
...@@ -7,7 +7,7 @@ ...@@ -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) ...@@ -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)
/* /*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册