From: brian z. <bz...@us...> - 2002-01-07 02:16:28
|
Update of /cvsroot/jython/jython/com/ziclix/python/sql In directory usw-pr-cvs1:/tmp/cvs-serv26197/com/ziclix/python/sql Modified Files: JDBC20DataHandler.java Log Message: delegate to DataHandler if getBigDecimal() fails Index: JDBC20DataHandler.java =================================================================== RCS file: /cvsroot/jython/jython/com/ziclix/python/sql/JDBC20DataHandler.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** JDBC20DataHandler.java 2001/11/20 04:55:18 1.1 --- JDBC20DataHandler.java 2002/01/07 02:16:25 1.2 *************** *** 114,120 **** // in JDBC 2.0, use of a scale is deprecated ! BigDecimal bd = set.getBigDecimal(col); ! obj = (bd == null) ? Py.None : Py.newFloat(bd.doubleValue()); break; --- 114,124 ---- // in JDBC 2.0, use of a scale is deprecated ! try { ! BigDecimal bd = set.getBigDecimal(col); ! obj = (bd == null) ? Py.None : Py.newFloat(bd.doubleValue()); ! } catch (SQLException e) { ! obj = super.getPyObject(set, col, type); ! } break; |