20 TPgSQLRow::TPgSQLRow(
void *res, ULong_t rowHandle)
22 fResult = (PGresult *) res;
23 fRowNum = (ULong_t) rowHandle;
29 TPgSQLRow::~TPgSQLRow()
38 void TPgSQLRow::Close(Option_t *)
50 Bool_t TPgSQLRow::IsValid(Int_t field)
52 if (field < 0 || field >= (Int_t)PQnfields(fResult)) {
53 Error(
"IsValid",
"field index out of bounds");
62 ULong_t TPgSQLRow::GetFieldLength(Int_t field)
67 ULong_t fieldLength = (ULong_t) PQfsize(fResult, field);
70 Error(
"GetFieldLength",
"cannot get field length");
80 const char *TPgSQLRow::GetField(Int_t field)
85 return PQgetvalue(fResult, fRowNum, field);