mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-22 06:49:27 +02:00
* treat transform as select and exec as execute. Mantis #17050, patch by Lacak2
git-svn-id: trunk@19362 -
This commit is contained in:
parent
0f79033143
commit
c7a82a0c1a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user