Browse Source

fcl-db: sqldb: FSelectable must be set to true by default, to work for TSQLConnections which does not provide information about statement (if there will be resultset) at preparation stage.

git-svn-id: trunk@24795 -
lacak 12 years ago
parent
commit
299938e784
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/fcl-db/src/sqldb/sqldb.pp

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

@@ -837,7 +837,7 @@ begin
   GetStatementInfo(FServerSQL,ParseSQL,GetSchemaType,I);
   StmType:=I.StatementType;
   AllocateCursor;
-  FCursor.FSelectable:=False;
+  FCursor.FSelectable:=True; // let PrepareStatement and/or Execute alter it
   FCursor.FStatementType:=StmType;
   FCursor.FSchemaType:=GetSchemaType;
   If LogEvent(detPrepare) then