25 fFieldCount = fieldcount;
31 fBuffer =
new char*[fFieldCount];
32 fLengths =
new ULong_t[fFieldCount];
33 for (
Int_t n = 0;
n < fFieldCount;
n++) {
75 #define buffer_len 128
83 if (ressize==SQL_NULL_DATA) {
91 if (retcode==SQL_SUCCESS_WITH_INFO) {
94 SQLGetDiagRec(SQL_HANDLE_STMT,
fHstmt, 1, state, &code, 0, 0, 0);
96 if (strcmp((
char*)state,
"01004")==0) {
99 char* newbuf =
new char[ressize+10];
104 retcode = SQLGetData(
fHstmt, field+1, SQL_C_CHAR, newbuf, ressize+10-
buffer_len, &ressize);
ClassImp(TODBCRow) TODBCRow
Single row of query result.
virtual ~TODBCRow()
Destroy row object.
void Close(Option_t *opt="")
Close row.
void CopyFieldValue(Int_t field)
Extracts field value from statement.
ULong_t GetFieldLength(Int_t field)
Get length in bytes of specified field.
const char * GetField(Int_t field)
Get specified field from row (0 <= field < GetFieldCount()).