mirror of
https://github.com/postgres/postgres.git
synced 2025-06-13 07:41:39 +03:00
Create a distinction between Lists of integers and Lists of OIDs, to get
rid of the assumption that sizeof(Oid)==sizeof(int). This is one small step towards someday supporting 8-byte OIDs. For the moment, it doesn't do much except get rid of a lot of unsightly casts.
This commit is contained in:
@ -8,7 +8,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/nodes/readfuncs.c,v 1.147 2003/02/03 21:15:44 tgl Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/nodes/readfuncs.c,v 1.148 2003/02/09 06:56:27 tgl Exp $
|
||||
*
|
||||
* NOTES
|
||||
* Path and Plan nodes do not have any readfuncs support, because we
|
||||
@ -170,12 +170,12 @@ toOidList(List *list)
|
||||
*/
|
||||
if (IsA(v, Integer))
|
||||
{
|
||||
lfirsti(l) = (Oid) intVal(v);
|
||||
lfirsto(l) = (Oid) intVal(v);
|
||||
pfree(v);
|
||||
}
|
||||
else if (IsA(v, Float))
|
||||
{
|
||||
lfirsti(l) = atooid(strVal(v));
|
||||
lfirsto(l) = atooid(strVal(v));
|
||||
pfree(strVal(v));
|
||||
pfree(v);
|
||||
}
|
||||
@ -534,7 +534,7 @@ _readSubLink(void)
|
||||
READ_BOOL_FIELD(useOr);
|
||||
READ_NODE_FIELD(lefthand);
|
||||
READ_NODE_FIELD(operName);
|
||||
READ_INTLIST_FIELD(operOids);
|
||||
READ_OIDLIST_FIELD(operOids);
|
||||
READ_NODE_FIELD(subselect);
|
||||
|
||||
READ_DONE();
|
||||
|
Reference in New Issue
Block a user