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

Method GetNumberOfRows

IO/PostgreSQL/vtkPostgreSQLQuery.cxx:1008–1019  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1006//------------------------------------------------------------------------------
1007
1008int vtkPostgreSQLQuery::GetNumberOfRows()
1009{
1010 if (!this->Database || !this->Database->IsOpen() || !this->QueryInternals || !this->Active)
1011 {
1012 vtkWarningMacro(<< "No active query. Cannot retrieve number of rows.");
1013 return 0;
1014 }
1015 else
1016 {
1017 return PQntuples(this->QueryInternals->QueryResults);
1018 }
1019}
1020VTK_ABI_NAMESPACE_END

Callers 5

NextRowMethod · 0.95
WriteDataMethod · 0.45
TestPostgreSQLDatabaseFunction · 0.45
WritePieceInternalMethod · 0.45
TestDataTypeFunction · 0.45

Calls 1

IsOpenMethod · 0.45

Tested by 2

TestPostgreSQLDatabaseFunction · 0.36
TestDataTypeFunction · 0.36