From 1ac75e3b80c4ca0a576b05bb29f94e2e33fb50e9 Mon Sep 17 00:00:00 2001 From: Federico Di Gregorio Date: Sun, 11 Jun 2006 03:40:53 +0000 Subject: [PATCH] (Really) fixed list adaptation. --- psycopg/adapter_list.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/psycopg/adapter_list.c b/psycopg/adapter_list.c index d29512f7..29ef1167 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);