SQLEndTran in the Cursor Library
The cursor library does not support transactions and passes calls to SQLEndTran directly to the driver. However, the cursor library does support the cursor commit and rollback behaviors as returned by the data source with the SQL_CURSOR_ROLLBACK_BEHAVIOR and SQL_CURSOR_COMMIT_BEHAVIOR information types:
-
For data sources that preserve cursors across transactions, changes that are rolled back in the data source are not rolled back in the cursor library’s cache. To make the cache match the data in the data source, the application must close and reopen the cursor.
-
For data sources that close cursors at transaction boundaries, the cursor library closes the cursors and deletes the caches for all statements on the connection.
-
For data sources that delete prepared statements at transaction boundaries, the application must reprepare all prepared statements on the connection before reexecuting them.