MCPcopy Create free account
hub / github.com/Kitware/VTK / GetColumnRawData

Method GetColumnRawData

IO/PostgreSQL/vtkPostgreSQLQuery.cxx:987–1004  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

985//------------------------------------------------------------------------------
986
987const char* vtkPostgreSQLQuery::GetColumnRawData(int whichColumn)
988{
989 if ((!this->Active) || (!this->Database) || (!this->QueryInternals->QueryResults))
990 {
991 vtkWarningMacro(<< "No active query!");
992 return nullptr;
993 }
994 else if (whichColumn < 0 || whichColumn >= this->GetNumberOfFields())
995 {
996 vtkWarningMacro(<< "Illegal column index " << whichColumn);
997 return nullptr;
998 }
999 else
1000 {
1001 return PQgetvalue(
1002 this->QueryInternals->QueryResults, this->QueryInternals->CurrentRow, whichColumn);
1003 }
1004}
1005
1006//------------------------------------------------------------------------------
1007

Callers 1

DataValueMethod · 0.95

Calls 1

GetNumberOfFieldsMethod · 0.95

Tested by

no test coverage detected