27 |
|
unit FBAttachment; |
28 |
|
{$IFDEF MSWINDOWS} |
29 |
|
{$DEFINE WINDOWS} |
30 |
– |
{$IF CompilerVersion >= 28} |
31 |
– |
{Delphi XE7 onwards}} |
32 |
– |
{$define HASREQEX} |
33 |
– |
{$IFEND} |
30 |
|
{$ENDIF} |
31 |
|
|
32 |
|
{$IFDEF FPC} |
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 |
|
|