diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2010-01-01 23:03:10 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2010-01-01 23:03:10 +0000 |
commit | 7839d35991f1c79a291e67635d5f4c5750c16e9b (patch) | |
tree | 98f44976c68f2ac0b707f4efcc8f3949cdc9ac68 /src/backend/nodes/equalfuncs.c | |
parent | 29c4ad98293e3c5cb3fcdd413a3f4904efff8762 (diff) | |
download | postgresql-7839d35991f1c79a291e67635d5f4c5750c16e9b.tar.gz postgresql-7839d35991f1c79a291e67635d5f4c5750c16e9b.zip |
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.
Diffstat (limited to 'src/backend/nodes/equalfuncs.c')
-rw-r--r-- | src/backend/nodes/equalfuncs.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/backend/nodes/equalfuncs.c b/src/backend/nodes/equalfuncs.c index e53b4a89e6e..8764ea99601 100644 --- a/src/backend/nodes/equalfuncs.c +++ b/src/backend/nodes/equalfuncs.c @@ -22,7 +22,7 @@ * Portions Copyright (c) 1994, Regents of the University of California * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/nodes/equalfuncs.c,v 1.377 2009/12/23 02:35:21 tgl Exp $ + * $PostgreSQL: pgsql/src/backend/nodes/equalfuncs.c,v 1.378 2010/01/01 23:03:10 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -623,6 +623,7 @@ _equalNullTest(NullTest *a, NullTest *b) { COMPARE_NODE_FIELD(arg); COMPARE_SCALAR_FIELD(nulltesttype); + COMPARE_SCALAR_FIELD(argisrow); return true; } |