210 |
|
FUseDefaultSystemCodePage: boolean; |
211 |
|
FUseHiddenPassword: boolean; |
212 |
|
FFirebirdAPI: IFirebirdAPI; |
213 |
+ |
FWireCompression: boolean; |
214 |
|
procedure EnsureInactive; |
215 |
|
function GetAuthenticationMethod: string; |
216 |
|
function GetDBSQLDialect: Integer; |
312 |
|
property TraceFlags: TTraceFlags read FTraceFlags write FTraceFlags; |
313 |
|
property UseDefaultSystemCodePage: boolean read FUseDefaultSystemCodePage |
314 |
|
write FUseDefaultSystemCodePage; |
315 |
+ |
property WireCompression: boolean read FWireCompression write FWireCompression; |
316 |
|
property AfterConnect; |
317 |
|
property AfterDisconnect; |
318 |
|
property BeforeConnect; |
505 |
|
write SetTransaction; |
506 |
|
end; |
507 |
|
|
508 |
< |
function GenerateDPB(FirebirdAPI: IFirebirdAPI; sl: TStrings): IDPB; |
508 |
> |
function GenerateDPB(FirebirdAPI: IFirebirdAPI; sl: TStrings; WireCompression: boolean): IDPB; |
509 |
|
function GenerateTPB(FirebirdAPI: IFirebirdAPI; sl: TStrings): ITPB; |
510 |
|
|
511 |
|
|
1096 |
|
begin |
1097 |
|
FDBParamsChanged := False; |
1098 |
|
if not FUseHiddenPassword and (not LoginPrompt and not (csDesigning in ComponentState)) or (FHiddenPassword = '') then |
1099 |
< |
DPB := GenerateDPB(FirebirdAPI,TempDBParams) |
1099 |
> |
DPB := GenerateDPB(FirebirdAPI,TempDBParams,WireCompression) |
1100 |
|
else |
1101 |
|
begin |
1102 |
|
TempDBParams.Values['password'] := FHiddenPassword; |
1103 |
< |
DPB := GenerateDPB(FirebirdAPI,TempDBParams); |
1103 |
> |
DPB := GenerateDPB(FirebirdAPI,TempDBParams,WireCompression); |
1104 |
|
end; |
1105 |
|
end; |
1106 |
|
|
2318 |
|
parameter buffer, and return it and its length |
2319 |
|
in DPB and DPBLength, respectively. } |
2320 |
|
|
2321 |
< |
function GenerateDPB(FirebirdAPI: IFirebirdAPI; sl: TStrings): IDPB; |
2321 |
> |
function GenerateDPB(FirebirdAPI: IFirebirdAPI; sl: TStrings; WireCompression: boolean): IDPB; |
2322 |
|
var |
2323 |
|
i, j: Integer; |
2324 |
|
DPBVal: UShort; |
2389 |
|
end; |
2390 |
|
end; |
2391 |
|
end; |
2392 |
+ |
if WireCompression then |
2393 |
+ |
Result.Add(isc_dpb_config).SetAsString('WireCompression=true'); |
2394 |
|
end; |
2395 |
|
|
2396 |
|
{ GenerateTPB - |