mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-16 19:39:20 +02:00
* When the dataset is read from file, do not prepare the sql-statement
* Datasets which are read from file are in principle modifyable git-svn-id: trunk@13264 -
This commit is contained in:
parent
bf5666675a
commit
9f93cccd7a
@ -1214,7 +1214,14 @@ var tel, fieldc : integer;
|
||||
ReadFromFile: Boolean;
|
||||
begin
|
||||
ReadFromFile:=IsReadFromPacket;
|
||||
Prepare;
|
||||
if ReadFromFile then
|
||||
begin
|
||||
FCursor:=TSQLCursor.Create;
|
||||
FCursor.FStatementType:=stSelect;
|
||||
FUpdateable:=True;
|
||||
end
|
||||
else
|
||||
Prepare;
|
||||
if FCursor.FStatementType in [stSelect,stExecProcedure] then
|
||||
begin
|
||||
if not ReadFromFile then
|
||||
|
Loading…
Reference in New Issue
Block a user