You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ibatis.apache.org by "Adelchi Missio (JIRA)" <ib...@incubator.apache.org> on 2009/07/31 17:52:14 UTC
[jira] Created: (IBATIS-617) Bug executing select statements with
ScriptRunner
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: dev-unsubscribe@ibatis.apache.org
For additional commands, e-mail: dev-help@ibatis.apache.org