| 185 | } |
| 186 | |
| 187 | static bool isCurrentAccount(UserId* currUserID, |
| 188 | const MetaName& user, const string& pwd, const MetaName& role) |
| 189 | { |
| 190 | const MetaString& attUser = currUserID->getUserName(); |
| 191 | const MetaString& attRole = currUserID->getSqlRole(); |
| 192 | |
| 193 | return ((user.isEmpty() || user == attUser.c_str()) && pwd.isEmpty() && |
| 194 | (role.isEmpty() || role == attRole.c_str())); |
| 195 | } |
| 196 | |
| 197 | Connection* Manager::getConnection(thread_db* tdbb, const string& dataSource, |
| 198 | const string& user, const string& pwd, const string& role, TraScope tra_scope) |
no test coverage detected