On Tue, Feb 20, 2024 at 11:06 AM David E. Wheeler <da...@justatheory.com> wrote: > > LOL, I missed that, just wrote it myself in the last hour. :-) v6 attached. >
+SELECT to_regtypemod('interval nonesuch'); -- grammar error expected +ERROR: syntax error at or near "nonesuch" +LINE 1: SELECT to_regtypemod('interval nonesuch'); + ^ +CONTEXT: invalid type name "interval nonesuch" +SELECT to_regtypemod('year(4)'); -- grammar error expected + to_regtypemod +--------------- + +(1 row) + the second hint `-- grammar error expected` seems to contradict with the results?