Skip to content

Commit f3c97a2

Browse files
author
hackorum
committed
Apply adjust-typmod-arg-on-udt-input-functions.patch
1 parent b597835 commit f3c97a2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/backend/parser/parse_coerce.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ coerce_type(ParseState *pstate, Node *node,
277277
* or it won't be able to obey the bizarre SQL-spec input rules. (Ugly
278278
* as sin, but so is this part of the spec...)
279279
*/
280-
if (baseTypeId == INTERVALOID)
280+
if (baseTypeId == INTERVALOID || baseTypeId >= 16384)
281281
inputTypeMod = baseTypeMod;
282282
else
283283
inputTypeMod = -1;

0 commit comments

Comments
 (0)