------------------------------------------------------------------------------
| 778 | |
| 779 | //------------------------------------------------------------------------------ |
| 780 | int vtkSQLDatabaseSchema::GetNumberOfColumnNamesInIndex(int tblHandle, int idxHandle) |
| 781 | { |
| 782 | if (tblHandle < 0 || tblHandle >= this->GetNumberOfTables()) |
| 783 | { |
| 784 | vtkErrorMacro( |
| 785 | "Cannot get the number of column names in index of non-existent table " << tblHandle); |
| 786 | return -1; |
| 787 | } |
| 788 | |
| 789 | if (idxHandle < 0 || |
| 790 | idxHandle >= static_cast<int>(this->Internals->Tables[tblHandle].Indices.size())) |
| 791 | { |
| 792 | vtkErrorMacro("Cannot get the number of column names of non-existent index " |
| 793 | << idxHandle << " in table " << tblHandle); |
| 794 | return -1; |
| 795 | } |
| 796 | |
| 797 | return static_cast<int>(this->Internals->Tables[tblHandle].Indices[idxHandle].ColumnNames.size()); |
| 798 | } |
| 799 | |
| 800 | //------------------------------------------------------------------------------ |
| 801 | int vtkSQLDatabaseSchema::GetNumberOfTriggersInTable(int tblHandle) |
no test coverage detected