When implementing a coercion to a domain type with a combined
Tom Lane <tgl@sss.pgh.pa.us>
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).
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/commands/copy.c | modified | +2 −2 |
| src/backend/optimizer/prep/preptlist.c | modified | +2 −1 |
| src/backend/parser/parse_coerce.c | modified | +31 −16 |
| src/backend/rewrite/rewriteHandler.c | modified | +2 −1 |
| src/include/parser/parse_coerce.h | modified | +3 −2 |