8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-24 04:03:03 +01:00

Ugly fix to avoid detaching security database before attach is really complete. Will not be beeded after moving auth to remote level.

This commit is contained in:
alexpeshkoff 2009-12-14 12:14:35 +00:00
parent 5b85425685
commit 67644240b0

View File

@ -329,9 +329,11 @@ void SecurityDatabase::prepare()
// Attach as SYSDBA
dpb.insertString(isc_dpb_trusted_auth, SYSDBA_USER_NAME, strlen(SYSDBA_USER_NAME));
isc_attach_database(status, 0, user_info_name, &lookup_db,
isc_db_handle tempHandle;
isc_attach_database(status, 0, user_info_name, &tempHandle,
dpb.getBufferLength(), reinterpret_cast<const char*>(dpb.getBuffer()));
checkStatus("isc_attach_database", isc_psw_attach);
lookup_db = tempHandle;
isc_compile_request(status, &lookup_db, &lookup_req, sizeof(PWD_REQUEST),
reinterpret_cast<const char*>(PWD_REQUEST));