|
The wording in chapter 14 of JDBC 3 in sections 14.2.4.1 Updating a
Row, 14.2.4.2 Deleting a Row, 14.2.4.3 Inserting a Row The wording was carried unmodified forward to JDBC 4 Andreas Korneliussen (JIRA) wrote: [ http://issues.apache.org/jira/browse/DERBY-690?page=comments#action_12368286 ]Andreas Korneliussen commented on DERBY-690: -------------------------------------------- I found the following in the JDBC 2.1 spec: " 5.8.3 A result set s own changes We have pointed out that the visibility of changes made by others generally depends on a result set s type. A final point that concerns the visibility of changes via an open result set is whether a result set can see its own changes (inserts, updates, and deletes). A JDBC technology application can determine if the changes made by a result set are vis-ible to the result set itself by calling the DatabaseMetaData methods: ownUpdate-sAreVisible, ownDeletesAreVisible, and ownInsertsAreVisible. These methods are needed since this capability can vary between DBMSs and JDBC drivers. One s own updates are visible if an updated column value can be retrieved by calling getXXX() following a call to updateXXX(). " So the visibility of the ResultSets own changes does not have anything to do with the value in the database, it is the values you set when calling updateXXX(). (The values do not go down to the database until updateRow() is called). Has this been changed in JDBC 3 and later ? |
- Re: [jira] Commented: (DERBY-690) Add scrolla... Lance J. Andersen
- Re: [jira] Commented: (DERBY-690) Add sc... Daniel John Debrunner
- Re: [jira] Commented: (DERBY-690) Ad... Lance J. Andersen
- Re: [jira] Commented: (DERBY-690... Daniel John Debrunner
- Re: [jira] Commented: (DERBY... Lance J. Andersen
- [jira] Commented: (DERBY-690) Add scroll... Daniel John Debrunner (JIRA)
- [jira] Commented: (DERBY-690) Add scroll... Dag H. Wanvik (JIRA)
- Re: [jira] Commented: (DERBY-690) Add sc... Daniel John Debrunner
- Re: [jira] Commented: (DERBY-690) Ad... Dag H. Wanvik
- Re: [jira] Commented: (DERBY-690) Add sc... Bernt M. Johnsen
- [jira] Commented: (DERBY-690) Add scroll... Fernanda Pizzorno (JIRA)
