Skip to content

Commit 3b4f271

Browse files
committed
Test for array serialization and deserialzation
1 parent d408f7a commit 3b4f271

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
@@ -1058,6 +1058,10 @@ async def test_enum_in_array(self):
10581058
await self.con.execute('''
10591059
CREATE TYPE enum_t AS ENUM ('abc', 'def', 'ghi');
10601060
''')
1061+
result = await self.con.fetchrow('''SELECT $1::enum_t[];''',
1062+
['abc'])
1063+
self.assertEqual(result, ['abc'])
1064+
10611065
result = await self.con.fetchrow('''SELECT ARRAY[$1::enum_t];''',
10621066
'abc')
10631067

0 commit comments

Comments
 (0)