[Informixdb-cvs] informixdb/ext _informixdb.ec,1.84,1.85
Brought to you by:
chaese,
f-apolloner
From: Carsten H. <ch...@us...> - 2006-12-02 03:22:25
|
Update of /cvsroot/informixdb/informixdb/ext In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv4797/ext Modified Files: _informixdb.ec Log Message: Guard against not passing a parameter mapping for queries with named parameters. Index: _informixdb.ec =================================================================== RCS file: /cvsroot/informixdb/informixdb/ext/_informixdb.ec,v retrieving revision 1.84 retrieving revision 1.85 diff -C2 -d -r1.84 -r1.85 *** _informixdb.ec 2 Dec 2006 02:40:19 -0000 1.84 --- _informixdb.ec 2 Dec 2006 03:22:22 -0000 1.85 *************** *** 1588,1592 **** as the parameter mapping. */ ! if (vars && !PyMapping_Check(vars)) { PyErr_SetString(PyExc_TypeError, "SQL parameters are not a mapping"); return 0; --- 1588,1596 ---- as the parameter mapping. */ ! if (!vars) { ! PyErr_SetString(PyExc_TypeError, "SQL parameters must be supplied"); ! return 0; ! } ! if (!PyMapping_Check(vars)) { PyErr_SetString(PyExc_TypeError, "SQL parameters are not a mapping"); return 0; |