Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-03 08:22:03

0001 // $Id: MySQLResultSetPrivate.h,v 1.1.1.1 2004/02/18 20:58:02 dave Exp $
0002 
0003 #ifndef RDBC_MySQLResultSetPrivate_h
0004 #define RDBC_MySQLResultSetPrivate_h
0005 
0006 #include <mysql.h>
0007 
0008 //
0009 // Very private MySQL part of TSQLResultSet
0010 //
0011 
0012 /////////////////////////////////////////////////////////////////////
0013 class MySQLResultSetPrivate
0014 {
0015 friend class TSQLResultSet;
0016 friend class TSQLResultSetMetaData;
0017 
0018 private:
0019    Int_t    fCurrentRow;   // Cursor to current row
0020    Bool_t   fWasNull;      // for WasNull()
0021    Bool_t   fReallyResult; // for ExecuteUpdate() vs. Execute()
0022    
0023    Bool_t   fOnInsertRow;  //
0024    Bool_t   fDoingUpdates; //     
0025 
0026    Long_t   fUpdateID;     // for AUTO_INCREMENT
0027    Long_t   fUpdateCount;  // How many rows did we update?
0028 
0029    MYSQL_RES*  fMYSQL_RES;       // result  set 
0030    Int_t*      fColumnPrecisions;//  
0031    Int_t*      fColumnTypes;     // 
0032    TString*    fColumnTypeNames; //
0033 
0034    void Close() {
0035       mysql_free_result(fMYSQL_RES);
0036  
0037       if(fColumnPrecisions) delete fColumnPrecisions;
0038       if(fColumnTypes) delete fColumnTypes;
0039       if(fColumnTypeNames) delete fColumnTypeNames;
0040       
0041       fMYSQL_RES = 0;
0042       fCurrentRow = 0;
0043       fColumnPrecisions = 0; 
0044       fColumnTypes = 0; 
0045       fColumnTypeNames = 0;
0046    }
0047 };
0048 
0049 #endif // RDBC_MySQLResultSetPrivate_h