23 fResult = (MYSQL_RES *) result;
24 fRowCount = fResult ? mysql_num_rows(fResult) : 0;
57 Error(
"IsValid",
"result set closed");
61 Error(
"IsValid",
"field index out of bounds");
73 Error(
"GetFieldCount",
"result set closed");
76 return mysql_num_fields(
fResult);
91 Error(
"GetFieldName",
"cannot get field info");
107 Error(
"Next",
"result set closed");
110 row = mysql_fetch_row(
fResult);
TSQLRow * Next()
Get next query result row.
Bool_t IsValid(Int_t field)
Check if result set is open and field index within range.
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
~TMySQLResult()
Cleanup MySQL query result.
void Close(Option_t *opt="")
Close query result.
const char * GetFieldName(Int_t field)
Get name of specified field.
Int_t GetFieldCount()
Get number of fields in result.