mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-23 00:03:02 +01:00
Restore the old code to avoid returning temporary to the caller
This commit is contained in:
parent
8b485a455c
commit
f24ea57c36
@ -47,12 +47,12 @@ namespace
|
||||
// ILogonInfo implementation
|
||||
const char* name()
|
||||
{
|
||||
return att->getUserName().c_str();
|
||||
return att->att_user ? att->att_user->getUserName().c_str() : "";
|
||||
}
|
||||
|
||||
const char* role()
|
||||
{
|
||||
return att->getSqlRole().c_str();
|
||||
return att->att_user ? att->att_user->getSqlRole().c_str() : "";
|
||||
}
|
||||
|
||||
const char* networkProtocol()
|
||||
|
Loading…
Reference in New Issue
Block a user