------------------------------------------------------------------------------
| 556 | |
| 557 | //------------------------------------------------------------------------------ |
| 558 | const char* vtkSQLDatabaseSchema::GetTriggerNameFromHandle(int tblHandle, int trgHandle) |
| 559 | { |
| 560 | if (tblHandle < 0 || tblHandle >= this->GetNumberOfTables()) |
| 561 | { |
| 562 | vtkErrorMacro("Cannot get name of a trigger in non-existent table " << tblHandle); |
| 563 | return nullptr; |
| 564 | } |
| 565 | |
| 566 | if (trgHandle < 0 || |
| 567 | trgHandle >= static_cast<int>(this->Internals->Tables[tblHandle].Triggers.size())) |
| 568 | { |
| 569 | vtkErrorMacro( |
| 570 | "Cannot get name of non-existent trigger " << trgHandle << " in table " << tblHandle); |
| 571 | return nullptr; |
| 572 | } |
| 573 | |
| 574 | return this->Internals->Tables[tblHandle].Triggers[trgHandle].Name.c_str(); |
| 575 | } |
| 576 | |
| 577 | //------------------------------------------------------------------------------ |
| 578 | int vtkSQLDatabaseSchema::GetTriggerTypeFromHandle(int tblHandle, int trgHandle) |