| 985 | //------------------------------------------------------------------------------ |
| 986 | |
| 987 | const 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 |
no test coverage detected