Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
None
-
None
Description
I was trying to do some performance improvements on on of my LOB operations and reducing the amount of I/O with the database utilizing result sets, specifically updating result sets.
However, I got Updates are not supported most likely from https://github.com/MariaDB/mariadb-connector-j/blob/master/src/main/java/org/mariadb/jdbc/internal/com/read/resultset/SelectResultSet.java#L2276
If updates are not supported (which is kind of lousy) you should be able to fail it sooner specifically from detecting if ResultSet.CONCUR_UPDATABLE was passed on the prepared statement. e.g. from my code base:
PreparedStatement selectStmt =
c.prepareStatement("SELECT NAME, CHUNKSEQUENCE, CHUNK, LASTUPDATEDON FROM LOBDATA where NAME = ? order by CHUNKSEQUENCE",
ResultSet.TYPE_FORWARD_ONLY,
ResultSet.CONCUR_UPDATABLE);
Attachments
Issue Links
- duplicates
-
CONJ-322 ResultSet.update* methods aren't implemented
- Closed