Consider the following code fragment:
Statement stmt = conn.createStatement(); ResultSet rs = stmt.executeQuery("SELECT a, b, c FROM table1"); getCount(); // this call causes the below rs.next() to return false while(rs.next()) { ... } void getCount() { Statement stmt = conn.createStatement(); ResultSet rs = stmt.executeQuery("SELECT count(*) FROM table1"); while(rs.next()) { rs.getObject(1); } }
If the above call to getCount() is commented out, then the while loop will succeed in retrieving the data from the result set.
Fixed the fluid shell sqlexport code to do the count query first, then the main query.
Issue #8724 |
Closed |
Fixed |
Resolved |
Completion |
No due date |
No fixed build |
No time estimate |
1 issue link |
is required by #8716
Issue #8716Add Hive Support |
Fixed the fluid shell sqlexport code to do the count query first, then the main query.