[cx-oracle-users] Documentation for Cursor.execute() wrong?
Brought to you by:
atuining
From: Adam J. L. <ada...@gm...> - 2013-01-15 20:55:31
|
Hello, It appears that the documentation at http://cx-oracle.sourceforge.net/html/cursor.html#Cursor.execute is wrong with respect to what Cursor.execute() returns. "If the statement is a query, a list of variable objects (Variable Objects) will be returned corresponding to the list of variables into which data will be fetched with the fetchone(), fetchmany() and fetchall() methods..." is different from the behavior I see and my reading of the source code (version 5.1.2): -- Cursor.c, lines 1650 - 1658 -- // for queries, return the cursor for convenience if (isQuery) { Py_INCREF(self); return (PyObject*) self; } // for all other statements, simply return None Py_INCREF(Py_None); return Py_None; -- A quick search of the archives for this mailing list didn't show a report for this. I'm happy to submit a patch for html/cursor.html, but I thought devs might want to use their own language. Adam Lincoln |