27 |
|
unit FBAttachment; |
28 |
|
{$IFDEF MSWINDOWS} |
29 |
|
{$DEFINE WINDOWS} |
30 |
< |
{$IF CompilerVersion >= 28} |
30 |
> |
{$IF defined(CompilerVersion) and (CompilerVersion >= 28)} |
31 |
|
{Delphi XE7 onwards}} |
32 |
|
{$define HASREQEX} |
33 |
|
{$IFEND} |
365 |
|
end; |
366 |
|
{$ELSE} |
367 |
|
procedure TFBAttachment.DPBFromCreateSQL(CreateSQL: AnsiString); |
368 |
+ |
begin |
369 |
+ |
FDPB := FFirebirdAPI.AllocateDPB; |
370 |
+ |
if FCharSetID > 0 then |
371 |
+ |
DPB.Add(isc_dpb_lc_ctype).AsString := GetCharSetName(FCharSetID); |
372 |
+ |
DPB.Add(isc_dpb_set_db_SQL_dialect).setAsByte(FSQLDialect); |
373 |
|
end; |
374 |
|
{$ENDIF} |
375 |
|
|