Interbase/Firebird - OldTransactionBehaviour

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
stevel
Posts: 125
Joined: Tue 02 Nov 2010 19:01

Interbase/Firebird - OldTransactionBehaviour

Post by stevel » Tue 16 Sep 2014 15:21

Please tell us what this new global variable "OldTransactionBehaviour" does?

TIA.

ViktorV
Devart Team
Posts: 3168
Joined: Wed 30 Jul 2014 07:16

Re: Interbase/Firebird - OldTransactionBehaviour

Post by ViktorV » Fri 19 Sep 2014 06:51

The point is, that in UniDAC since version 5.0.1 we added the DefaultTransaction transaction property. All datasets that use the TUniConnection component, use its DefaultTransaction for all operations under data. We added the property because a lot of our users asked us to do it.
In earlier UniDAC versions, all the datasets that used TUniConnection, used implicitly created internal transaction. This transaction always remained open, and it was not possible to control it.
In order to provide backward compatibility with older UniDAC versions, we added the OldTransactionBehaviour global variable declared in "Uni.pas". The default variable value is "False". So, if you want to have old behaviour, you should set the variable to "True".

Post Reply