aboutsummaryrefslogtreecommitdiff
path: root/src/backend/parser/parse_target.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2008-03-20 21:42:48 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2008-03-20 21:42:48 +0000
commit6b0706ac33ab5da815980c642a9cde9a4cd86b6b (patch)
tree511ad4743ad55a095cbacea0713b437af36ba9ce /src/backend/parser/parse_target.c
parent8759b79d0fe8b9937b7cbebfed78480b3e6a94b2 (diff)
downloadpostgresql-6b0706ac33ab5da815980c642a9cde9a4cd86b6b.tar.gz
postgresql-6b0706ac33ab5da815980c642a9cde9a4cd86b6b.zip
Arrange for an explicit cast applied to an ARRAY[] constructor to be applied
directly to all the member expressions, instead of the previous implementation where the ARRAY[] constructor would infer a common element type and then we'd coerce the finished array after the fact. This has a number of benefits, one being that we can allow an empty ARRAY[] construct so long as its element type is specified by such a cast. Brendan Jurd, minor fixes by me.
Diffstat (limited to 'src/backend/parser/parse_target.c')
-rw-r--r--src/backend/parser/parse_target.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/parser/parse_target.c b/src/backend/parser/parse_target.c
index bd3153548a5..e1d69fec421 100644
--- a/src/backend/parser/parse_target.c
+++ b/src/backend/parser/parse_target.c
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/backend/parser/parse_target.c,v 1.158 2008/01/01 19:45:51 momjian Exp $
+ * $PostgreSQL: pgsql/src/backend/parser/parse_target.c,v 1.159 2008/03/20 21:42:48 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -1294,7 +1294,7 @@ FigureColnameInternal(Node *node, char **name)
return 1;
}
break;
- case T_ArrayExpr:
+ case T_A_ArrayExpr:
/* make ARRAY[] act like a function */
*name = "array";
return 2;