Issue Details (XML | Word | Printable)

Key: CORE-4387
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Alexander Peshkov
Reporter: Alexander Peshkov
Votes: 0
Watchers: 0

If you were logged in you would be able to see more operations.
Firebird Core

IStatement::execute() and IAttachment::execute() functions should return on error pointer to old transaction interface

Created: 08/Apr/14 01:43 PM   Updated: 25/May/16 06:25 AM
Component/s: API / Client Library
Affects Version/s: 3.0 Alpha 2
Fix Version/s: 3.0 Beta 1

QA Status: Cannot be tested

 Description  « Hide
When executing unknown SQL statement one should be ready that this is START TRANSACTION or COMMIT, therefore value returned by I***::execute() function should be assigned to current transaction (that's exactly what ISQL in Alpha2 does). But in case of any error API returns NULL (causing transaction leek in ISQL). To avoid need to analyze IStatus before assigning to current transaction in any user program it's good idea to make API return on error old transaction interface pointer.

 All   Comments   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Alexander Peshkov added a comment - 08/Apr/14 01:45 PM
An issue was reported to me privately by Dmitry Emanov