Message7542
The com.ziclix.python.sql.handler.RowIdHandler class is used to get the rowId of the last insert statement. It relies in the statement object having a method for that:
try {
o = c.getMethod(getRowIdMethodName(), (Class[])null);
ROWIDS.put(c, o);
} catch (Throwable t) {
ROWIDS.put(c, CHECKED);
}
The problem is that when the method doesn't exist, if fails silently (CHECKED is a new Object()).
I almost went mad when trying to use a Django webapp on tomcat 6, which uses commons-dbcp, so it uses a wrapper for the actual database statement, which doesn't have the method to get the row id, so it led to silently returning None to the jython code.
A log statement warning the situation would be helpful. |
|
Date |
User |
Action |
Args |
2012-11-29 08:19:22 | luisperlazaro | set | recipients:
+ luisperlazaro |
2012-11-29 08:19:22 | luisperlazaro | set | messageid: <1354177162.57.0.844004993188.issue1995@psf.upfronthosting.co.za> |
2012-11-29 08:19:22 | luisperlazaro | link | issue1995 messages |
2012-11-29 08:19:20 | luisperlazaro | create | |
|