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 a2e53ab commit 87c4590Copy full SHA for 87c4590
tests/test_codecs.py
@@ -1161,3 +1161,17 @@ async def test_unknown_type_text_fallback(self):
1161
await self.con.execute(r'DROP TYPE citext_range')
1162
await self.con.execute(r'DROP TYPE citext_dom')
1163
await self.con.execute(r'DROP EXTENSION citext')
1164
+
1165
+ async def test_enum_in_array(self):
1166
+ await self.con.execute('''
1167
+ CREATE TYPE enum_t AS ENUM ('abc', 'def', 'ghi');
1168
+ ''')
1169
+ result = await self.con.fetchrow('''SELECT ARRAY[$1::enum_t];''',
1170
+ 'abc')
1171
1172
+ self.assertEqual(result, ['abc'])
1173
1174
1175
+ DROP TYPE enum_t;
1176
1177
0 commit comments