Bug executing select statements with ScriptRunner
-------------------------------------------------
Key: IBATIS-617
URL: https://issues.apache.org/jira/browse/IBATIS-617
Project: iBatis for Java
Issue Type: Bug
Components: Tools
Affects Versions: 2.3.4
Reporter: Adelchi Missio
Priority: Minor
Running the following script with the ScriptRunner resulted in a
java.sql.SQLException: Invalid column index
The counter on line 182 should initiated with 1 not 0.
ResultSet rs = statement.getResultSet();
if (hasResults && rs != null) {
ResultSetMetaData md = rs.getMetaData();
int cols = md.getColumnCount();
for (int i = 0; i < cols; i++) {
String name = md.getColumnLabel(i);
print(name + "\t");
}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]