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++)