(self)
| 536 | self.assertEqual(len(cache), 2) |
| 537 | |
| 538 | async def test_prepare_28_max_args(self): |
| 539 | N = 32768 |
| 540 | args = ','.join('${}'.format(i) for i in range(1, N + 1)) |
| 541 | query = 'SELECT ARRAY[{}]'.format(args) |
| 542 | |
| 543 | with self.assertRaisesRegex( |
| 544 | exceptions.InterfaceError, |
| 545 | 'the number of query arguments cannot exceed 32767'): |
| 546 | await self.con.fetchval(query, *range(1, N + 1)) |
| 547 | |
| 548 | async def test_prepare_29_duplicates(self): |
| 549 | # In addition to test_record.py, let's have a full functional |