diff options
| author | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2016-07-01 11:17:55 +0100 |
|---|---|---|
| committer | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2016-07-01 11:17:55 +0100 |
| commit | 600c744fba9f717095d4107d114bbfd0b91c4f12 (patch) | |
| tree | 11990a3d184c583ffb5fb971459eacda32c3624f /examples | |
| parent | 556f25153f1d7195de709448a395894591f6f992 (diff) | |
| download | psycopg2-qstring-writable-encoding.tar.gz | |
Work in progress on writable encodingqstring-writable-encoding
Would help using adapt(unicode) to quote strings without a connection,
see ticket #331.
Currently in heisenbug state: if test_connection_wins_anyway and
test_encoding_default run (in this order), the latter fail because the
returned value is "'\xe8 '", with an extra space. Skipping the first
test, the second succeed.
The bad value is returned by the libpq:
ql = PQescapeString(to+eq+1, from, len);
just returns len = 2 and an extra space in the string... meh.
Diffstat (limited to 'examples')
0 files changed, 0 insertions, 0 deletions
