When implementing a coercion to a domain type with a combined
authorTom Lane
Sat, 6 Nov 2004 17:46:38 +0000 (17:46 +0000)
committerTom Lane
Sat, 6 Nov 2004 17:46:38 +0000 (17:46 +0000)
commitf245c4eb1a0d8520c1a217d18d3e965042a1cb2f
tree068bf02f8333fbf5e64c30573f2a93b3cc715cfd
parenta981b0233622600754aaa287f05c685615353bc6
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).
src/backend/commands/copy.c
src/backend/optimizer/prep/preptlist.c
src/backend/parser/parse_coerce.c
src/backend/rewrite/rewriteHandler.c
src/include/parser/parse_coerce.h