From: brian z. <bz...@us...> - 2002-01-07 02:59:03
|
Update of /cvsroot/jython/jython/com/ziclix/python/sql In directory usw-pr-cvs1:/tmp/cvs-serv31681/com/ziclix/python/sql Modified Files: PyCursor.java Log Message: updatecount is None if stmt.getUpdateCount() < 0 Index: PyCursor.java =================================================================== RCS file: /cvsroot/jython/jython/com/ziclix/python/sql/PyCursor.java,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** PyCursor.java 2001/12/29 18:00:14 1.12 --- PyCursor.java 2002/01/07 02:59:00 1.13 *************** *** 488,492 **** this.lastrowid = this.datahandler.getRowId(this.sqlStatement); ! this.updatecount = Py.newInteger(this.sqlStatement.getUpdateCount()); addWarning(this.sqlStatement.getWarnings()); --- 488,495 ---- this.lastrowid = this.datahandler.getRowId(this.sqlStatement); ! ! int uc = this.sqlStatement.getUpdateCount(); ! ! this.updatecount = (uc < 0) ? Py.None : Py.newInteger(uc); addWarning(this.sqlStatement.getWarnings()); |