MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / isCurrentAccount

Function isCurrentAccount

src/jrd/extds/ExtDS.cpp:187–195  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

185}
186
187static 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
197Connection* Manager::getConnection(thread_db* tdbb, const string& dataSource,
198 const string& user, const string& pwd, const string& role, TraScope tra_scope)

Callers 2

getConnectionMethod · 0.85
generateDPBMethod · 0.85

Calls 3

getUserNameMethod · 0.45
isEmptyMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected