I want to connect to Firebird Server 3.0 using WireCompression. This is a new feature starting with version 3.0. It's hard for me to do this, and only the documentary instructions I can find set WireCompression to TRUE in firebird.conf and use the connect parameter "wirecompression = true".
Here's what I got like this:
firebird.conf:
ServerMode = Super
DefaultDbCachePages = 50000
TempBlockSize = 2M
TempCacheLimit = 364M
AuthServer = Srp
AuthClient = Srp, Win_Sspi, Legacy_Auth
UserManager = Srp
TracePlugin = fbtrace2db
WireCompression = true
WireCrypt = enabled
RemoteServicePort = 3050
LockMemSize = 9M
LockHashSlots = 30011
GuardianOption = 1
Connection Code:
with FDB.Params do
begin
Clear;
Add('DriverID=FB');
Add('Database=' + vDatabase);
Add('User_Name=' + AUsername);
Add('PassWord=' + APassword);
Add('WireCompression=true');
end;
FDB.FetchOptions.Unidirectional:= true;
FDB.FetchOptions.RowsetSize:= 1000;
FDB.ResourceOptions.SilentMode:= true;
FDB.Connected := true;
vConnectionInfo:= TStringList.Create;
FDB.GetInfoReport(vConnectionInfo);
ShowMessage(vConnectionInfo.Text);
Clipboard.AsText:= vConnectionInfo.Text;
FreeAndNil(vConnectionInfo);
Result := FDB.Connected;
The connection is established, but vConnectionInfo says:
================================
Connection definition parameters
================================
DriverID=FB
Database=server:D:\Databases\FB3.0\test\test.FDB
User_Name=sysdba
PassWord=*****
WireCompression=true
================================
FireDAC info
================================
Tool = RAD Studio 10.1 Berlin
FireDAC = 15.0.1 (Build 86746)
Platform = Windows 32 bit
Defines = FireDAC_NOLOCALE_META;FireDAC_MONITOR
================================
Client info
================================
Loading driver FB ...
Brand = Firebird
Client version = 300009900
Client DLL name = D:\D10\Projects\TestFB30 Client\Win32\Debug\fbclient.dll
================================
Session info
================================
Current catalog =
Current schema =
Server version = WI-V3.0.0.32483 Firebird 3.0
WI-V3.0.0.32483 Firebird 3.0/tcp (server)/P13:C
WI-V3.0.0.32483 Firebird 3.0/tcp (laptop)/P13:C
Those last two lines say that I have the v13 (P13) protocol and the data is enCrypted (: C), but it should be P13: CZ indicating zlib compression.
I have zlib1.dll in the debug folder on the client side, and the zlib1.dll file is present on the server in the Firebird server folder.
I , no.
, , , , !