Skip to content

Commit

Permalink
Fixed bug #7501 : Precision of standalone unit may differ from packag…
Browse files Browse the repository at this point in the history
…ed one in SQL dialect 1
  • Loading branch information
hvlad committed Mar 10, 2023
1 parent fb24aa4 commit 23f3cca
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/dsql/PackageNodes.epp
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,11 @@ DdlNode* CreateAlterPackageNode::dsqlPass(DsqlCompilerScratch* dsqlScratch)
itemScratch->flags |= DsqlCompilerScratch::FLAG_DDL;
itemScratch->package = name;

if (itemScratch->clientDialect > SQL_DIALECT_V5)
itemStatement->setBlrVersion(5);
else
itemStatement->setBlrVersion(4);

ddlNode->dsqlPass(itemScratch);
}

Expand Down Expand Up @@ -696,6 +701,11 @@ DdlNode* CreatePackageBodyNode::dsqlPass(DsqlCompilerScratch* dsqlScratch)
itemScratch->flags |= DsqlCompilerScratch::FLAG_DDL;
itemScratch->package = name;

if (itemScratch->clientDialect > SQL_DIALECT_V5)
itemStatement->setBlrVersion(5);
else
itemStatement->setBlrVersion(4);

ddlNode->dsqlPass(itemScratch);
}
}
Expand Down

0 comments on commit 23f3cca

Please sign in to comment.