mirror of
https://github.com/psycopg/psycopg2.git
synced 2025-02-01 01:44:07 +03:00
Doubt about 'c' buffer solved by Stefan Krah
This commit is contained in:
parent
6d9a25e63a
commit
a04379210b
|
@ -93,7 +93,6 @@ int chunk_getbuffer(PyObject *_self, Py_buffer *view, int flags)
|
||||||
chunkObject *self = (chunkObject*)_self;
|
chunkObject *self = (chunkObject*)_self;
|
||||||
rv = PyBuffer_FillInfo(view, _self, self->base, self->len, 1, flags);
|
rv = PyBuffer_FillInfo(view, _self, self->base, self->len, 1, flags);
|
||||||
if (rv == 0) {
|
if (rv == 0) {
|
||||||
/* TODO: is this really the way to do it? */
|
|
||||||
view->format = "c";
|
view->format = "c";
|
||||||
}
|
}
|
||||||
return rv;
|
return rv;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user