[CONJ-322] ResultSet.update* methods aren't implemented Created: 2016-07-08 Updated: 2020-08-25 Resolved: 2017-07-23 |
|
| Status: | Closed |
| Project: | MariaDB Connector/J |
| Component/s: | JDBC 4.2 compatibility |
| Affects Version/s: | None |
| Fix Version/s: | 2.1.0 |
| Type: | Task | Priority: | Major |
| Reporter: | Diego Dupin | Assignee: | Diego Dupin |
| Resolution: | Fixed | Votes: | 1 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||
| Sprint: | Sprint connector/j 2.1.0 | ||||||||||||
| Description |
|
ResultSet.update* methods aren't implemented statement using ResultSet.CONCUR_UPDATABLE must be able to update record.
|
| Comments |
| Comment by Archimedes Trajano [ 2017-05-16 ] | |||||||||||||||
|
Does MariaDB support updating resultsets meaning it just needs to be implemented in the Java connector or does it fundamentally not support it? | |||||||||||||||
| Comment by Diego Dupin [ 2017-05-17 ] | |||||||||||||||
|
Protocol doesn't support it. Using UPDATE query will always have better performance. | |||||||||||||||
| Comment by Archimedes Trajano [ 2017-05-17 ] | |||||||||||||||
|
Well if underlying it does the queries then for sure it will have better performance. Perhaps MariaDB should implement it on the server level instead basically when it requests a result set that is ResultSet.CONCUR_UPDATABLE the rows are "locked" on the database side which will then take in a non standard SQL construct of multi-update. A further optimization can be done by stating... Updatable Result Sets must contain all the primary key columns of a table AND must not be the result of a join AND updates on the primary key(s) is not allowed. | |||||||||||||||
| Comment by Diego Dupin [ 2017-07-23 ] | |||||||||||||||
|
available using SNAPSHOT :
There is different restrictions :
|