mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-28 20:40:37 +02:00
* Forgot to set capabilities
git-svn-id: trunk@11603 -
This commit is contained in:
parent
2a108bb4bf
commit
7edaea59fd
@ -25,13 +25,22 @@ uses
|
|||||||
Type
|
Type
|
||||||
|
|
||||||
{ TSQLDBFBDDEngine }
|
{ TSQLDBFBDDEngine }
|
||||||
|
|
||||||
|
{ TFPDDFBSQLEngine }
|
||||||
|
|
||||||
|
TFPDDFBSQLEngine = Class(TFPDDSQLEngine)
|
||||||
|
Public
|
||||||
|
Function CreateSequenceSQL(Sequence : TDDSequenceDef) : String; override;
|
||||||
|
end;
|
||||||
|
|
||||||
TSQLDBFBDDEngine = Class(TSQLDBDDEngine)
|
TSQLDBFBDDEngine = Class(TSQLDBDDEngine)
|
||||||
private
|
private
|
||||||
Protected
|
Protected
|
||||||
Function CreateConnection(AConnectString : String) : TSQLConnection; override;
|
Function CreateConnection(AConnectString : String) : TSQLConnection; override;
|
||||||
Public
|
Public
|
||||||
|
Class function EngineCapabilities : TFPDDEngineCapabilities; virtual;
|
||||||
function ImportFields(Table: TDDTableDef): Integer; override;
|
function ImportFields(Table: TDDTableDef): Integer; override;
|
||||||
|
Function CreateSQLEngine : TFPDDSQLEngine; override;
|
||||||
Class function Description : string; override;
|
Class function Description : string; override;
|
||||||
Class function DBType : String; override;
|
Class function DBType : String; override;
|
||||||
end;
|
end;
|
||||||
@ -67,6 +76,12 @@ begin
|
|||||||
Result:=TIBConnection.Create(Self);
|
Result:=TIBConnection.Create(Self);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
class function TSQLDBFBDDEngine.EngineCapabilities: TFPDDEngineCapabilities;
|
||||||
|
begin
|
||||||
|
Result:=[ecImport,ecCreateTable,ecViewTable, ecTableIndexes,
|
||||||
|
ecRunQuery, ecRowsAffected, ecSequences, ecDomains];
|
||||||
|
end;
|
||||||
|
|
||||||
class function TSQLDBFBDDEngine.Description: string;
|
class function TSQLDBFBDDEngine.Description: string;
|
||||||
begin
|
begin
|
||||||
Result:='Firebird/Interbase connection using SQLDB';
|
Result:='Firebird/Interbase connection using SQLDB';
|
||||||
@ -227,5 +242,17 @@ begin
|
|||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
function TSQLDBFBDDEngine.CreateSQLEngine: TFPDDSQLEngine;
|
||||||
|
begin
|
||||||
|
Result:=TFPDDFBSQLEngine.Create;
|
||||||
|
end;
|
||||||
|
|
||||||
|
{ TFPDDFBSQLEngine }
|
||||||
|
|
||||||
|
function TFPDDFBSQLEngine.CreateSequenceSQL(Sequence: TDDSequenceDef): String;
|
||||||
|
begin
|
||||||
|
Result:='CREATE GENERATOR '+Sequence.SequenceName;
|
||||||
|
end;
|
||||||
|
|
||||||
end.
|
end.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user