26 SQLSMALLINT columnCount;
28 SQLRETURN retcode = SQLNumResultCols(
fHstmt, &columnCount);
30 if (retcode == SQL_SUCCESS || retcode == SQL_SUCCESS_WITH_INFO)
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 nullptr;
82 if (!
fHstmt)
return nullptr;
84 SQLRETURN retcode = SQLFetch(
fHstmt);
86 if (retcode == SQL_SUCCESS || retcode == SQL_SUCCESS_WITH_INFO)
TSQLRow * Next() final
Get next query result row.
virtual ~TODBCResult()
Cleanup ODBC query result.
const char * GetFieldName(Int_t field) final
Get name of specified field.
void Close(Option_t *opt="") final
Close (cleanup) ODBC result object. Deletes statement.
TODBCResult(SQLHSTMT stmt)
Constructor.