We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb0caa7 commit d408f7aCopy full SHA for d408f7a
tests/test_codecs.py
@@ -1053,3 +1053,16 @@ async def test_enum(self):
1053
DROP TABLE tab;
1054
DROP TYPE enum_t;
1055
''')
1056
+
1057
+ async def test_enum_in_array(self):
1058
+ await self.con.execute('''
1059
+ CREATE TYPE enum_t AS ENUM ('abc', 'def', 'ghi');
1060
+ ''')
1061
+ result = await self.con.fetchrow('''SELECT ARRAY[$1::enum_t];''',
1062
+ 'abc')
1063
1064
+ self.assertEqual(result, ['abc'])
1065
1066
1067
+ DROP TYPE enum_t;
1068
0 commit comments