You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
!outputformat json
select 1;
select 1, 2; -- here should be any number of columns which is greater than in a previous query
It will fail as
java.lang.ArrayIndexOutOfBoundsException: Index 1 out of bounds for length 1
at sqlline.JsonOutputFormat.printRow(JsonOutputFormat.java:43)
at sqlline.AbstractOutputFormat.print(AbstractOutputFormat.java:32)
at sqlline.SqlLine.print(SqlLine.java:1773)
at sqlline.Commands.executeSingleQuery(Commands.java:1139)
at sqlline.Commands.execute(Commands.java:1079)
at sqlline.Commands.sql(Commands.java:1033)
at sqlline.SqlLine.dispatch(SqlLine.java:822)
at sqlline.SqlLine.begin(SqlLine.java:596)
at sqlline.SqlLine.start(SqlLine.java:269)
at sqlline.SqlLine.main(SqlLine.java:208)
The text was updated successfully, but these errors were encountered:
case to reproduce
It will fail as
The text was updated successfully, but these errors were encountered: