[CONJ-855] Updatable view with calculated column can not be updated by ResultSet Created: 2021-02-10 Updated: 2021-05-12 Resolved: 2021-05-12 |
|
| Status: | Closed |
| Project: | MariaDB Connector/J |
| Component/s: | JDBC compatibility |
| Affects Version/s: | 2.6.2, 2.7.2 |
| Fix Version/s: | 2.7.3 |
| Type: | Bug | Priority: | Major |
| Reporter: | Tomas Janco | Assignee: | Diego Dupin |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Environment: |
MariaDB Server version 10.5.8 |
||
| Attachments: |
|
| Description |
|
When a view contains calculated column, the view is still updatable in MariaDb. However the JDBC driver considers this view as not updatable, because JDBC driver incorrectly considers all views that contain columns without database information as not updatable. The ResultSet from this view should be updatable, only the calculated column should not. Even if this is not to be supported (yet), the query should fail by throwing more specific SQLFeatureNotSupportedException instead of generic SQLException. Please see the example source code.
|
| Comments |
| Comment by Diego Dupin [ 2021-02-10 ] |
|
This task will only changing SQLException to SQLFeatureNotSupportedException for some specific case like this one. This will be part of next correction release. |