]> granicus.if.org Git - postgresql/commit
A better fix for the "ARRAY[...]::domain" problem. The previous patch worked,
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Fri, 13 Nov 2009 19:48:26 +0000 (19:48 +0000)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Fri, 13 Nov 2009 19:48:26 +0000 (19:48 +0000)
commit30137bde6db48a8b8c1ffc736eb239bd7381f04d
tree18c907c6bfc7763da91971e253bd51808721345c
parent959af88533cf682a2522a78f99056bc8adf0b58c
A better fix for the "ARRAY[...]::domain" problem. The previous patch worked,
but the transformed ArrayExpr claimed to have a return type of "domain",
even though the domain constraint was only checked by the enclosing
CoerceToDomain node. With this fix, the ArrayExpr is correctly labeled with
the base type of the domain. Per gripe by Tom Lane.
src/backend/parser/parse_expr.c