| 1006 | //------------------------------------------------------------------------------ |
| 1007 | |
| 1008 | int 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 | } |
| 1020 | VTK_ABI_NAMESPACE_END |