| 68 | } |
| 69 | |
| 70 | unsigned int ConfigKeys::getKey(IFirebirdConf* config, const char* keyName) |
| 71 | { |
| 72 | FbLocalStatus status; |
| 73 | unsigned int version = config->getVersion(&status) & 0xFFFF0000; |
| 74 | for (const_iterator itr = this->begin(); itr != this->end(); ++itr) |
| 75 | { |
| 76 | if (((*itr) & 0xFFFF0000) == version) |
| 77 | return *itr; |
| 78 | } |
| 79 | |
| 80 | unsigned int secDbKey = config->getKey(keyName); |
| 81 | if (secDbKey != INVALID_KEY) |
| 82 | this->push(secDbKey); |
| 83 | |
| 84 | return secDbKey; |
| 85 | } |
| 86 | |
| 87 | |
| 88 | #ifdef NOT_USED_OR_REPLACED |
nothing calls this directly
no test coverage detected