------------------------------------------------------------------------------
| 514 | |
| 515 | //------------------------------------------------------------------------------ |
| 516 | const char* vtkSQLDatabaseSchema::GetColumnAttributesFromHandle(int tblHandle, int colHandle) |
| 517 | { |
| 518 | if (tblHandle < 0 || tblHandle >= this->GetNumberOfTables()) |
| 519 | { |
| 520 | vtkErrorMacro("Cannot get attributes of a column in non-existent table " << tblHandle); |
| 521 | return nullptr; |
| 522 | } |
| 523 | |
| 524 | if (colHandle < 0 || |
| 525 | colHandle >= static_cast<int>(this->Internals->Tables[tblHandle].Columns.size())) |
| 526 | { |
| 527 | vtkErrorMacro( |
| 528 | "Cannot get attributes of non-existent column " << colHandle << " in table " << tblHandle); |
| 529 | return nullptr; |
| 530 | } |
| 531 | |
| 532 | return this->Internals->Tables[tblHandle].Columns[colHandle].Attributes.c_str(); |
| 533 | } |
| 534 | |
| 535 | //------------------------------------------------------------------------------ |
| 536 | int vtkSQLDatabaseSchema::GetTriggerHandleFromName(const char* tblName, const char* trgName) |
no test coverage detected