|
@@ -255,6 +255,7 @@ type
|
|
Procedure Execute;
|
|
Procedure Execute;
|
|
Procedure Unprepare;
|
|
Procedure Unprepare;
|
|
function ParamByName(Const AParamName : String) : TParam;
|
|
function ParamByName(Const AParamName : String) : TParam;
|
|
|
|
+ function RowsAffected: TRowsCount; virtual;
|
|
Property Prepared : boolean read GetPrepared;
|
|
Property Prepared : boolean read GetPrepared;
|
|
end;
|
|
end;
|
|
|
|
|
|
@@ -828,6 +829,14 @@ begin
|
|
Result:=FParams.ParamByName(AParamName);
|
|
Result:=FParams.ParamByName(AParamName);
|
|
end;
|
|
end;
|
|
|
|
|
|
|
|
+function TCustomSQLStatement.RowsAffected: TRowsCount;
|
|
|
|
+begin
|
|
|
|
+ Result := -1;
|
|
|
|
+ if not Assigned(Database) then
|
|
|
|
+ Exit;
|
|
|
|
+ Result:=Database.RowsAffected(FCursor);
|
|
|
|
+end;
|
|
|
|
+
|
|
{ TSQLConnection }
|
|
{ TSQLConnection }
|
|
|
|
|
|
function TSQLConnection.StrToStatementType(s : string) : TStatementType;
|
|
function TSQLConnection.StrToStatementType(s : string) : TStatementType;
|