[dataimport] Fix use of _create_copyfrom_buffer() (related to #3845572)
This is used indirectly by SQLGenObjectStore when running on a
PostgreSQL database.
Regression introduced by commit 70056633085c.
--- a/dataimport.py Wed Mar 26 14:45:33 2014 +0100
+++ b/dataimport.py Tue Nov 18 18:20:08 2014 +0100
@@ -365,7 +365,7 @@
columns, encoding='utf-8'):
""" Execute thread with copy from
"""
- buf = _create_copyfrom_buffer(data, columns, encoding)
+ buf = _create_copyfrom_buffer(data, columns, encoding=encoding)
if buf is None:
_execmany_thread_not_copy_from(cu, statement, data)
else: