8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-24 12:03:02 +01:00
This commit is contained in:
asfernandes 2008-02-10 17:26:35 +00:00
parent 93d444523f
commit 4ffcaa7c5b

View File

@ -284,8 +284,8 @@ namespace
}; };
// shuts SecurityDatabase in case of errors during attach or create // Shuts SecurityDatabase in case of errors during attach or create.
// when attachment is created, control is passed to it using clear // When attachment is created, control is passed to it using clear
class SecurityInitHolder class SecurityInitHolder
{ {
public: public:
@ -813,11 +813,12 @@ ISC_STATUS GDS_ATTACH_DATABASE(ISC_STATUS* user_status,
LCK_init(tdbb, LCK_OWNER_attachment); // For the attachment LCK_init(tdbb, LCK_OWNER_attachment); // For the attachment
attachment->att_flags |= ATT_lck_init_done; attachment->att_flags |= ATT_lck_init_done;
if (dbb->dbb_filename.empty()) if (dbb->dbb_filename.empty())
{ {
#if defined(DEV_BUILD) && defined(SUPERSERVER) #if defined(DEV_BUILD) && defined(SUPERSERVER)
// make sure we do not reopen same DB twice // make sure we do not reopen same DB twice
for (Database* d=databases; d; d = d->dbb_next) for (Database* d = databases; d; d = d->dbb_next)
{ {
if (d->dbb_filename == expanded_name) if (d->dbb_filename == expanded_name)
{ {
@ -1692,7 +1693,7 @@ ISC_STATUS GDS_CREATE_DATABASE(ISC_STATUS* user_status,
options.dpb_sql_dialect = 0; options.dpb_sql_dialect = 0;
} }
// Ccheck for correct credentials supplied // Check for correct credentials supplied
getUserInfo(userId, options); getUserInfo(userId, options);
} }
catch (const Firebird::Exception& e) catch (const Firebird::Exception& e)