1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-30 21:42:05 +03:00

Remove ARRAY_PATCH define

This commit is contained in:
Bruce Momjian
1996-11-04 04:19:55 +00:00
parent e43dfad289
commit 8edbc3bde4
3 changed files with 2 additions and 21 deletions

View File

@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/parser/analyze.c,v 1.9 1996/10/31 05:54:25 momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/parser/analyze.c,v 1.10 1996/11/04 04:19:41 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@ -1309,7 +1309,6 @@ make_targetlist_expr(ParseState *pstate,
if (attrtype != type_id) {
if (IsA(expr,Const)) {
/* try to cast the constant */
#ifdef ARRAY_PATCH
if (arrayRef && !(((A_Indices *)lfirst(arrayRef))->lidx)) {
/* updating a single item */
Oid typelem = get_typelem(attrtype);
@ -1318,7 +1317,6 @@ make_targetlist_expr(ParseState *pstate,
get_id_type((long)typelem),
attrlen);
} else
#endif
expr = (Node*)parser_typecast2(expr,
type_id,
get_id_type((long)attrtype),
@ -1345,11 +1343,7 @@ make_targetlist_expr(ParseState *pstate,
&pstate->p_last_resno);
while(ar!=NIL) {
A_Indices *ind = lfirst(ar);
#ifdef ARRAY_PATCH
if (lowerIndexpr || (!upperIndexpr && ind->lidx)) {
#else
if (lowerIndexpr) {
#endif
/* XXX assume all lowerIndexpr is non-null in
* this case
*/