32 |
|
{$IFDEF FPC} |
33 |
|
{$mode delphi} |
34 |
|
{$interfaces COM} |
35 |
+ |
{$define HASREQEX} |
36 |
|
{$ENDIF} |
37 |
|
|
38 |
|
interface |
142 |
|
|
143 |
|
implementation |
144 |
|
|
145 |
< |
uses FBMessages, FBTransaction, RegExpr; |
145 |
> |
uses FBMessages, FBTransaction {$IFDEF HASREQEX}, RegExpr{$ENDIF}; |
146 |
|
|
147 |
|
const |
148 |
|
CharSetMap: array [0..69] of TCharsetMap = ( |
330 |
|
end; |
331 |
|
end; |
332 |
|
|
333 |
+ |
{$IFDEF HASREQEX} |
334 |
|
procedure TFBAttachment.DPBFromCreateSQL(CreateSQL: AnsiString); |
335 |
|
var RegexObj: TRegExpr; |
336 |
|
begin |
359 |
|
DPB.Add(isc_dpb_lc_ctype).AsString := GetCharSetName(FCharSetID); |
360 |
|
DPB.Add(isc_dpb_set_db_SQL_dialect).setAsByte(FSQLDialect); |
361 |
|
end; |
362 |
+ |
{$ELSE} |
363 |
+ |
procedure TFBAttachment.DPBFromCreateSQL(CreateSQL: AnsiString); |
364 |
+ |
begin |
365 |
+ |
FDPB := FFirebirdAPI.AllocateDPB; |
366 |
+ |
if FCharSetID > 0 then |
367 |
+ |
DPB.Add(isc_dpb_lc_ctype).AsString := GetCharSetName(FCharSetID); |
368 |
+ |
DPB.Add(isc_dpb_set_db_SQL_dialect).setAsByte(FSQLDialect); |
369 |
+ |
end; |
370 |
+ |
{$ENDIF} |
371 |
|
|
372 |
|
procedure TFBAttachment.SetParameters(SQLParams: ISQLParams; |
373 |
|
params: array of const); |