Code: Select all
type THackUniConnection = class(TUniConnection);
...
THackUniConnection(UniConnection).AutoCommit := False;Method "TUniConnection.AssignConnect" skips "TCustomDAConnection.FAutoCommit". Is this by design?
Code: Select all
type THackUniConnection = class(TUniConnection);
...
THackUniConnection(UniConnection).AutoCommit := False;Code: Select all
type THackUniConnection = class(TUniConnection);
....
UniConnection1.Connect;
UniConnection1.StartTransaction;
THackUniConnection(UniConnection1).AutoCommit := False;
UniConnection1.ExecSQL('INTO TEST_TABLE(SOMEVALUE) VALUES(1)',[]);
UniConnection1.Disconnect;Is it necessary to start a transaction as You wrote?AlexP wrote:To change the properties AutoCommit, you need to define it after establishing connection to the database:
Code: Select all
type THackUniConnection = class(TUniConnection); .... UniConnection1.Connect; UniConnection1.StartTransaction; THackUniConnection(UniConnection1).AutoCommit := False; UniConnection1.ExecSQL('INTO TEST_TABLE(SOMEVALUE) VALUES(1)',[]); UniConnection1.Disconnect;
Code: Select all
type THackUniConnection = class(TUniConnection);
....
UniConnection1.Connect;
THackUniConnection(UniConnection1).AutoCommit := False;