Skip to content

Commit ccffd58

Browse files
committed
Test for array serialization and deserialzation
1 parent 87c4590 commit ccffd58

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/test_codecs.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1166,6 +1166,10 @@ async def test_enum_in_array(self):
11661166
await self.con.execute('''
11671167
CREATE TYPE enum_t AS ENUM ('abc', 'def', 'ghi');
11681168
''')
1169+
result = await self.con.fetchrow('''SELECT $1::enum_t[];''',
1170+
['abc'])
1171+
self.assertEqual(result, ['abc'])
1172+
11691173
result = await self.con.fetchrow('''SELECT ARRAY[$1::enum_t];''',
11701174
'abc')
11711175

0 commit comments

Comments
 (0)