Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
MySQLResultSetPrivate.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file MySQLResultSetPrivate.h
1 // $Id: MySQLResultSetPrivate.h,v 1.1.1.1 2004/02/18 20:58:02 dave Exp $
2 
3 #ifndef RDBC_MySQLResultSetPrivate_h
4 #define RDBC_MySQLResultSetPrivate_h
5 
6 #include <mysql.h>
7 
8 //
9 // Very private MySQL part of TSQLResultSet
10 //
11 
14 {
15 friend class TSQLResultSet;
16 friend class TSQLResultSetMetaData;
17 
18 private:
19  Int_t fCurrentRow; // Cursor to current row
20  Bool_t fWasNull; // for WasNull()
21  Bool_t fReallyResult; // for ExecuteUpdate() vs. Execute()
22 
23  Bool_t fOnInsertRow; //
24  Bool_t fDoingUpdates; //
25 
26  Long_t fUpdateID; // for AUTO_INCREMENT
27  Long_t fUpdateCount; // How many rows did we update?
28 
29  MYSQL_RES* fMYSQL_RES; // result set
30  Int_t* fColumnPrecisions;//
31  Int_t* fColumnTypes; //
32  TString* fColumnTypeNames; //
33 
34  void Close() {
35  mysql_free_result(fMYSQL_RES);
36 
38  if(fColumnTypes) delete fColumnTypes;
40 
41  fMYSQL_RES = 0;
42  fCurrentRow = 0;
43  fColumnPrecisions = 0;
44  fColumnTypes = 0;
45  fColumnTypeNames = 0;
46  }
47 };
48 
49 #endif // RDBC_MySQLResultSetPrivate_h