Browse Source

fcl-db: odbc: make TODBCCursor.STMTHandle and ODBCSuccess public

git-svn-id: trunk@49056 -
ondrej 4 years ago
parent
commit
1ad9091763
1 changed files with 4 additions and 0 deletions
  1. 4 0
      packages/fcl-db/src/sqldb/odbc/odbcconn.pas

+ 4 - 0
packages/fcl-db/src/sqldb/odbc/odbcconn.pas

@@ -32,6 +32,8 @@ type
     FParamIndex:TParamBinding; // maps the i-th parameter in the query to the TParams passed to PrepareStatement
     FParamIndex:TParamBinding; // maps the i-th parameter in the query to the TParams passed to PrepareStatement
     FParamBuf:array of pointer; // buffers that can be used to bind the i-th parameter in the query
     FParamBuf:array of pointer; // buffers that can be used to bind the i-th parameter in the query
   public
   public
+    property STMTHandle:SQLHSTMT read FSTMTHandle;
+
     constructor Create(Connection:TODBCConnection);
     constructor Create(Connection:TODBCConnection);
     destructor Destroy; override;
     destructor Destroy; override;
   end;
   end;
@@ -142,6 +144,8 @@ type
     Class Function Description : String; override;
     Class Function Description : String; override;
   end;
   end;
 
 
+function ODBCSuccess(const Res:SQLRETURN):boolean;
+
 implementation
 implementation
 
 
 uses
 uses