tiNone Causes Error When Using Custome TILs
Posted: 04.03.2014, 23:08
I'm using ZeosLib 7.1.2-stable with Firebird version 2.5.2.26540. The following code causes error
"SQL Error: invalid format for transaction parameter block wrong version of transaction parameter block. Error Code: -901.
If tiReadCommitted, tiRepeatableRead, or tiSerializalble are used in place of tiNone for the transaction isolation level, then I do not get
an error when the "Connected := true;" statement is executed, however it seems that the custom TIL properties are ignored.
Is there something wrong with the code or is there a bug with tiNone and custom TIL parameters?
How do you use custom Firebird transaction parameters with ZeosLib?
Thanks,
doug4
"SQL Error: invalid format for transaction parameter block wrong version of transaction parameter block. Error Code: -901.
Code: Select all
with ZConnection1 do
begin
Connected := false;
Properties.Clear;
ClientCodePage := 'UTF8';
Database := 'test_db';
HostName := 'myhost';
LibraryLocation := 'fbclient.dll';
Password := 'abc';
Protocol := 'firebird-2.5';
ReadOnly := false;
TransactIsolationLevel := tiNone;
UseMetadata := false;
User := 'user1';
Properties.Add('Dialect=3');
Properties.Add('rolename=admin');
Properties.Add('controls_cp=CP_UTF8');
Properties.Add('isc_tpb_read_committed');
Properties.Add('isc_tpb_write');
Properties.Add('isc_tpb_rec_version');
Properties.Add('isc_tpb_nowait');
Connected := true; // this statement causes the parameter block error
end; // with ZConnection1 do
an error when the "Connected := true;" statement is executed, however it seems that the custom TIL properties are ignored.
Is there something wrong with the code or is there a bug with tiNone and custom TIL parameters?
How do you use custom Firebird transaction parameters with ZeosLib?
Thanks,
doug4