You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, only primitive array columns are parsed and returned with the expected type by @database/pg. Columns defined as an array of a custom enum type are returned as a string.
CREATETYPEtest_enumAS ENUM ('foo', 'bar', 'ham');
CREATETABLEtest_types (
id UUID NOT NULLPRIMARY KEY DEFAULT gen_random_uuid(),
scores INTEGER[],
enums test_enum
);
INSERT INTO test_types (scores, enums) VALUES ('{1, 5, 10}', '{foo, bar}');
Running a simple SELECT via @databases/pg returns the following result:
Currently, only primitive array columns are parsed and returned with the expected type by
@database/pg
. Columns defined as an array of a custom enum type are returned as a string.Running a simple
SELECT
via@databases/pg
returns the following result:The text was updated successfully, but these errors were encountered: