[CONJ-472] Unable to update ResultSet Created: 2017-05-16  Updated: 2017-08-04  Resolved: 2017-08-04

Status: Closed
Project: MariaDB Connector/J
Component/s: Other
Affects Version/s: None
Fix Version/s: 2.1.0

Type: Bug Priority: Major
Reporter: Archimedes Trajano Assignee: Diego Dupin
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Duplicate
duplicates CONJ-322 ResultSet.update* methods aren't impl... Closed

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



 Comments   
Comment by Archimedes Trajano [ 2017-05-16 ]

Pls close this is duplicated by CONJ-322

Generated at Thu Feb 08 03:15:55 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.