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 2015/09/22 01:12:22 UTC
[07/14] incubator-trafodion git commit: JIRA1443: address
seabase/TEST028 failure.
JIRA1443: address seabase/TEST028 failure.
Project: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/commit/92428d71
Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/tree/92428d71
Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/diff/92428d71
Branch: refs/heads/master
Commit: 92428d71d0111a493cf244b18976502630ce022e
Parents: e0598c5
Author: Qifan Chen <qf...@dev02.trafodion.org>
Authored: Sun Sep 20 13:22:07 2015 +0000
Committer: Qifan Chen <qf...@dev02.trafodion.org>
Committed: Sun Sep 20 13:22:07 2015 +0000
----------------------------------------------------------------------
core/sql/ustat/hs_parser.cpp | 13 +++++++++----
1 file changed, 9 insertions(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/92428d71/core/sql/ustat/hs_parser.cpp
----------------------------------------------------------------------
diff --git a/core/sql/ustat/hs_parser.cpp b/core/sql/ustat/hs_parser.cpp
index 56988b3..fb547e5 100644
--- a/core/sql/ustat/hs_parser.cpp
+++ b/core/sql/ustat/hs_parser.cpp
@@ -165,6 +165,11 @@ Lng32 AddTableName( const hs_table_type type
// the default attribute values set by SET MPLOC/CQD.
ActiveSchemaDB()->getDefaults().getSqlParser_NADefaults();
+ NABoolean createExternalTable = TRUE;
+ if ( hs_globals->optFlags & SHOWSTATS_OPT ||
+ (hs_globals->optFlags & CLEAR_OPT) )
+ createExternalTable = FALSE;
+
if (type == GUARDIAN_TABLE)
{
if (*table == '$')
@@ -301,7 +306,7 @@ Lng32 AddTableName( const hs_table_type type
hs_globals->tableType,
hs_globals->nameSpace);
- if (NOT hs_globals->objDef->objExists(TRUE))
+ if (NOT hs_globals->objDef->objExists(createExternalTable))
{
// now look into the regular schema
delete hs_globals->objDef;
@@ -349,7 +354,7 @@ Lng32 AddTableName( const hs_table_type type
// try public schema if an object is not qualified and not found
if ((NOT schema) &&
- (NOT hs_globals->objDef->objExists(TRUE)))
+ (NOT hs_globals->objDef->objExists(createExternalTable)))
{
NAString pubSch = ActiveSchemaDB()->getDefaults().getValue(PUBLIC_SCHEMA_NAME);
ComSchemaName pubSchema(pubSch);
@@ -368,7 +373,7 @@ Lng32 AddTableName( const hs_table_type type
hs_globals->tableType,
hs_globals->nameSpace);
- if (pubObjDef->objExists(TRUE))
+ if (pubObjDef->objExists(createExternalTable))
{
hs_globals->objDef = pubObjDef;
}
@@ -376,7 +381,7 @@ Lng32 AddTableName( const hs_table_type type
}
}
- if (NOT hs_globals->objDef->objExists(TRUE))
+ if (NOT hs_globals->objDef->objExists(createExternalTable))
{
HSFuncMergeDiags(-UERR_OBJECT_INACCESSIBLE, extName);
retcode = -1;