diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2007-06-06 23:00:50 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2007-06-06 23:00:50 +0000 |
commit | 2d4db3675fa7a2f4831b755bc98242421901042f (patch) | |
tree | 5961b42325091b789d0f82073812de57323fa4b1 /src/backend/utils/adt/xml.c | |
parent | 7dab4f75ca60f1c04ed9e7ff9d4ca8d71e572b29 (diff) | |
download | postgresql-2d4db3675fa7a2f4831b755bc98242421901042f.tar.gz postgresql-2d4db3675fa7a2f4831b755bc98242421901042f.zip |
Fix up text concatenation so that it accepts all the reasonable cases that
were accepted by prior Postgres releases. This takes care of the loose end
left by the preceding patch to downgrade implicit casts-to-text. To avoid
breaking desirable behavior for array concatenation, introduce a new
polymorphic pseudo-type "anynonarray" --- the added concatenation operators
are actually text || anynonarray and anynonarray || text.
Diffstat (limited to 'src/backend/utils/adt/xml.c')
-rw-r--r-- | src/backend/utils/adt/xml.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/utils/adt/xml.c b/src/backend/utils/adt/xml.c index f9fd48db661..2e84fac1d70 100644 --- a/src/backend/utils/adt/xml.c +++ b/src/backend/utils/adt/xml.c @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2007, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/backend/utils/adt/xml.c,v 1.43 2007/05/21 17:10:29 petere Exp $ + * $PostgreSQL: pgsql/src/backend/utils/adt/xml.c,v 1.44 2007/06/06 23:00:39 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -1481,7 +1481,7 @@ map_sql_value_to_xml_value(Datum value, Oid type) initStringInfo(&buf); - if (is_array_type(type)) + if (type_is_array(type)) { int i; ArrayType *array; |