You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafodion.apache.org by "Alice Chen (JIRA)" <ji...@apache.org> on 2015/07/22 20:15:55 UTC

[jira] [Created] (TRAFODION-401) LP Bug: 1336444 - Errors/warnings can be accidently removed before compile instance switching

Alice Chen created TRAFODION-401:
------------------------------------

             Summary: LP Bug: 1336444 - Errors/warnings can be accidently removed before compile instance  switching
                 Key: TRAFODION-401
                 URL: https://issues.apache.org/jira/browse/TRAFODION-401
             Project: Apache Trafodion
          Issue Type: Bug
          Components: sql-cmp
            Reporter: Qifan Chen
            Assignee: justin.du@hp.com
            Priority: Critical


The diags() clear() call can remove errors/warnings accumulated before the switching.

For example, 

Compile Q1 so far, one error E is registered
Switch to Meta query M1, E will be cleared?
Switch back to continue on Q1 …


void CmpContext::switchContext()
{
  SqlParser_NADefaults_Glob =
      ActiveSchemaDB()->getDefaults().getSqlParser_NADefaults_Ptr();
  gpClusterInfo = clusterInfo_;
  SqlParser_Diags = diags();
  if (CmpCommon::diags())
     CmpCommon::diags()->clear();
  cmpMemMonitor = cmpMemMonitor_;
}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)