[dataimport] Fix use of _create_copyfrom_buffer() (related to #3845572)
authorRémi Cardona <remi.cardona@logilab.fr>
Tue, 18 Nov 2014 18:20:08 +0100
changeset 10078 5eeffcfde1ba
parent 10077 1a28c0b0a0b4
child 10079 962324edd6de
[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.
dataimport.py
--- 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: