------------------------------------------------------------------------------
| 310 | |
| 311 | //------------------------------------------------------------------------------ |
| 312 | int vtkPostgreSQLQuery::GetNumberOfFields() |
| 313 | { |
| 314 | if (!this->Active || !this->QueryInternals) |
| 315 | { |
| 316 | vtkErrorMacro("Query is not active!"); |
| 317 | return 0; |
| 318 | } |
| 319 | |
| 320 | return PQnfields(this->QueryInternals->QueryResults); |
| 321 | } |
| 322 | |
| 323 | //------------------------------------------------------------------------------ |
| 324 | const char* vtkPostgreSQLQuery::GetFieldName(int column) |
no outgoing calls