Rework addressing issue raised by Hans
Project: http://git-wip-us.apache.org/repos/asf/trafodion/repo Commit: http://git-wip-us.apache.org/repos/asf/trafodion/commit/7f979aaa Tree: http://git-wip-us.apache.org/repos/asf/trafodion/tree/7f979aaa Diff: http://git-wip-us.apache.org/repos/asf/trafodion/diff/7f979aaa Branch: refs/heads/master Commit: 7f979aaa8065e3719606d17aab0bec41b1a60cd6 Parents: 3662b90 Author: Dave Birdsall <[email protected]> Authored: Tue May 29 23:10:25 2018 +0000 Committer: Dave Birdsall <[email protected]> Committed: Tue May 29 23:10:25 2018 +0000 ---------------------------------------------------------------------- core/sql/optimizer/ValueDesc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/trafodion/blob/7f979aaa/core/sql/optimizer/ValueDesc.cpp ---------------------------------------------------------------------- diff --git a/core/sql/optimizer/ValueDesc.cpp b/core/sql/optimizer/ValueDesc.cpp index e32b3d5..0e12ffb 100644 --- a/core/sql/optimizer/ValueDesc.cpp +++ b/core/sql/optimizer/ValueDesc.cpp @@ -6398,7 +6398,7 @@ void ValueIdList::convertToTextKey(const ValueIdList& keyList, NAString& result) if (end > 0) { val = val(start+1, (end-start-1)); - if (minus > 0) + if ((minus > 0) && (minus < start)) // '-' before the string part { // prepend '-' to the output val.prepend('-', 1);
