Fix based on review comment to look for prefix instead of "contains"
Project: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/commit/aed0efb4 Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/tree/aed0efb4 Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/diff/aed0efb4 Branch: refs/heads/master Commit: aed0efb4e0a6419246aa366be64349e1f3e05c57 Parents: 545318f Author: Sandhya Sundaresan <[email protected]> Authored: Wed Dec 13 15:57:41 2017 +0000 Committer: Sandhya Sundaresan <[email protected]> Committed: Wed Dec 13 15:57:41 2017 +0000 ---------------------------------------------------------------------- core/sql/optimizer/ObjectNames.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/aed0efb4/core/sql/optimizer/ObjectNames.cpp ---------------------------------------------------------------------- diff --git a/core/sql/optimizer/ObjectNames.cpp b/core/sql/optimizer/ObjectNames.cpp index ab51e66..fb4f9b1 100644 --- a/core/sql/optimizer/ObjectNames.cpp +++ b/core/sql/optimizer/ObjectNames.cpp @@ -710,9 +710,9 @@ NABoolean QualifiedName::isHbaseCellOrRow() const NABoolean QualifiedName::isLOBDesc() const { - NAString ansiNameString = getQualifiedNameAsString() ; - if (ansiNameString.contains(LOB_DESC_HANDLE_PREFIX)) + if (getObjectName().index(LOB_DESC_HANDLE_PREFIX) == 0) return TRUE; + else return FALSE;
