Skip to content

Commit

Permalink
Postfix for PR #7807
Browse files Browse the repository at this point in the history
  • Loading branch information
dyemanov committed Nov 13, 2023
1 parent a4b4fe4 commit 9ed5a4e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/dsql/DdlNodes.epp
Original file line number Diff line number Diff line change
Expand Up @@ -1726,7 +1726,7 @@ void CreateAlterFunctionNode::execute(thread_db* tdbb, DsqlCompilerScratch* dsql
AutoSavePoint savePoint(tdbb, transaction);
bool altered = false;

const bool alterIndividualParameters = (alter && !returnType && !(body || external));
const bool alterIndividualParameters = (!create && alter && !returnType && !(body || external));

// first pass
if (alterIndividualParameters)
Expand Down Expand Up @@ -2742,7 +2742,7 @@ void CreateAlterProcedureNode::execute(thread_db* tdbb, DsqlCompilerScratch* dsq
AutoSavePoint savePoint(tdbb, transaction);
bool altered = false;

const bool alterIndividualParameters = (alter && !(body || external));
const bool alterIndividualParameters = (!create && alter && !(body || external));

// first pass
if (alterIndividualParameters)
Expand Down
2 changes: 1 addition & 1 deletion src/dsql/PackageNodes.epp
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ void CreateAlterPackageNode::execute(thread_db* tdbb, DsqlCompilerScratch* dsqlS
// run all statements under savepoint control
AutoSavePoint savePoint(tdbb, transaction);

const bool alterIndividualParameters = (alter && !items);
const bool alterIndividualParameters = (!create && alter && !items);

if (alter)
{
Expand Down

0 comments on commit 9ed5a4e

Please sign in to comment.