------------------------------------------------------------------------------
| 596 | |
| 597 | //------------------------------------------------------------------------------ |
| 598 | const char* vtkSQLDatabaseSchema::GetTriggerActionFromHandle(int tblHandle, int trgHandle) |
| 599 | { |
| 600 | if (tblHandle < 0 || tblHandle >= this->GetNumberOfTables()) |
| 601 | { |
| 602 | vtkErrorMacro("Cannot get action of a trigger in non-existent table " << tblHandle); |
| 603 | return nullptr; |
| 604 | } |
| 605 | |
| 606 | if (trgHandle < 0 || |
| 607 | trgHandle >= static_cast<int>(this->Internals->Tables[tblHandle].Triggers.size())) |
| 608 | { |
| 609 | vtkErrorMacro( |
| 610 | "Cannot get action of non-existent trigger " << trgHandle << " in table " << tblHandle); |
| 611 | return nullptr; |
| 612 | } |
| 613 | |
| 614 | return this->Internals->Tables[tblHandle].Triggers[trgHandle].Action.c_str(); |
| 615 | } |
| 616 | |
| 617 | //------------------------------------------------------------------------------ |
| 618 | const char* vtkSQLDatabaseSchema::GetTriggerBackendFromHandle(int tblHandle, int trgHandle) |