| 1007 | } |
| 1008 | |
| 1009 | IPluginBase* PluginSet::getPlugin(CheckStatusWrapper* status) |
| 1010 | { |
| 1011 | try |
| 1012 | { |
| 1013 | while (currentPlugin.hasData()) |
| 1014 | { |
| 1015 | IPluginBase* p = currentPlugin->factory(firebirdConf); |
| 1016 | if (p) |
| 1017 | return p; |
| 1018 | |
| 1019 | next(status); |
| 1020 | if (status->getState() & Firebird::IStatus::STATE_ERRORS) |
| 1021 | break; |
| 1022 | } |
| 1023 | } |
| 1024 | catch (const Firebird::Exception& ex) |
| 1025 | { |
| 1026 | ex.stuffException(status); |
| 1027 | } |
| 1028 | |
| 1029 | return NULL; |
| 1030 | } |
| 1031 | |
| 1032 | class BuiltinRegister |
| 1033 | { |
no test coverage detected