This project is archived and is in readonly mode.
Review copy out
Reported by Daniele Varrazzo | January 23rd, 2011 @ 11:32 PM | in python3 (closed)
Currenty _pq_copy_out_v3 is using PyObject_CallFunction(func, "s#", buffer, len) to pass data read from the db to the file: this implies utf8 encoding, so would break on different client encodings.
Shall we pass unicode or bytes? Shall we check if the file has an encoding?
Comments and changes to this ticket
-
Daniele Varrazzo February 5th, 2011 @ 02:40 PM
- State changed from open to resolved
Fixed checking if the file implements io.TextIOBase (both in Py2 where available and in Py3).
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
<b>WARNING:</b> the informations in this tracker are archived. Please submit new tickets or comments to <a href="https://github.com/psycopg/psycopg2/issues">the new tracker</a>.
<br/>
Psycopg is the most used PostgreSQL adapter for the Python programming language. At the core it fully implements the Python DB API 2.0 specifications. Several extensions allow access to many of the features offered by PostgreSQL.