You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafodion.apache.org by db...@apache.org on 2018/05/30 22:45:55 UTC

[2/3] trafodion git commit: Rework addressing issue raised by Hans

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 <db...@apache.org>
Authored: Tue May 29 23:10:25 2018 +0000
Committer: Dave Birdsall <db...@apache.org>
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);