Skip to content

Commit

Permalink
Fixed CORE-6250 - Signature mismatch when creating package body on id…
Browse files Browse the repository at this point in the history
…entical packaged procedure header.
  • Loading branch information
asfernandes committed Feb 19, 2020
1 parent ed52c24 commit 7b21d3b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/common/classes/Nullable.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,11 @@ template <typename T> class BaseNullable
return nullable;
}

T orElse(T elseValue) const
{
return specified ? value : elseValue;
}

bool operator ==(const BaseNullable<T>& o) const
{
return (!specified && !o.specified) || (specified == o.specified && value == o.value);
Expand Down
3 changes: 2 additions & 1 deletion src/dsql/PackageNodes.epp
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,8 @@ namespace
(fb_utils::implicit_domain(fieldSource.c_str()) &&
fb_utils::implicit_domain(o.fieldSource.c_str()))) &&
fieldName == o.fieldName && relationName == o.relationName &&
collationId == o.collationId && nullFlag == o.nullFlag &&
collationId == o.collationId &&
nullFlag.orElse(FALSE) == o.nullFlag.orElse(FALSE) &&
mechanism == o.mechanism && fieldLength == o.fieldLength &&
fieldScale == o.fieldScale && fieldType == o.fieldType &&
fieldSubType == o.fieldSubType && fieldSegmentLength == o.fieldSegmentLength &&
Expand Down

0 comments on commit 7b21d3b

Please sign in to comment.