mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-22 18:43:02 +01:00
Postfix for PR #7807
This commit is contained in:
parent
a4b4fe4571
commit
9ed5a4e010
@ -1726,7 +1726,7 @@ void CreateAlterFunctionNode::execute(thread_db* tdbb, DsqlCompilerScratch* dsql
|
|||||||
AutoSavePoint savePoint(tdbb, transaction);
|
AutoSavePoint savePoint(tdbb, transaction);
|
||||||
bool altered = false;
|
bool altered = false;
|
||||||
|
|
||||||
const bool alterIndividualParameters = (alter && !returnType && !(body || external));
|
const bool alterIndividualParameters = (!create && alter && !returnType && !(body || external));
|
||||||
|
|
||||||
// first pass
|
// first pass
|
||||||
if (alterIndividualParameters)
|
if (alterIndividualParameters)
|
||||||
@ -2742,7 +2742,7 @@ void CreateAlterProcedureNode::execute(thread_db* tdbb, DsqlCompilerScratch* dsq
|
|||||||
AutoSavePoint savePoint(tdbb, transaction);
|
AutoSavePoint savePoint(tdbb, transaction);
|
||||||
bool altered = false;
|
bool altered = false;
|
||||||
|
|
||||||
const bool alterIndividualParameters = (alter && !(body || external));
|
const bool alterIndividualParameters = (!create && alter && !(body || external));
|
||||||
|
|
||||||
// first pass
|
// first pass
|
||||||
if (alterIndividualParameters)
|
if (alterIndividualParameters)
|
||||||
|
@ -322,7 +322,7 @@ void CreateAlterPackageNode::execute(thread_db* tdbb, DsqlCompilerScratch* dsqlS
|
|||||||
// run all statements under savepoint control
|
// run all statements under savepoint control
|
||||||
AutoSavePoint savePoint(tdbb, transaction);
|
AutoSavePoint savePoint(tdbb, transaction);
|
||||||
|
|
||||||
const bool alterIndividualParameters = (alter && !items);
|
const bool alterIndividualParameters = (!create && alter && !items);
|
||||||
|
|
||||||
if (alter)
|
if (alter)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user