From commits-return-7557-archive-asf-public=cust-asf.ponee.io@trafodion.apache.org Thu May 31 00:45:55 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 71712180677 for ; Thu, 31 May 2018 00:45:55 +0200 (CEST) Received: (qmail 62855 invoked by uid 500); 30 May 2018 22:45:54 -0000 Mailing-List: contact commits-help@trafodion.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: commits@trafodion.apache.org Delivered-To: mailing list commits@trafodion.apache.org Received: (qmail 62835 invoked by uid 99); 30 May 2018 22:45:54 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 May 2018 22:45:54 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 3BAF9E10FD; Wed, 30 May 2018 22:45:54 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: dbirdsall@apache.org To: commits@trafodion.apache.org Date: Wed, 30 May 2018 22:45:55 -0000 Message-Id: In-Reply-To: <8e22d2a293ac49f88774fabbdb13123b@git.apache.org> References: <8e22d2a293ac49f88774fabbdb13123b@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [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 Authored: Tue May 29 23:10:25 2018 +0000 Committer: Dave Birdsall 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);