mirror of
https://github.com/postgres/postgres.git
synced 2025-07-09 22:41:56 +03:00
Add an "argisrow" field to NullTest nodes, following a plan made way back in
8.2beta but never carried out. This avoids repetitive tests of whether the argument is of scalar or composite type. Also, be a bit more paranoid about composite arguments in some places where we previously weren't checking.
This commit is contained in:
@ -8,7 +8,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $PostgreSQL: pgsql/src/backend/parser/parse_expr.c,v 1.251 2009/12/15 17:57:47 tgl Exp $
|
||||
* $PostgreSQL: pgsql/src/backend/parser/parse_expr.c,v 1.252 2010/01/01 23:03:10 tgl Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -276,6 +276,7 @@ transformExpr(ParseState *pstate, Node *expr)
|
||||
|
||||
n->arg = (Expr *) transformExpr(pstate, (Node *) n->arg);
|
||||
/* the argument can be any type, so don't coerce it */
|
||||
n->argisrow = type_is_rowtype(exprType((Node *) n->arg));
|
||||
result = expr;
|
||||
break;
|
||||
}
|
||||
|
Reference in New Issue
Block a user