summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFederico Di Gregorio <fog@initd.org>2006-06-11 03:40:53 +0000
committerFederico Di Gregorio <fog@initd.org>2006-06-11 03:40:53 +0000
commit1ac75e3b80c4ca0a576b05bb29f94e2e33fb50e9 (patch)
tree519e5dd4a545d09f5be4a9050ca0337b6dc2116c
parenta9045916f2dee0cb994be7c4e50b458a80a66bba (diff)
downloadpsycopg2-1ac75e3b80c4ca0a576b05bb29f94e2e33fb50e9.tar.gz
(Really) fixed list adaptation.
-rw-r--r--psycopg/adapter_list.c2
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);