mirror of
https://github.com/postgres/postgres.git
synced 2025-07-11 10:01:57 +03:00
Remove 'Array' node type, which has evidently been dead code for
a very long time.
This commit is contained in:
@ -8,7 +8,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/nodes/readfuncs.c,v 1.93 2000/07/17 03:05:01 tgl Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/nodes/readfuncs.c,v 1.94 2000/07/22 04:22:46 tgl Exp $
|
||||
*
|
||||
* NOTES
|
||||
* Most of the read functions for plan nodes are tested. (In fact, they
|
||||
@ -814,48 +814,6 @@ _readVar()
|
||||
return local_node;
|
||||
}
|
||||
|
||||
/* ----------------
|
||||
* _readArray
|
||||
*
|
||||
* Array is a subclass of Expr
|
||||
* ----------------
|
||||
*/
|
||||
static Array *
|
||||
_readArray()
|
||||
{
|
||||
Array *local_node;
|
||||
char *token;
|
||||
int length;
|
||||
|
||||
local_node = makeNode(Array);
|
||||
|
||||
token = lsptok(NULL, &length); /* eat :arrayelemtype */
|
||||
token = lsptok(NULL, &length); /* get arrayelemtype */
|
||||
local_node->arrayelemtype = strtoul(token, NULL, 10);
|
||||
|
||||
token = lsptok(NULL, &length); /* eat :arrayelemlength */
|
||||
token = lsptok(NULL, &length); /* get arrayelemlength */
|
||||
local_node->arrayelemlength = atoi(token);
|
||||
|
||||
token = lsptok(NULL, &length); /* eat :arrayelembyval */
|
||||
token = lsptok(NULL, &length); /* get arrayelembyval */
|
||||
local_node->arrayelembyval = (token[0] == 't') ? true : false;
|
||||
|
||||
token = lsptok(NULL, &length); /* eat :arraylow */
|
||||
token = lsptok(NULL, &length); /* get arraylow */
|
||||
local_node->arraylow.indx[0] = atoi(token);
|
||||
|
||||
token = lsptok(NULL, &length); /* eat :arrayhigh */
|
||||
token = lsptok(NULL, &length); /* get arrayhigh */
|
||||
local_node->arrayhigh.indx[0] = atoi(token);
|
||||
|
||||
token = lsptok(NULL, &length); /* eat :arraylen */
|
||||
token = lsptok(NULL, &length); /* get arraylen */
|
||||
local_node->arraylen = atoi(token);
|
||||
|
||||
return local_node;
|
||||
}
|
||||
|
||||
/* ----------------
|
||||
* _readArrayRef
|
||||
*
|
||||
@ -1835,8 +1793,6 @@ parsePlanString(void)
|
||||
return_value = _readExpr();
|
||||
else if (length == 8 && strncmp(token, "ARRAYREF", length) == 0)
|
||||
return_value = _readArrayRef();
|
||||
else if (length == 5 && strncmp(token, "ARRAY", length) == 0)
|
||||
return_value = _readArray();
|
||||
else if (length == 3 && strncmp(token, "VAR", length) == 0)
|
||||
return_value = _readVar();
|
||||
else if (length == 4 && strncmp(token, "ATTR", length) == 0)
|
||||
|
Reference in New Issue
Block a user