------------------------------------------------------------------------------
| 534 | |
| 535 | //------------------------------------------------------------------------------ |
| 536 | int vtkSQLDatabaseSchema::GetTriggerHandleFromName(const char* tblName, const char* trgName) |
| 537 | { |
| 538 | int tblHandle = this->GetTableHandleFromName(tblName); |
| 539 | if (tblHandle < 0) |
| 540 | { |
| 541 | return -1; |
| 542 | } |
| 543 | |
| 544 | int i; |
| 545 | int ntrg = static_cast<int>(this->Internals->Tables[tblHandle].Triggers.size()); |
| 546 | std::string trgNameStr(trgName); |
| 547 | for (i = 0; i < ntrg; ++i) |
| 548 | { |
| 549 | if (this->Internals->Tables[tblHandle].Triggers[i].Name == trgNameStr) |
| 550 | { |
| 551 | return i; |
| 552 | } |
| 553 | } |
| 554 | return -1; |
| 555 | } |
| 556 | |
| 557 | //------------------------------------------------------------------------------ |
| 558 | const char* vtkSQLDatabaseSchema::GetTriggerNameFromHandle(int tblHandle, int trgHandle) |
nothing calls this directly
no test coverage detected