Explorar o código

* CanModify shoud not be dependent on active

git-svn-id: trunk@5663 -
joost %!s(int64=18) %!d(string=hai) anos
pai
achega
642e611f88
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      fcl/db/sqldb/sqldb.pp

+ 1 - 1
fcl/db/sqldb/sqldb.pp

@@ -1273,7 +1273,7 @@ Function TSQLQuery.GetCanModify: Boolean;
 begin
 begin
   // the test for assigned(FCursor) is needed for the case that the dataset isn't opened
   // the test for assigned(FCursor) is needed for the case that the dataset isn't opened
   if assigned(FCursor) and (FCursor.FStatementType = stSelect) then
   if assigned(FCursor) and (FCursor.FStatementType = stSelect) then
-    Result:= Active and  FUpdateable and (not FReadOnly)
+    Result:= FUpdateable and (not FReadOnly)
   else
   else
     Result := False;
     Result := False;
 end;
 end;