mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-03 18:10:17 +02:00
fcl-db: sqldb: add PSGetTableName; addition to rev.27074
git-svn-id: trunk@27114 -
This commit is contained in:
parent
17ad74aba4
commit
607369f830
@ -144,8 +144,6 @@ type
|
||||
TSQLConnection = class (TDatabase)
|
||||
private
|
||||
FFieldNameQuoteChars : TQuoteChars;
|
||||
FLogEvents: TDBEventTypes;
|
||||
FOnLog: TDBLogNotifyEvent;
|
||||
FPassword : string;
|
||||
FTransaction : TSQLTransaction;
|
||||
FUserName : string;
|
||||
@ -153,6 +151,8 @@ type
|
||||
FCharSet : string;
|
||||
FRole : String;
|
||||
FStatements : TFPList;
|
||||
FLogEvents: TDBEventTypes;
|
||||
FOnLog: TDBLogNotifyEvent;
|
||||
function GetPort: cardinal;
|
||||
procedure SetPort(const AValue: cardinal);
|
||||
protected
|
||||
@ -432,7 +432,8 @@ type
|
||||
class function FieldDefsClass : TFieldDefsClass; override;
|
||||
// IProviderSupport methods
|
||||
function PSGetUpdateException(E: Exception; Prev: EUpdateError): EUpdateError; override;
|
||||
Property TableName : String Read FTableName Write FTableName;
|
||||
function PSGetTableName: string; override;
|
||||
Property TableName : String Read FTableName Write FTableName; // alternative: procedure DoGetTableName
|
||||
public
|
||||
constructor Create(AOwner : TComponent); override;
|
||||
destructor Destroy; override;
|
||||
@ -2488,6 +2489,11 @@ begin
|
||||
Result := EUpdateError.Create(SOnUpdateError, E.Message, ErrorCode, PrevErrorCode, E);
|
||||
end;
|
||||
|
||||
function TCustomSQLQuery.PSGetTableName: string;
|
||||
begin
|
||||
Result := FTableName;
|
||||
end;
|
||||
|
||||
{ TSQLScript }
|
||||
|
||||
procedure TSQLScript.ExecuteStatement(SQLStatement: TStrings;
|
||||
|
Loading…
Reference in New Issue
Block a user