This project is archived and is in readonly mode.

#71 ✓resolved
Bozo Dragojevic

wrong quoting of text arrays

Reported by Bozo Dragojevic | October 9th, 2011 @ 08:45 AM

with rel-2.4.2 I get the following error when running the attached testcase:

$ nosetests tests/raw_psycopg2.py 
F
======================================================================
FAIL: tests.raw_psycopg2.test_text_array_roundtrip
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/me/Projects/storm/ggg/lib/python2.6/site-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/Users/me/Projects/storm/tests/raw_psycopg2.py", line 29, in test_text_array_roundtrip
    assert tuple(texts) == tuple(result[1]), "%r != %r"%(texts, result[1])
AssertionError: [u'{"quote": "\\""}', u'{"backslash": "\\\\"}'] != [u'{"quote": "\\\\""}', u'{"backslash": "\\\\\\\\"}']

----------------------------------------------------------------------
Ran 1 test in 0.011s

FAILED (failures=1)

Comments and changes to this ticket

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.

Shared Ticket Bins

Attachments

Pages