| 965 | //------------------------------------------------------------------------------ |
| 966 | |
| 967 | bool 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 |
no test coverage detected