* treat transform as select and exec as execute. Mantis #17050, patch by Lacak2

git-svn-id: trunk@19362 -
This commit is contained in:
marco 2011-10-04 11:27:56 +00:00
parent 0f79033143
commit c7a82a0c1a

View File

@ -79,6 +79,7 @@ type
procedure DeAllocateCursorHandle(var cursor:TSQLCursor); override;
function AllocateTransactionHandle:TSQLHandle; override;
// - Statement handling
function StrToStatementType(s : string) : TStatementType; override;
procedure PrepareStatement(cursor:TSQLCursor; ATransaction:TSQLTransaction; buf:string; AParams:TParams); override;
procedure UnPrepareStatement(cursor:TSQLCursor); override;
// - Transaction handling
@ -299,6 +300,14 @@ begin
{$ENDIF}
end;
function TODBCConnection.StrToStatementType(s : string) : TStatementType;
begin
S:=Lowercase(s);
if s = 'transform' then Result:=stSelect //MS Access
else if s = 'exec' then Result:=stExecProcedure
else Result := inherited StrToStatementType(s);
end;
procedure TODBCConnection.SetParameters(ODBCCursor: TODBCCursor; AParams: TParams);
var
ParamIndex: integer;