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
{{ message }}
This repository was archived by the owner on Dec 30, 2020. It is now read-only.
Hey,
I was trying to use the jdbc wrapper to batch insert(using batch update of Spring's JdbcTemplate).
It is basically an array of sql insert statements(strings)..
Now, what happens, is that the check that is done to see if these update statements are valid is if the CassandraStatement#execute function returns true.. Now this happens because the only check that is done this is "this.currentResultSet != null" while it is not null(but the "this.currentResultSet.hasMoreRows()" immediately returns false(so there are no rows returned in this result set..
When it returns true, the JdbcTemplate of Spring throws an exception of it being an invalid batch SQL statement..
The only thing needed is turn this row into "this.currentResultSet != null && this.currentResultSet.hasMoreRows()" or any equivalent ..
Thanks :)
EDIT:
Also, when opening a connection, it prints "Datacenter: %s; Host: %s; Rack: %s"(forgotten String.fomrat())..
The text was updated successfully, but these errors were encountered:
Hey,
I was trying to use the jdbc wrapper to batch insert(using batch update of Spring's JdbcTemplate).
It is basically an array of sql insert statements(strings)..
Now, what happens, is that the check that is done to see if these update statements are valid is if the CassandraStatement#execute function returns true.. Now this happens because the only check that is done this is "this.currentResultSet != null" while it is not null(but the "this.currentResultSet.hasMoreRows()" immediately returns false(so there are no rows returned in this result set..
When it returns true, the JdbcTemplate of Spring throws an exception of it being an invalid batch SQL statement..
The only thing needed is turn this row into "this.currentResultSet != null && this.currentResultSet.hasMoreRows()" or any equivalent ..
Thanks :)
EDIT:
Also, when opening a connection, it prints "Datacenter: %s; Host: %s; Rack: %s"(forgotten String.fomrat())..
The text was updated successfully, but these errors were encountered: