Uploaded image for project: 'iBatis for Java [READ ONLY]'
  1. iBatis for Java [READ ONLY]
  2. IBATIS-617

Bug executing select statements with ScriptRunner

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.3.4
    • 2.3.5
    • Ibator
    • None

    Description

      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"); }

      Attachments

        Activity

          People

            kaig Kai Grabfelder
            adelchi Adelchi Missio
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: