------------------------------------------------------------------------------
| 362 | |
| 363 | //------------------------------------------------------------------------------ |
| 364 | const char* vtkSQLDatabaseSchema::GetIndexNameFromHandle(int tblHandle, int idxHandle) |
| 365 | { |
| 366 | if (tblHandle < 0 || tblHandle >= this->GetNumberOfTables()) |
| 367 | { |
| 368 | vtkErrorMacro("Cannot get name of an index in non-existent table " << tblHandle); |
| 369 | return nullptr; |
| 370 | } |
| 371 | |
| 372 | if (idxHandle < 0 || |
| 373 | idxHandle >= static_cast<int>(this->Internals->Tables[tblHandle].Indices.size())) |
| 374 | { |
| 375 | vtkErrorMacro( |
| 376 | "Cannot get name of non-existent index " << idxHandle << " in table " << tblHandle); |
| 377 | return nullptr; |
| 378 | } |
| 379 | |
| 380 | return this->Internals->Tables[tblHandle].Indices[idxHandle].Name.c_str(); |
| 381 | } |
| 382 | |
| 383 | //------------------------------------------------------------------------------ |
| 384 | int vtkSQLDatabaseSchema::GetIndexTypeFromHandle(int tblHandle, int idxHandle) |