26 SQLSMALLINT columnCount;
28 SQLRETURN retcode = SQLNumResultCols(fHstmt, &columnCount);
30 if (retcode == SQL_SUCCESS || retcode == SQL_SUCCESS_WITH_INFO)
31 fFieldCount = columnCount;
47 SQLFreeHandle(SQL_HANDLE_STMT,
fHstmt);
56 SQLCHAR columnName[1024];
58 SQLSMALLINT nameLength;
61 SQLSMALLINT decimalDigits;
65 SQLDescribeCol(
fHstmt, field+1, columnName, 1024,
66 &nameLength, &dataType,
67 &columnSize, &decimalDigits, &nullable);
69 if (retcode != SQL_SUCCESS && retcode != SQL_SUCCESS_WITH_INFO)
return 0;
84 SQLRETURN retcode = SQLFetch(
fHstmt);
86 if (retcode == SQL_SUCCESS || retcode == SQL_SUCCESS_WITH_INFO)
TSQLRow * Next()
Get next query result row.
void Close(Option_t *opt="")
Close (cleanup) ODBC result object. Deletes statement.
const char * GetFieldName(Int_t field)
Get name of specified field.
virtual ~TODBCResult()
Cleanup ODBC query result.