mirror of
https://github.com/psycopg/psycopg2.git
synced 2024-11-29 20:23:45 +03:00
(Really) fixed list adaptation.
This commit is contained in:
parent
a9045916f2
commit
1ac75e3b80
|
@ -46,7 +46,7 @@ list_quote(listObject *self)
|
||||||
|
|
||||||
/* empty arrays are converted to NULLs (still searching for a way to
|
/* empty arrays are converted to NULLs (still searching for a way to
|
||||||
insert an empty array in postgresql */
|
insert an empty array in postgresql */
|
||||||
if (len == 0) return PyString_FromString("{}");
|
if (len == 0) return PyString_FromString("'{}'");
|
||||||
|
|
||||||
tmp = PyTuple_New(len);
|
tmp = PyTuple_New(len);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user