We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c78eec1 commit d43ef44Copy full SHA for d43ef44
tests/test_copy.py
@@ -148,20 +148,22 @@ async def test_copy_from_query_with_args(self):
148
149
res = await self.con.copy_from_query('''
150
SELECT
151
- i, i * 10
+ i,
152
+ i * 10,
153
+ $2::text
154
FROM
155
generate_series(1, 5) AS i
156
WHERE
157
i = $1
- ''', 3, output=f)
158
+ ''', 3, None, output=f)
159
160
self.assertEqual(res, 'COPY 1')
161
162
output = f.getvalue().decode().split('\n')
163
self.assertEqual(
164
output,
165
[
- '3\t30',
166
+ '3\t30\t\\N',
167
''
168
]
169
)
0 commit comments