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

Allow only one ALTER DATABASE ENCRYPT query in transaction

This commit is contained in:
aafemt 2015-12-11 19:46:32 +00:00
parent dbd023006c
commit 7cf4523886

View File

@ -322,11 +322,8 @@ namespace Jrd {
if (newCryptState)
{
if (cryptPlugin)
{
// Unload old plugin
PluginManagerInterfacePtr()->releasePlugin(cryptPlugin);
cryptPlugin = NULL;
}
(Arg::Gds(isc_cp_already_crypted)).raise();
loadPlugin(plugName.c_str());
}
}