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:
parent
dbd023006c
commit
7cf4523886
@ -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());
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user