diff options
| author | Federico Di Gregorio <fog@initd.org> | 2006-06-11 03:40:53 +0000 |
|---|---|---|
| committer | Federico Di Gregorio <fog@initd.org> | 2006-06-11 03:40:53 +0000 |
| commit | 1ac75e3b80c4ca0a576b05bb29f94e2e33fb50e9 (patch) | |
| tree | 519e5dd4a545d09f5be4a9050ca0337b6dc2116c /psycopg | |
| parent | a9045916f2dee0cb994be7c4e50b458a80a66bba (diff) | |
| download | psycopg2-1ac75e3b80c4ca0a576b05bb29f94e2e33fb50e9.tar.gz | |
(Really) fixed list adaptation.
Diffstat (limited to 'psycopg')
| -rw-r--r-- | psycopg/adapter_list.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/psycopg/adapter_list.c b/psycopg/adapter_list.c index d29512f..29ef116 100644 --- a/psycopg/adapter_list.c +++ b/psycopg/adapter_list.c @@ -46,7 +46,7 @@ list_quote(listObject *self) /* empty arrays are converted to NULLs (still searching for a way to insert an empty array in postgresql */ - if (len == 0) return PyString_FromString("{}"); + if (len == 0) return PyString_FromString("'{}'"); tmp = PyTuple_New(len); |
