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

Method IsColumnBinary

IO/PostgreSQL/vtkPostgreSQLQuery.cxx:967–983  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

965//------------------------------------------------------------------------------
966
967bool vtkPostgreSQLQuery::IsColumnBinary(int whichColumn)
968{
969 if ((!this->Active) || (!this->Database) || (!this->QueryInternals->QueryResults))
970 {
971 vtkWarningMacro(<< "No active query!");
972 return false;
973 }
974 else if (whichColumn < 0 || whichColumn >= this->GetNumberOfFields())
975 {
976 vtkWarningMacro(<< "Illegal column index " << whichColumn);
977 return false;
978 }
979 else
980 {
981 return (PQfformat(this->QueryInternals->QueryResults, whichColumn) == 1);
982 }
983}
984
985//------------------------------------------------------------------------------
986

Callers 1

DataValueMethod · 0.95

Calls 1

GetNumberOfFieldsMethod · 0.95

Tested by

no test coverage detected