[jira] Created: (IBATIS-617) Bug executing select statements with ScriptRunner

View: New views
1 Messages — Rating Filter:   Alert me  

[jira] Created: (IBATIS-617) Bug executing select statements with ScriptRunner

by JIRA ibatis-dev@incubator.apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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@...
For additional commands, e-mail: dev-help@...