File indexing completed on 2025-08-03 08:22:03
0001
0002
0003 #ifndef RDBC_MySQLResultSetPrivate_h
0004 #define RDBC_MySQLResultSetPrivate_h
0005
0006 #include <mysql.h>
0007
0008
0009
0010
0011
0012
0013 class MySQLResultSetPrivate
0014 {
0015 friend class TSQLResultSet;
0016 friend class TSQLResultSetMetaData;
0017
0018 private:
0019 Int_t fCurrentRow;
0020 Bool_t fWasNull;
0021 Bool_t fReallyResult;
0022
0023 Bool_t fOnInsertRow;
0024 Bool_t fDoingUpdates;
0025
0026 Long_t fUpdateID;
0027 Long_t fUpdateCount;
0028
0029 MYSQL_RES* fMYSQL_RES;
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