mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-02-02 10:00:38 +01:00
Correction
This commit is contained in:
parent
56ff35b01f
commit
b2104c5924
@ -1359,7 +1359,8 @@ ISC_STATUS GDS_ATTACH_DATABASE(ISC_STATUS* user_status,
|
||||
{
|
||||
const ISC_LONG exc = ex.stuff_exception(user_status);
|
||||
const bool no_priv = (exc == isc_login || exc == isc_no_priv);
|
||||
trace_failed_attach(attachment->att_trace_manager, filename, options, no_priv);
|
||||
trace_failed_attach(attachment ? attachment->att_trace_manager : NULL,
|
||||
filename, options, no_priv);
|
||||
|
||||
return unwindAttach(ex, user_status, tdbb, attachment, dbb);
|
||||
}
|
||||
@ -2095,8 +2096,8 @@ ISC_STATUS GDS_CREATE_DATABASE(ISC_STATUS* user_status,
|
||||
{
|
||||
const ISC_LONG exc = ex.stuff_exception(user_status);
|
||||
const bool no_priv = (exc == isc_login || exc == isc_no_priv);
|
||||
if (attachment && attachment->att_trace_manager)
|
||||
trace_failed_attach(attachment->att_trace_manager, filename, options, no_priv);
|
||||
trace_failed_attach(attachment ? attachment->att_trace_manager : NULL,
|
||||
filename, options, no_priv);
|
||||
|
||||
return unwindAttach(ex, user_status, tdbb, attachment, dbb);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user