diff options
author | Bruce Momjian <bruce@momjian.us> | 1998-10-02 16:28:04 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 1998-10-02 16:28:04 +0000 |
commit | f93b6974f91491a895e875d37b474de48d4b9d8e (patch) | |
tree | c9aa857e0e241d6aa1290b2e49498b4733a8beb9 /src/backend/access/index/indexam.c | |
parent | 9b21a18cee705fa972e5b8f8ab106145015bafe7 (diff) | |
download | postgresql-f93b6974f91491a895e875d37b474de48d4b9d8e.tar.gz postgresql-f93b6974f91491a895e875d37b474de48d4b9d8e.zip |
Here's a combination of all the patches I'm currently waiting
for against a just updated CVS tree. It contains
Partial new rewrite system that handles subselects, view
aggregate columns, insert into select from view, updates
with set col = view-value and select rules restriction to
view definition.
Updates for rule/view backparsing utility functions to
handle subselects correct.
New system views pg_tables and pg_indexes (where you can
see the complete index definition in the latter one).
Enabling array references on query parameters.
Bugfix for functional index.
Little changes to system views pg_rules and pg_views.
The rule system isn't a release-stopper any longer.
But another stopper is that I don't know if the latest
changes to PL/pgSQL (not already in CVS) made it compile on
AIX. Still wait for some response from Dave.
Jan
Diffstat (limited to 'src/backend/access/index/indexam.c')
-rw-r--r-- | src/backend/access/index/indexam.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/backend/access/index/indexam.c b/src/backend/access/index/indexam.c index f695d71107e..aa2d9446504 100644 --- a/src/backend/access/index/indexam.c +++ b/src/backend/access/index/indexam.c @@ -7,7 +7,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/access/index/indexam.c,v 1.27 1998/09/07 05:35:30 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/access/index/indexam.c,v 1.28 1998/10/02 16:27:43 momjian Exp $ * * INTERFACE ROUTINES * index_open - open an index relation by relationId @@ -362,7 +362,7 @@ GetIndexValue(HeapTuple tuple, bool *attNull) { Datum returnVal; - bool isNull; + bool isNull = FALSE; if (PointerIsValid(fInfo) && FIgetProcOid(fInfo) != InvalidOid) { @@ -375,13 +375,15 @@ GetIndexValue(HeapTuple tuple, attrNums[i], hTupDesc, attNull); + if (*attNull) + isNull = TRUE; } returnVal = (Datum) fmgr_array_args(FIgetProcOid(fInfo), FIgetnArgs(fInfo), (char **) attData, &isNull); pfree(attData); - *attNull = FALSE; + *attNull = isNull; } else returnVal = heap_getattr(tuple, attrNums[attOff], hTupDesc, attNull); |