Unidac TUniscript with transaction
Posted: Fri 02 Sep 2016 20:28
Hi,
I have something strange, i hope someone knows whats causing this.
In my vcl application i use several ways to execute sql statements, one is with a TUniQuery, with seperate transaction, i execute a StartTransaction on the UniQuery and execute for example a alter table statement, the result is that the command does not have effect until i perform a commit.
Great, thats what i want.
But, on another form, when i do the same statement but using a TUniScript, also with seperate transaction and with Starttransaction before i Execute the UniScript, the statement immediatly has effect, without commiting the transaction.
Of course there is no commit in the script and autocommit is false on both the uniconnection and the uniscript components.
Does anyone have an idea why UniScript seems to autocommit?
I have something strange, i hope someone knows whats causing this.
In my vcl application i use several ways to execute sql statements, one is with a TUniQuery, with seperate transaction, i execute a StartTransaction on the UniQuery and execute for example a alter table statement, the result is that the command does not have effect until i perform a commit.
Great, thats what i want.
But, on another form, when i do the same statement but using a TUniScript, also with seperate transaction and with Starttransaction before i Execute the UniScript, the statement immediatly has effect, without commiting the transaction.
Of course there is no commit in the script and autocommit is false on both the uniconnection and the uniscript components.
Does anyone have an idea why UniScript seems to autocommit?