Skip to content

Commit 36fe432

Browse files
author
James William Pye
committed
Make the 'regtypes' symbol more portable.
The cast from text to regtype came later.
1 parent d57572e commit 36fe432

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

postgresql/lib/libsys.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ SELECT
7878
), ('{}'::text[]))
7979

8080
[regtypes::column]
81-
SELECT (($1::text[])[i])::regtype::oid AS typoid
81+
SELECT pg_catalog.regtypein(pg_catalog.textout(($1::text[])[i]))::oid AS typoid
8282
FROM pg_catalog.generate_series(1, array_upper($1::text[], 1)) AS g(i)
8383

8484
[xact_is_prepared::first]

0 commit comments

Comments
 (0)