|
@@ -7,7 +7,7 @@ interface
|
|
uses
|
|
uses
|
|
Classes, SysUtils, IBConnection, sqldb, memds, FileUtil, LResources, Forms,
|
|
Classes, SysUtils, IBConnection, sqldb, memds, FileUtil, LResources, Forms,
|
|
Controls, Graphics, Dialogs, Menus, ComCtrls, Reg, QueryWindow, Grids,
|
|
Controls, Graphics, Dialogs, Menus, ComCtrls, Reg, QueryWindow, Grids,
|
|
- ExtCtrls, Buttons, StdCtrls, TableManage,dbugintf;
|
|
|
|
|
|
+ ExtCtrls, Buttons, StdCtrls, TableManage,dbugintf, turbocommon;
|
|
|
|
|
|
{$i turbocommon.inc}
|
|
{$i turbocommon.inc}
|
|
|
|
|
|
@@ -264,7 +264,6 @@ type
|
|
function Is64bit: Boolean;
|
|
function Is64bit: Boolean;
|
|
function Is32bit: Boolean;
|
|
function Is32bit: Boolean;
|
|
function getConfigurationDirectory: string;
|
|
function getConfigurationDirectory: string;
|
|
- procedure setTransactionIsolation(Params: TStringList);
|
|
|
|
end;
|
|
end;
|
|
|
|
|
|
|
|
|
|
@@ -785,14 +784,6 @@ begin
|
|
ExtractFilePath(ParamStr(0));
|
|
ExtractFilePath(ParamStr(0));
|
|
end;
|
|
end;
|
|
|
|
|
|
-procedure TfmMain.setTransactionIsolation(Params: TStringList);
|
|
|
|
-begin
|
|
|
|
- Params.Clear;
|
|
|
|
- Params.Add('isc_tpb_read_commited');
|
|
|
|
- Params.Add('isc_tpb_concurrency');
|
|
|
|
- Params.Add('isc_tpb_nowait');
|
|
|
|
-end;
|
|
|
|
-
|
|
|
|
(**************** Fill and show constraints form ************************)
|
|
(**************** Fill and show constraints form ************************)
|
|
|
|
|
|
procedure TfmMain.FillAndShowConstraintsForm(Form: TfmTableManage; ATableName: string; dbIndex: Integer);
|
|
procedure TfmMain.FillAndShowConstraintsForm(Form: TfmTableManage; ATableName: string; dbIndex: Integer);
|
|
@@ -3975,7 +3966,7 @@ begin
|
|
ibConnection.LogEvents:=[detCustom,detExecute,detCommit,detRollBack];
|
|
ibConnection.LogEvents:=[detCustom,detExecute,detCommit,detRollBack];
|
|
{$ENDIF DEBUG}
|
|
{$ENDIF DEBUG}
|
|
SQLTrans:= TSQLTransaction.Create(nil);
|
|
SQLTrans:= TSQLTransaction.Create(nil);
|
|
- setTransactionIsolation(SQLTrans.Params);
|
|
|
|
|
|
+ SetTransactionIsolation(SQLTrans.Params);
|
|
|
|
|
|
IBConnection.Transaction:= SQLTrans;
|
|
IBConnection.Transaction:= SQLTrans;
|
|
SQLTrans.DataBase:= IBConnection;
|
|
SQLTrans.DataBase:= IBConnection;
|