------------------------------------------------------------------------------
| 576 | |
| 577 | //------------------------------------------------------------------------------ |
| 578 | int vtkSQLDatabaseSchema::GetTriggerTypeFromHandle(int tblHandle, int trgHandle) |
| 579 | { |
| 580 | if (tblHandle < 0 || tblHandle >= this->GetNumberOfTables()) |
| 581 | { |
| 582 | vtkErrorMacro("Cannot get type of a trigger in non-existent table " << tblHandle); |
| 583 | return -1; |
| 584 | } |
| 585 | |
| 586 | if (trgHandle < 0 || |
| 587 | trgHandle >= static_cast<int>(this->Internals->Tables[tblHandle].Triggers.size())) |
| 588 | { |
| 589 | vtkErrorMacro( |
| 590 | "Cannot get type of non-existent trigger " << trgHandle << " in table " << tblHandle); |
| 591 | return -1; |
| 592 | } |
| 593 | |
| 594 | return this->Internals->Tables[tblHandle].Triggers[trgHandle].Type; |
| 595 | } |
| 596 | |
| 597 | //------------------------------------------------------------------------------ |
| 598 | const char* vtkSQLDatabaseSchema::GetTriggerActionFromHandle(int tblHandle, int trgHandle) |