8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-22 23:23:02 +01:00

Fixed CORE-4911: Providers enumeration should not be continued on most of errors taking place in the provider

This commit is contained in:
alexpeshkoff 2015-08-18 14:57:50 +00:00
parent 606d459a63
commit b65849748f

View File

@ -5646,8 +5646,19 @@ YAttachment* Dispatcher::attachOrCreateDatabase(Firebird::CheckStatusWrapper* st
return new YAttachment(provider, attachment, expandedFilename);
}
if (currentStatus->getErrors()[1] != isc_unavailable)
switch(currentStatus->getErrors()[1])
{
case isc_io_error:
case isc_lock_dir_access:
case isc_no_priv:
currentStatus = &tempCheckStatusWrapper;
// fall down...
case isc_unavailable:
break;
default:
return NULL;
}
currentStatus->init();
}