Index: plpython.c =================================================================== RCS file: /a/pgsql/dev/anoncvs/pgsql/src/pl/plpython/plpython.c,v retrieving revision 1.118 diff -c -r1.118 plpython.c *** plpython.c 15 Jan 2009 13:49:56 -0000 1.118 --- plpython.c 31 Mar 2009 16:48:47 -0000 *************** *** 1053,1059 **** } if (PyList_SetItem(args, i, arg) == -1 || ! (proc->argnames && PyDict_SetItemString(proc->globals, proc->argnames[i], arg) == -1)) PLy_elog(ERROR, "PyDict_SetItemString() failed for PL/Python function \"%s\" while setting up arguments", proc->proname); arg = NULL; --- 1053,1059 ---- } if (PyList_SetItem(args, i, arg) == -1 || ! (proc->argnames && proc->argnames[i] != NULL && PyDict_SetItemString(proc->globals, proc->argnames[i], arg) == -1)) PLy_elog(ERROR, "PyDict_SetItemString() failed for PL/Python function \"%s\" while setting up arguments", proc->proname); arg = NULL;