Repository: incubator-trafodion Updated Branches: refs/heads/master 1efa9dbdd -> 1e8691465
[TRAFODION-2693]misleading error message for 'get schemas' when _MD_ tables in hbase is not avialble Project: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/commit/4b9c8c22 Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/tree/4b9c8c22 Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/diff/4b9c8c22 Branch: refs/heads/master Commit: 4b9c8c22615ee94f82c7cbd2a26e4bb1c8f4a2ff Parents: 19c7544 Author: Liu Ming <[email protected]> Authored: Sat Nov 18 22:34:53 2017 +0000 Committer: Liu Ming <[email protected]> Committed: Sat Nov 18 22:34:53 2017 +0000 ---------------------------------------------------------------------- core/sql/executor/ExExeUtilGet.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/4b9c8c22/core/sql/executor/ExExeUtilGet.cpp ---------------------------------------------------------------------- diff --git a/core/sql/executor/ExExeUtilGet.cpp b/core/sql/executor/ExExeUtilGet.cpp index 683209c..6d675cb 100644 --- a/core/sql/executor/ExExeUtilGet.cpp +++ b/core/sql/executor/ExExeUtilGet.cpp @@ -1757,9 +1757,8 @@ short ExExeUtilGetMetadataInfoTcb::work() char hiveGetType[10]; char hiveSysCat[10]; - cliInterface()->getCQDval("SEABASE_CATALOG", cat); - - // strcpy(cat, TRAFODION_SYSCAT_LIT); + if(cliInterface()->getCQDval("SEABASE_CATALOG", cat) < 0) + strcpy(cat, TRAFODION_SYSCAT_LIT); strcpy(sch, SEABASE_MD_SCHEMA); strcpy(pmsch, SEABASE_PRIVMGR_SCHEMA); strcpy(tab, SEABASE_OBJECTS);
