summaryrefslogtreecommitdiff
path: root/tests/test_transaction.py
diff options
context:
space:
mode:
authorJames Henstridge <james@jamesh.id.au>2008-01-10 22:19:23 +0000
committerJames Henstridge <james@jamesh.id.au>2008-01-10 22:19:23 +0000
commit86597f6939bc2c3b1be94f1b46eebb76f8ccad12 (patch)
treedfa00af0ea982f7f98d1622cfbe0571c615b5720 /tests/test_transaction.py
parent729117af8ba7d60bb80b636db1866e521f2fd399 (diff)
downloadpsycopg2-86597f6939bc2c3b1be94f1b46eebb76f8ccad12.tar.gz
* psycopg/adapter_binary.c (binary_quote): apply Brandon Rhodes'
patch from ticket #209 to check return value from PyObject_AsCharBuffer(). This fixes the segfault. (binary_quote): switch from PyObject_AsCharBuffer() to PyObject_AsReadBuffer() to support buffer objects that don't implement the bf_getcharbuf protocol. * tests/types_basic.py (TypesBasicTests.testBinary): Test round tripping of bytea buffers. Currently segfaults.
Diffstat (limited to 'tests/test_transaction.py')
0 files changed, 0 insertions, 0 deletions