"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