aboutsummaryrefslogtreecommitdiff
path: root/src/include/parser
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2004-11-06 17:46:38 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2004-11-06 17:46:38 +0000
commitf245c4eb1a0d8520c1a217d18d3e965042a1cb2f (patch)
tree068bf02f8333fbf5e64c30573f2a93b3cc715cfd /src/include/parser
parenta981b0233622600754aaa287f05c685615353bc6 (diff)
downloadpostgresql-f245c4eb1a0d8520c1a217d18d3e965042a1cb2f.tar.gz
postgresql-f245c4eb1a0d8520c1a217d18d3e965042a1cb2f.zip
When implementing a coercion to a domain type with a combined
type-and-length coercion function, make sure that the coercion function is told the correct typmod. Fixes Kris Jurka's example of a domain over bit(N).
Diffstat (limited to 'src/include/parser')
-rw-r--r--src/include/parser/parse_coerce.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/include/parser/parse_coerce.h b/src/include/parser/parse_coerce.h
index 02dc926588b..67133a5a85a 100644
--- a/src/include/parser/parse_coerce.h
+++ b/src/include/parser/parse_coerce.h
@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2004, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $PostgreSQL: pgsql/src/include/parser/parse_coerce.h,v 1.58 2004/08/29 04:13:09 momjian Exp $
+ * $PostgreSQL: pgsql/src/include/parser/parse_coerce.h,v 1.59 2004/11/06 17:46:38 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -50,7 +50,8 @@ extern Node *coerce_type(ParseState *pstate, Node *node,
Oid inputTypeId, Oid targetTypeId, int32 targetTypeMod,
CoercionContext ccontext, CoercionForm cformat);
extern Node *coerce_to_domain(Node *arg, Oid baseTypeId, Oid typeId,
- CoercionForm cformat, bool hideInputCoercion);
+ CoercionForm cformat, bool hideInputCoercion,
+ bool lengthCoercionDone);
extern Node *coerce_to_boolean(ParseState *pstate, Node *node,
const char *constructName);