fix some comments
Project: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/commit/63ef4bdf Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/tree/63ef4bdf Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/diff/63ef4bdf Branch: refs/heads/master Commit: 63ef4bdfc880a5e295747b6cdd06b556807a642c Parents: 6abfa2a Author: Liu Ming <[email protected]> Authored: Thu Jan 28 09:49:03 2016 +0000 Committer: Liu Ming <[email protected]> Committed: Thu Jan 28 09:49:03 2016 +0000 ---------------------------------------------------------------------- core/sql/optimizer/SynthType.cpp | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/63ef4bdf/core/sql/optimizer/SynthType.cpp ---------------------------------------------------------------------- diff --git a/core/sql/optimizer/SynthType.cpp b/core/sql/optimizer/SynthType.cpp index 5736422..fc0f12d 100644 --- a/core/sql/optimizer/SynthType.cpp +++ b/core/sql/optimizer/SynthType.cpp @@ -5211,20 +5211,7 @@ const NAType *Translate::synthesizeType() if (translateSource->getCharSet() == CharInfo::GBK ) charsetTarget = CharInfo::UTF8; else - { - /* this is a solution to support GBK before Trafodion can support GBK in total - * see jira 1720 for more details - * the logic here is: - * when HIVE_FILE_CHARSET is not empty, it means the real charset in Hive table is not same as HIVE_DEFAULT_CHARSET - * in this case, allow the converting , ignoring the source charset checking above - if( CmpCommon::getDefaultString(HIVE_FILE_CHARSET) == "" ) - err4106arg = SQLCHARSETCODE_GBK; - else - charsetTarget = CharInfo::UTF8; - */ - err4106arg = SQLCHARSETSTRING_GBK; - - } + err4106arg = SQLCHARSETSTRING_GBK; break; case ISO88591_TO_UTF8:
