You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafodion.apache.org by an...@apache.org on 2017/09/19 22:25:19 UTC

[1/9] incubator-trafodion git commit: code cleanup, commit #1

Repository: incubator-trafodion
Updated Branches:
  refs/heads/master 8e2ba64dd -> dc0d2043d


http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/b952c0d5/core/sql/sqlci/sqlci_yacc.y
----------------------------------------------------------------------
diff --git a/core/sql/sqlci/sqlci_yacc.y b/core/sql/sqlci/sqlci_yacc.y
index c42b097..3f4a8cb 100644
--- a/core/sql/sqlci/sqlci_yacc.y
+++ b/core/sql/sqlci/sqlci_yacc.y
@@ -60,18 +60,13 @@
 #include "ComDistribution.h"
 #include "ComObjectName.h"
 #include "ComSchemaName.h"
-#pragma warning (disable : 4065)//don't complain about empty switch statements.
-
-//extern "C" { void yyerror(const char *sb); };
 
   extern char **environ;
-  #define ENVIRON environ
-  #define PUTENV putenv
+#define ENVIRON environ
+#define PUTENV putenv
 
 extern NAHeap sqlci_Heap;
 
-#	include <alloca.h>
-
   extern "C" {int yylex (void); }
 
 extern ComDiagsArea sqlci_DA;
@@ -102,9 +97,7 @@ static void sqlcierror(const char *)		// (const char *errtext)
         if (*SqlciParse_InputStr == '#')
 	  SqlciParse_InputPos = 0;
       SqlciError (SQLCI_SYNTAX_ERROR, (ErrorParam *) 0);
-#pragma nowarn(1506)  // warning elimination
       StoreSyntaxError(SqlciParse_InputStr, SqlciParse_InputPos, sqlci_DA, 0);
-#pragma warn(1506)  // warning elimination
     }
 } // sqlcierror
 
@@ -140,9 +133,7 @@ static short trimValueText(int/*offset*/ &i,
 
   if (!use_i_as_is)
     {
-#pragma nowarn(1506)  // warning elimination
       i = SqlciParse_InputPos - 1;
-#pragma warn(1506)  // warning elimination
 
       // Now the i'th character is a separator char that Lex found,
       // separating the Define name from its value.
@@ -230,9 +221,7 @@ static short trimValueText(int/*offset*/ &i,
   SqlciParse_InputPos = i;			// for sqlcierror message
   if (quoted && !quoting_allowed) return -1;	// error
 
-#pragma nowarn(1506)  // warning elimination
   int j = strlen(SqlciParse_OriginalStr) - 1;
-#pragma warn(1506)  // warning elimination
 
   // skip any blanks between end of SqlciParse_OriginalStr and the semicolon.
   while (isspace(SqlciParse_OriginalStr[j])) j--;
@@ -415,15 +404,11 @@ static char * FCString (const char *idString, int isFC)
 %token FILENAMES
 %token FILES
 %token GENERATEtoken
-%token MAINTAINtoken
 %token MERGEtoken
 %token METADATAtoken
-%token REORGtoken
 %token REPLICATEtoken
 %token GETtoken
 %token GETSTATISTICStoken
-%token GOAWAY
-%token HELP
 %token HISTORY
 %token HYPHEN
 %token INFER_CHARSET
@@ -433,12 +418,6 @@ static char * FCString (const char *idString, int isFC)
 %token SHOWSTATS
 %token SHOWTRANSACTION
 %token INVOKE
-%token LABEL_CREATE
-%token LABEL_DROP
-%token LABEL_ALTER
-%token LABEL_PURGEDATA
-// LISTX is a rename of LIST to avoid redefine warning (with collections.h)
-%token LISTX
 %token LISTCOUNT
 %token LISTMODULES
 %token LOADtoken
@@ -451,13 +430,8 @@ static char * FCString (const char *idString, int isFC)
 %token MODE
 %token MODIFY
 %token MODIFYV
-%token MODULE
-%token MODULES
-%token MODULE_DIR
-%token MXCS
 %token NEXT
 %token NOEtoken
-%token NODE_NAME
 %token NODE_VOL_NAME
 %token NSK_NAME
 %token OBEY
@@ -474,12 +448,10 @@ static char * FCString (const char *idString, int isFC)
 %token PATTERN_AS_IS
 %token PID_VALUE
 %token PROCEDUREtoken
-%token PURGE
 %token PURGEDATA
 %token POPULATE
 %token VALIDATEtoken
 %token QUIESCE
-%token RECOVER
 %token REFRESH
 %token REPEAT
 %token REPORT
@@ -532,7 +504,7 @@ static char * FCString (const char *idString, int isFC)
 %token PERTABLEtoken PROGRESStoken 
 %token TOK_BEGIN COMMIT ROLLBACK WORK
 %token SQLCI_CMD SQL_STMT UTIL_STMT EXIT_STMT ERROR_STMT SHELL_CMD
-%token IDENTIFIER NUMBER DEFINE_NAME PARAM_NAME PATTERN_NAME FILENAME
+%token IDENTIFIER NUMBER PARAM_NAME PATTERN_NAME FILENAME
 %token QUOTED_STRING
 %token DQUOTED_STRING
 %token GRANTtoken REVOKEtoken
@@ -547,26 +519,19 @@ static char * FCString (const char *idString, int isFC)
 %token NAMETYPE
 %token SIGNAL
 %token UIDtoken
-// QSTUFF
 %token CURSORWITH
 %token WITHOUT
 %token HOLD
-// QSTUFF
-%token INTERNAL   // MV OZ_REFRESH
+%token INTERNAL  
 %token MVLOG
 %token UNLOAD   
 
 %token CALLToken
 
-// For upgrade/downgrade
-%token UPGRADEtoken DOWNGRADEtoken
-
-
 %union {
 	 enum ComRoutineSQLAccess sql_access_mode_type;
 	 SqlCliCmd * sqlcli_cmd_type;
          SqlciCmd * sqlci_cmd_type;
-	 SqlciRWCmd * report_cmd_type;
          SqlciNode * sql_cmd_type;
 	 ShellCmd * shell_cmd_type;
          int intval_type;
@@ -580,14 +545,11 @@ static char * FCString (const char *idString, int isFC)
 %type <sql_access_mode_type> sql_access_mode;
 %type <sqlcli_cmd_type> sqlcli_cmd
 %type <sqlci_cmd_type> sqlci_cmd
-%type <report_cmd_type> report_cmd
 %type <sql_cmd_type> sql_cmd
 %type <shell_cmd_type> shell_cmd
 %type <stringval_type> IDENTIFIER
-%type <stringval_type> NODE_NAME
 %type <stringval_type> NODE_VOL_NAME
 %type <stringval_type> NSK_NAME
-%type <stringval_type> DEFINE_NAME
 %type <stringval_type> PARAM_NAME
 %type <stringval_type> PATTERN_NAME
 %type <stringval_type> PID_VALUE
@@ -601,16 +563,11 @@ static char * FCString (const char *idString, int isFC)
 %type <reset_stmt_type_> reset_type_;
 %type <show_stmt_type_> show_type_;
 %type <stringval_type> section_name_;
-%type <stringval_type> help_topic_;
 %type <stringval_type> HYPHEN;
 %type <intval_type>    commands_only;
 %type <intval_type>    stats_active_clause;
 %type <intval_type>    stats_merge_clause;
 %type <stringval_type> explain_options;
-%type <intval_type>    noe_option;
-%type <stringval_type> module_dir_info;
-%type <stringval_type> module_info;
-%type <stringval_type> object_info;
 %type <cursor_info_type_> cursor_info;
 %type <intval_type> optional_rs_index;
 %type <stringval_type> qid_identifier;
@@ -657,25 +614,6 @@ statement :	sqlcli_cmd
 		   	SqlciParseTree = (SqlciNode *) $1;
 			YYACCEPT;
 		}
-
-	|	report_cmd
-		{
-			// Accept if we're at/past the end of the cmd
-			// or if only blanks and semicolons remain;
-			// otherwise, syntax error.
-			//
-			unsigned pos = SqlciParse_InputPos-1;
-			if (pos < strlen(SqlciParse_InputStr))
-			  {
-			    const char *s = &SqlciParse_InputStr[pos];
-			    for ( ; *s; s++)
-			      if (!isspace(*s) && *s != ';')
-				{sqlcierror("");YYERROR;}
-			  }
-
-			SqlciParseTree = (SqlciNode *) $1;
-			YYACCEPT;
-		}
 ;
 
 sqlcli_cmd :	CHECKVIOLATION
@@ -693,8 +631,8 @@ sqlcli_cmd :	CHECKVIOLATION
 	    |	CREATECONTEXT NoAutoXact
 		{
 		  $$ = new CreateContext(TRUE/* noAutoXact */);
-		}
-        |   CURRENTCONTEXT
+ 		}
+            |   CURRENTCONTEXT
                 {
 		  $$ = new CurrentContext();
 		}
@@ -731,60 +669,13 @@ sql_access_mode :   NOSQL
 		    }
 ;
 
-report_cmd : CANCEL
-		  {
-			$$ = new SqlciRWCancelCmd();
-		  }
-		|	LISTX FIRST
-		  {
-			if ((sqlcitext) && (sqlcitext[0] != ';'))
-		      {sqlcierror("");YYERROR;}
-
-			$$ = new SqlciRWListCmd(SqlciRWListCmd::FIRST_, -1, FALSE);
-		  }
-		|	LISTX FIRST NUMBER
-		  {
-			$$ = new SqlciRWListCmd(SqlciRWListCmd::FIRST_, atoi($3), TRUE);
-		  }
-		|	LISTX NEXT
-		  {
-			if ((sqlcitext) && (sqlcitext[0] != ';'))
-		      {sqlcierror("");YYERROR;}
-
-			$$ = new SqlciRWListCmd(SqlciRWListCmd::NEXT_, -1, FALSE);
-		  }
-		|	LISTX NEXT NUMBER 
-		  {
-			$$ = new SqlciRWListCmd(SqlciRWListCmd::NEXT_, atoi($3), TRUE);
-		  }
-		|  LISTX ALLtoken   
-		  {
-			$$ = new SqlciRWListCmd(SqlciRWListCmd::ALL_, -1, FALSE);
-		  }
-
-;			
-
-sqlci_cmd :	MODE REPORT 
-		  {
-			$$ = new Mode (Mode::REPORT_ , TRUE);
-		  }
-		|	 MODE SQL
+sqlci_cmd :	MODE SQL
 		  {
 			$$ = new Mode (Mode::SQL_ , TRUE);
 		  }	
-		|	MODE DISPLAY
-		  {
-			$$ = new Mode (Mode::DISPLAY_ , TRUE);
-		  }
-        	|   MODE MXCS
-          	  {
-            		$$ = new Mode (Mode::MXCS_ , TRUE);
-          	  }
 		|   OBEY FILENAME section_name_
                   { 
-#pragma nowarn(1506)  // warning elimination
 			$$ = new Obey($2, strlen($2), $3);
-#pragma warn(1506)  // warning elimination
 		  }
 		|	MXCI_TOK_ENV
 		  { 
@@ -847,15 +738,11 @@ sqlci_cmd :	MODE REPORT
 		 }
 		 CLEAR
          { 
-#pragma nowarn(1506)  // warning elimination
 			$$ = new Log(identifier_name_internal, strlen(identifier_name_internal), Log::CLEAR_, $3);
-#pragma warn(1506)  // warning elimination
 		 }
 	    |	LOG IDENTIFIER commands_only 
 		 { 
-#pragma nowarn(1506)  // warning elimination
 			$$ = new Log($2, strlen($2), Log::APPEND_, $3);
-#pragma warn(1506)  // warning elimination
 		 }
     
 		|	LOG FILENAME commands_only
@@ -865,17 +752,13 @@ sqlci_cmd :	MODE REPORT
 		 }
 		 CLEAR
            {
-#pragma nowarn(1506)  // warning elimination 
 	   $$ = new Log(identifier_name_internal, strlen(identifier_name_internal), Log::CLEAR_, $3);
-#pragma warn(1506)  // warning elimination
 		 }
 
 		|	LOG FILENAME commands_only
 
 		 { 
-#pragma nowarn(1506)  // warning elimination
 			$$ = new Log($2, strlen($2), Log::APPEND_, $3);
-#pragma warn(1506)  // warning elimination
 		 }
 
 		|	LOG
@@ -890,9 +773,7 @@ sqlci_cmd :	MODE REPORT
 
 		|	HISTORY NUMBER
 		  { 
-#pragma nowarn(1506)  // warning elimination
 			$$ = new History($2,strlen($2));
-#pragma warn(1506)  // warning elimination
 		  }
 
 		|	EXIT
@@ -901,7 +782,6 @@ sqlci_cmd :	MODE REPORT
 		  }
         |       ERRORtoken NUMBER
                   { 
-#pragma nowarn(1506)  // warning elimination
 		  $$ = new Error($2, strlen($2), Error::DETAIL_);
 		  }
         |       ERRORtoken NUMBER COMMA BRIEF
@@ -909,21 +789,6 @@ sqlci_cmd :	MODE REPORT
 		  }
         |       ERRORtoken NUMBER COMMA DETAIL
                   { $$ = new Error($2, strlen($2), Error::DETAIL_);
-#pragma warn(1506)  // warning elimination
-		  }
-
-        |       HELP
-		  { $$ = new Help((char *)"ALL", 3, Help::SYNTAX_);
-		    SqlciParse_SyntaxErrorCleanup = 0;
-		    SqlciParse_IdentifierExpected = 0;
-		  }
-        |       HELP help_topic_
-		  { 
-#pragma nowarn(1506)  // warning elimination
-		  $$ = new Help($2, strlen($2), Help::SYNTAX_);
-#pragma warn(1506)  // warning elimination
-		    SqlciParse_SyntaxErrorCleanup = 0;
-		    SqlciParse_IdentifierExpected = 0;
 		  }
 
 	|	SETtoken PARAM PARAM_NAME
@@ -943,7 +808,6 @@ sqlci_cmd :	MODE REPORT
 		    if (len == 4 && !quoted)
 		      {
 			char buf[4];
-#pragma nowarn(1506)  // warning elimination
 			for (int k = 0; k < 4; k++)
 			  buf[k] = toupper(SqlciParse_OriginalStr[i+k]);
 
@@ -982,9 +846,7 @@ sqlci_cmd :	MODE REPORT
                                pSetParam->setTermCharSet(SqlciEnvGlobal->getTerminalCharset());
                              }
 // NADELETE() is not a const func while this routine is. Mask out the warning
-#pragma nowarn(317) // warning elimination
                              NADELETE(conv_pvalue, NAString, &sqlci_Heap);
-#pragma warn(317)  // warning elimination
                            } 
                            break;
 
@@ -994,9 +856,7 @@ sqlci_cmd :	MODE REPORT
 		             $$ = new SetParam($3, strlen($3), 
                                                (NAWchar*)(conv_pvalue->data()), conv_pvalue->length(), cs);
 // NADELETE() is not a const func while this routine is. Mask out the warning
-#pragma nowarn(317)  // warning elimination
                              NADELETE(conv_pvalue, NAWString, &sqlci_Heap);
-#pragma warn(317)  // warning elimination
                            } 
                            break;
 
@@ -1087,7 +947,6 @@ sqlci_cmd :	MODE REPORT
 		    if (trimValueText(i, len, quoted, cs, inhexadecimal)) {sqlcierror("");YYERROR;}
 		    $$ = new SetPattern($3, strlen($3),
 					&SqlciParse_OriginalStr[i], len);
-#pragma warn(1506)  // warning elimination
 		  }
 
 	|	SETtoken PATTERN_AS_IS PATTERN_NAME
@@ -1106,7 +965,6 @@ sqlci_cmd :	MODE REPORT
 		    {sqlcierror("");YYERROR;}
 		    $$ = new SetPattern($3, strlen($3),
 					&SqlciParse_OriginalStr[i], len);
-#pragma warn(1506)  // warning elimination
 		  }
 
         |       SETtoken SHOWSHAPE ON
@@ -1182,9 +1040,7 @@ sqlci_cmd :	MODE REPORT
 
         |       SETtoken LISTCOUNT NUMBER
                   {
-#pragma nowarn(1506)  // warning elimination
                     $$ = new ListCount($3, strlen($3));
-#pragma warn(1506)  // warning elimination
                   }
 
         |       SETtoken LISTCOUNT
@@ -1274,11 +1130,6 @@ sqlci_cmd :	MODE REPORT
 		  {
 		    $$ = new Reset(Reset::PATTERN_, $3, strlen($3));
 		  }
-	|	RESET DEFINEtoken DEFINE_NAME
-		  {
-		    $$ = new Reset(Reset::DEFINE_, $3, strlen($3));
-#pragma warn(1506)  // warning elimination
-		  }
 	|	RESET reset_type_
 		  {
 		    if ((sqlcitext) && (sqlcitext[0] != ';'))
@@ -1294,9 +1145,7 @@ sqlci_cmd :	MODE REPORT
     |       DISPLAY_QUERYID FORtoken IDENTIFIER
                   {
                     identifier_name_internal = new char[strlen($3)+1]; 
-#pragma nowarn(1506)  // warning elimination
                     str_cpy_convert(identifier_name_internal, $3, strlen($3), TRUE); 
-#pragma warn(1506)  // warning elimination
                     identifier_name_internal[strlen($3)] = 0;
                     $$ = new QueryId (identifier_name_internal,strlen(identifier_name_internal),
                                       FALSE, NULL);
@@ -1320,76 +1169,6 @@ sqlci_cmd :	MODE REPORT
 		    $$ = new Show(Show::PREPARED_, TRUE);
 		  }
 
-         |       ADDtoken DEFINEtoken DEFINE_NAME COMMA CLASStoken MAPtoken COMMA 
-                  {
-		    identifier_name_internal = new char[strlen($3)+1];
-		    strcpy(identifier_name_internal, $3);
-		  }
-                FILEtoken FILENAME
-                  {
-#pragma nowarn(1506)  // warning elimination
-		    $$ = new SetDefine(identifier_name_internal,
-				       strlen(identifier_name_internal),
-				       $10, strlen($10), FALSE);
-#pragma warn(1506)  // warning elimination
-		  }
-        |       ADDtoken DEFINEtoken DEFINE_NAME COMMA
-                  {
-		    identifier_name_internal = new char[strlen($3)+1];
-		    strcpy(identifier_name_internal, $3);
-		  }
-                FILEtoken FILENAME
-                  {
-#pragma nowarn(1506)  // warning elimination
-		    $$ = new SetDefine(identifier_name_internal,
-				       strlen(identifier_name_internal), 
-				       $7, strlen($7), FALSE);
-#pragma warn(1506)  // warning elimination
-		  }
-        |       ALTER DEFINEtoken DEFINE_NAME COMMA CLASStoken MAPtoken COMMA 
-                  {
-		    identifier_name_internal = new char[strlen($3)+1];
-		    strcpy(identifier_name_internal, $3);
-		  }
-                FILEtoken FILENAME
-                  {
-#pragma nowarn(1506)  // warning elimination
-		    $$ = new SetDefine(identifier_name_internal,
-				       strlen(identifier_name_internal),
-				       $10, strlen($10), TRUE);
-#pragma warn(1506)  // warning elimination
-		  }
-        |       ALTER DEFINEtoken DEFINE_NAME COMMA
-                  {
-		    identifier_name_internal = new char[strlen($3)+1];
-		    strcpy(identifier_name_internal, $3);
-		  }
-                FILEtoken FILENAME
-                  {
-#pragma nowarn(1506)  // warning elimination
-		    $$ = new SetDefine(identifier_name_internal,
-				       strlen(identifier_name_internal), 
-				       $7, strlen($7), TRUE);
-		  }
-        |       DELETEtoken DEFINEtoken DEFINE_NAME
-                  {
-		    $$ = new Reset(Reset::DEFINE_, $3, strlen($3));
-#pragma warn(1506)  // warning elimination
-		  }
-
-	|	INFOtoken DEFINEtoken
-		  {
-		    if ((sqlcitext) && (sqlcitext[0] != ';'))
-		      {sqlcierror("");YYERROR;}
-
-		    $$ = new Show(Show::DEFINE_, FALSE);
-		  }
-
-	|	INFOtoken DEFINEtoken ALLtoken
-		  {
-		    $$ = new Show(Show::DEFINE_, TRUE);
-		  }
-
         |       WAITtoken
                   {
                     $$ = new Wait(NULL, 0);
@@ -1402,12 +1181,6 @@ commands_only :
              | empty { $$ = 0; }
 ;
 
-help_topic_ :
-                IDENTIFIER
-                  {
-                    $$ = $1;
-		  }
-
 empty :
 ;
 
@@ -1418,7 +1191,6 @@ section_name_:
 
 reset_type_ :
                 PARAM   	{$$ = Reset::PARAM_;}
-	|	DEFINEtoken   	{$$ = Reset::DEFINE_;}
 ;
 
 show_type_ :
@@ -1465,26 +1237,8 @@ qid_identifier :
 sql_cmd :
 		dml_type
 			{
-				/* If we see a SELECT token then we have to parse it
-				   differently if we are in the Report Writer mode
-				   thus we do the checking here. We call a different
-				   type of command and not the DML command itself.
-				   THe DML command is called in non RW mode.*/
-				
-				if ((SqlciEnvGlobal->isReportWriterMode()) 
-				     && (!SqlciEnvGlobal->sqlciRWEnv()->isSelectInProgress())
-					 && ($1 == DML_SELECT_TYPE))
-				{
-					$$ = new SqlciRWSelectCmd(SqlciParse_OriginalStr);
-					REPOSITION_SqlciParse_InputPos;
-				}
-				else 
-				/* if not RW mode then call the original DML*/	
-				{
-					$$ = new DML(SqlciParse_OriginalStr, $1, NULL);
-					REPOSITION_SqlciParse_InputPos;
-				}
-					
+                          $$ = new DML(SqlciParse_OriginalStr, $1, NULL);
+                          REPOSITION_SqlciParse_InputPos;
 			}
         |       SHOWLEAKS
                         { // not ready to log.
@@ -1498,7 +1252,6 @@ sql_cmd :
         |       DECLAREtoken IDENTIFIER 
 			{
 			  identifier_name_internal = new char[strlen($2)+1];
-#pragma nowarn(1506)  // warning elimination
 			  str_cpy_convert(identifier_name_internal, $2,
 					  strlen($2), TRUE);
 			  identifier_name_internal[strlen($2)] = 0;
@@ -1506,7 +1259,6 @@ sql_cmd :
                 CURSORWITH HOLD FORtoken
 			{
 			  pos_internal = SqlciParse_InputPos;
-#pragma warn(1506)  // warning elimination
 			}
 		       dml_simple_table_type
 			{
@@ -1555,7 +1307,6 @@ sql_cmd :
         |       OPENtoken IDENTIFIER
 			{
 			  identifier_name_internal = new char[strlen($2)+1];
-#pragma nowarn(1506)  // warning elimination
 			  str_cpy_convert(identifier_name_internal, $2,
 					  strlen($2), TRUE);
 			  identifier_name_internal[strlen($2)] = 0;
@@ -1607,7 +1358,6 @@ sql_cmd :
 			FROM
 			{
 			  pos_internal = SqlciParse_InputPos;
-#pragma warn(1506)  // warning elimination
 			}
 			dml_type
 			{
@@ -1619,7 +1369,6 @@ sql_cmd :
 		|	DESCRIBEToken IDENTIFIER
 			{
 			  identifier_name_internal = new char[strlen($2)+1];
-#pragma nowarn(1506)  // warning elimination
 			  str_cpy_convert(identifier_name_internal, $2,
 					  strlen($2), TRUE);
 			  identifier_name_internal[strlen($2)] = 0;
@@ -1642,23 +1391,8 @@ sql_cmd :
 					  strlen($2), TRUE);
 			  identifier_name_internal[strlen($2)] = 0;
 
-			  /*/////////////////////////////////////////
-			     If ReportWriter Mode is on and a Select is 
-				 not in progress, then call new command to 
-				 process the execute command.
-				 ///////////////////////////////////////
-			*/
-			  if ( (SqlciEnvGlobal->isReportWriterMode()) && 
-			          !SqlciEnvGlobal->sqlciRWEnv()->isSelectInProgress() 
-			     )
-			  {
-					$$ = new SqlciRWExecuteCmd(identifier_name_internal,NULL);
-			  }
-			  else
-			  {
-					$$ = new Execute(identifier_name_internal, 
-					                 identifier_name_internal, 0/*flag*/, SqlciEnvGlobal);
-			  }
+                          $$ = new Execute(identifier_name_internal, 
+                                           identifier_name_internal, 0/*flag*/, SqlciEnvGlobal);
 			}
 
 		|	EXECUTEtoken IDENTIFIER
@@ -1674,24 +1408,8 @@ sql_cmd :
               pos_internal = SqlciParse_InputPos;
 			  if (SqlciParse_OriginalStr[pos_internal-1] == ',')
 			    pos_internal--;
-			  /*/////////////////////////////////////////
-			     If ReportWriter Mode is on and a Select is 
-				 not in progress, then call new command to 
-				 process the execute command.
-				 ///////////////////////////////////////
-			*/
-			  if ( (SqlciEnvGlobal->isReportWriterMode()) && 
-			       (!SqlciEnvGlobal->sqlciRWEnv()->isSelectInProgress()) 
-			     )
-			  {
-					$$ = new SqlciRWExecuteCmd(identifier_name_internal,
-					       &SqlciParse_OriginalStr[pos_internal]);
-			  }
-			  else
-			  {
-					$$ = new Execute(identifier_name_internal, 
-			  	     &SqlciParse_OriginalStr[pos_internal], 1/*flag*/, SqlciEnvGlobal);
-			  }
+                          $$ = new Execute(identifier_name_internal, 
+                                           &SqlciParse_OriginalStr[pos_internal], 1/*flag*/, SqlciEnvGlobal);
 
             }
 
@@ -1789,7 +1507,6 @@ sql_cmd :
                   {
 		    identifier_name_internal = new char[strlen($2)+1];
 		    
-#pragma nowarn(1506)  // warning elimination
 		    str_cpy_convert(identifier_name_internal, $2,
 				    strlen($2), TRUE);
 		    identifier_name_internal[strlen($2)] = 0;
@@ -1928,39 +1645,6 @@ sql_cmd :
 					delete [] get_stats_str;
 					delete [] newStr1;
 				  }
-        |       DISPLAY_USE_OF noe_option module_dir_info module_info object_info 
-                        {
-			  if ((($3) && (strlen($3) == 0)) ||
-			      (($4) && (strlen($4) == 0)) ||
-			      (($5) && (strlen($5) == 0)))
-			    {
-			      {sqlcierror("");YYERROR;}
-			    }
-			  
-			  if (! $5)
-			    {
-			      if (sqlcitext[0] && sqlcitext[0] != ';')
-				{
-				  {sqlcierror("");YYERROR;}
-				}
-			    }
-			  else
-			    {
-			      unsigned int i = SqlciParse_InputPos - 1;
-			      while ((i < strlen(SqlciParse_OriginalStr)) &&
-				     (SqlciParse_OriginalStr[i] == ' '))
-				i++;
-			      if ((i == strlen(SqlciParse_OriginalStr)) ||
-				  (SqlciParse_OriginalStr[i] != ';'))
-				{
-				  {sqlcierror("");YYERROR;}
-				}
-			    }
-
-			  $$ = new Usage ($3, $4, $5,
-					  (($2 == 1) ? TRUE : FALSE));
-			}
-
 	| DISPLAY_QC
 	  {
 	    $$ = new QueryCacheSt(0);
@@ -1983,12 +1667,6 @@ sql_cmd :
 				       "__SQLCI_DML_DISPLAY__");
 			  REPOSITION_SqlciParse_InputPos;
 			}
-        |       GOAWAY
-                        {
-                          $$ = new GoAway(&SqlciParse_OriginalStr[7]);
-                                 REPOSITION_SqlciParse_InputPos;
-                        }
-
        |        GETtoken 
                         {
 			  $$ = new DML(SqlciParse_OriginalStr, DML_DISPLAY_NO_HEADING_TYPE, NULL);
@@ -2249,7 +1927,7 @@ dml_type :
 	|	IF			{$$ = DML_CONTROL_TYPE;}
 	|	WHILE			{$$ = DML_CONTROL_TYPE;}
 	|	SIGNAL			{$$ = DML_CONTROL_TYPE;}
-	|	INTERNAL		{$$ = DML_CONTROL_TYPE;} // MV OZ_REFRESH
+	|	INTERNAL		{$$ = DML_CONTROL_TYPE;}
 	|	MVLOG			{$$ = DML_CONTROL_TYPE;} 
 	|	DUP			{$$ = DML_DDL_TYPE;}
 	|	PURGEDATA		{$$ = DML_DDL_TYPE;}
@@ -2257,24 +1935,15 @@ dml_type :
 	|	WITH                    {$$ = DML_DDL_TYPE;}
 	|	POPULATE		{$$ = DML_DDL_TYPE;}
         |       VALIDATEtoken           {$$ = DML_DDL_TYPE;}
-	|	RECOVER 		{$$ = DML_DDL_TYPE;}
 	|	REFRESH		        {$$ = DML_DDL_TYPE;}
 	|	TRANSFORM		{$$ = DML_DDL_TYPE;}
 	|	CALLToken		{$$ = DML_DDL_TYPE;}
 	|	LOADtoken		{$$ = DML_DDL_TYPE;}
 	|	EXTRACTtoken		{$$ = DML_DESCRIBE_TYPE;}
-	|	REORGtoken		{$$ = DML_DESCRIBE_TYPE;}
 	|	REPLICATEtoken		{$$ = DML_DESCRIBE_TYPE;}
-	|	MAINTAINtoken		{$$ = DML_DESCRIBE_TYPE;}
 	|	GENERATEtoken		{$$ = DML_DESCRIBE_TYPE;}
         |	EXPLAIN		        {$$ = DML_DESCRIBE_TYPE;}
-	|	LABEL_CREATE	        {$$ = DML_DDL_TYPE;}
-	|	LABEL_DROP		{$$ = DML_DDL_TYPE;}
-        |       LABEL_PURGEDATA         {$$ = DML_DDL_TYPE;}
-        |       UPGRADEtoken            {$$ = DML_DDL_TYPE;}
-        |       DOWNGRADEtoken          {$$ = DML_DDL_TYPE;}
         |       GETtoken                {$$ = DML_DESCRIBE_TYPE;}
- 	|       LABEL_ALTER             {$$ = DML_DDL_TYPE;}
  	|       PROCESStoken            {$$ = DML_DDL_TYPE;}
 ;
 
@@ -2307,63 +1976,6 @@ explain_options : empty
             } 
 ;
 
-noe_option : empty
-             { 
-	       $$ = 0; 
-	     } 
-        | NOEtoken
-            { 
-	       $$ = 1;
-            } 
-;
-
-module_dir_info : empty
-                   {
-                     $$ = NULL;
-                   }
-                  | MODULE_DIR QUOTED_STRING
-                   {
-		     identifier_name_internal = new char[strlen($2)+1];
-		     strcpy(identifier_name_internal, $2);
-
-		     NAString md(identifier_name_internal);
-		     if (((md.data()[0] != '/') &&
-		          (md.data()[0] != '*')) ||
-			  (md.contains(' ')) ||
-			  (md.contains('$')) ||
-			  (md.contains('\\')))
-		       {sqlcierror("");YYERROR;}
-		       
-	             $$ = identifier_name_internal;
-                   }
-;
-
-module_info : empty
-                   {
-                     $$ = NULL;
-                   }
-               | MODULE QUOTED_STRING
-                   {
-		     identifier_name_internal = new char[strlen($2)+1];
-		     strcpy(identifier_name_internal, $2);
-
-	             $$ = identifier_name_internal;
-                   }
-;
-
-object_info : empty
-                   {
-                     $$ = NULL;
-                   }
-              | OBJECTtoken QUOTED_STRING
-                   {
-		     identifier_name_internal = new char[strlen($2)+1];
-		     strcpy(identifier_name_internal, $2);
-
-	             $$ = identifier_name_internal; 
-                   }
-;
-
 shell_cmd :
 		CD
 			{

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/b952c0d5/core/sql/sqlci/sqlclicmd.h
----------------------------------------------------------------------
diff --git a/core/sql/sqlci/sqlclicmd.h b/core/sql/sqlci/sqlclicmd.h
index 0e055a7..0acbbde 100644
--- a/core/sql/sqlci/sqlclicmd.h
+++ b/core/sql/sqlci/sqlclicmd.h
@@ -47,10 +47,6 @@ public:
   SqlCliCmd();
   virtual ~SqlCliCmd();
   virtual short process(SqlciEnv * sqlci_env) = 0;
-  NABoolean isAllowedInSIP() { return FALSE; };
-  NABoolean isAllowedInRWMode() { return TRUE; };
-  NABoolean isAllowedInCSMode() { return FALSE; };
-
 };
 
 class CheckViolation : public SqlCliCmd {

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/b952c0d5/core/sql/sqlci/sqlcmd.h
----------------------------------------------------------------------
diff --git a/core/sql/sqlci/sqlcmd.h b/core/sql/sqlci/sqlcmd.h
index bbaba4a..5e48c84 100644
--- a/core/sql/sqlci/sqlcmd.h
+++ b/core/sql/sqlci/sqlcmd.h
@@ -159,10 +159,6 @@ public:
                                  SQLDESC_ID *output_desc,
                                  SQLDESC_ID *input_desc,
                                  NABoolean resetLastExecStmt);
-
-  NABoolean isAllowedInSIP() { return FALSE; };
-  NABoolean isAllowedInRWMode() { return TRUE; };
-  NABoolean isAllowedInCSMode() { return FALSE;};  
 };
 
 class DML : public SqlCmd {
@@ -270,14 +266,6 @@ private:
   Lng32 resultSetIndex_;
 };
 
-class GoAway : public SqlCmd {
-  char * tableName_;
-public:
-  GoAway(const char *tableName);
-  ~GoAway();
-  short process(SqlciEnv * sqlci_env);
-};
-
 // This class is used by the query cache virtual interface to execute
 // the commands "display_qc" and "display_qc_entries" which will show
 // some important fields of the SQL/MX query cache.
@@ -302,18 +290,6 @@ public:
   short process(SqlciEnv * sqlciEnv);
 };
 
-class Usage : public SqlCmd {
-  char * moduleDir_;
-  char * module_;
-  char * table_;
-  NABoolean noe_;
-public:
-  Usage(char * module_dir, char * module, char * table,
-	NABoolean noe);
-  ~Usage();
-  short process(SqlciEnv * sqlci_env);
-};
-
 class Quiesce : public SqlCmd
 {
 public:

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/b952c0d5/core/sql/sqlcomp/CmpMain.cpp
----------------------------------------------------------------------
diff --git a/core/sql/sqlcomp/CmpMain.cpp b/core/sql/sqlcomp/CmpMain.cpp
index d19e51a..8be62a1 100644
--- a/core/sql/sqlcomp/CmpMain.cpp
+++ b/core/sql/sqlcomp/CmpMain.cpp
@@ -63,7 +63,7 @@
 #include "AllRelExpr.h"
 #include "BindWA.h"
 #include "CacheWA.h"
-#include "catapirequest.h"
+
 #include "ComDiags.h"
 #include "CmpCommon.h"
 #include "CmpErrors.h"

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/b952c0d5/core/sql/sqlcomp/parser.cpp
----------------------------------------------------------------------
diff --git a/core/sql/sqlcomp/parser.cpp b/core/sql/sqlcomp/parser.cpp
index f828495..72c51f5 100644
--- a/core/sql/sqlcomp/parser.cpp
+++ b/core/sql/sqlcomp/parser.cpp
@@ -53,7 +53,6 @@
 #include "csconvert.h"
 #include "ulexer.h"
 
-#include "catapirequest.h"
 #include "CmpContext.h"
 #include "CmpStatement.h"
 #include "CmpErrLog.h"
@@ -1497,6 +1496,7 @@ NABoolean Parser::processSpecialDDL(const char* inputStr, size_t inputStrLen, Ch
 	}
     }
 
+#ifdef __ignore
   // Check for "CREATE TANDEM_CAT_REQUEST&" 
   if (ns.index(CATAPI) == 0)
     {                 
@@ -1523,6 +1523,7 @@ NABoolean Parser::processSpecialDDL(const char* inputStr, size_t inputStrLen, Ch
 
       specialDDL = TRUE;      
     }
+#endif
 
   // If a special DDL is found, go ahead and create a DDLExpr node
   if (specialDDL)

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/b952c0d5/core/sql/sqlmsg/GetErrorMessage.cpp
----------------------------------------------------------------------
diff --git a/core/sql/sqlmsg/GetErrorMessage.cpp b/core/sql/sqlmsg/GetErrorMessage.cpp
index 204b3e0..e5ec226 100644
--- a/core/sql/sqlmsg/GetErrorMessage.cpp
+++ b/core/sql/sqlmsg/GetErrorMessage.cpp
@@ -57,9 +57,9 @@
 #include "NLSConversion.h"
 #include "ExSMCommon.h"
 
-  #include <fcntl.h>
-	#include <signal.h>	
-  #include "MsgCat.h"
+#include <fcntl.h>
+#include <signal.h>	
+#include <nl_types.h>
 
 // ----------------------------------------------------
 // Definitions common to both _WINDOWS and non-WINDOWS.

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/b952c0d5/core/sql/sqlshare/catapirequest.cpp
----------------------------------------------------------------------
diff --git a/core/sql/sqlshare/catapirequest.cpp b/core/sql/sqlshare/catapirequest.cpp
deleted file mode 100644
index 9a5d011..0000000
--- a/core/sql/sqlshare/catapirequest.cpp
+++ /dev/null
@@ -1,1070 +0,0 @@
-/* -*-C++-*-
-// @@@ START COPYRIGHT @@@
-//
-// Licensed to the Apache Software Foundation (ASF) under one
-// or more contributor license agreements.  See the NOTICE file
-// distributed with this work for additional information
-// regarding copyright ownership.  The ASF licenses this file
-// to you under the Apache License, Version 2.0 (the
-// "License"); you may not use this file except in compliance
-// with the License.  You may obtain a copy of the License at
-//
-//   http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing,
-// software distributed under the License is distributed on an
-// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-// KIND, either express or implied.  See the License for the
-// specific language governing permissions and limitations
-// under the License.
-//
-// @@@ END COPYRIGHT @@@
- *****************************************************************************
- *
- * File:         CatApiRequest.C
- * Description:  See CatApiRequest.h for details.
- *
- * Created:      5/2/97
- * Language:     C++
- *
- *
- *
- *****************************************************************************
- */
-
-
-#include "catapirequest.h"
-#include <stdio.h>
-#include <assert.h>
-#include <ctype.h>
-
-
-#ifndef TRUE
-#define TRUE 1
-#endif
-
-#ifndef FALSE
-#define FALSE 0
-#endif
-
-// ======================================================================
-//         Class CatApiParam non inline methods:
-// ======================================================================
-
-// -----------------------------------------------------------------------
-// Constructor:
-// -----------------------------------------------------------------------
-CatApiParam::CatApiParam( char * param )
-: nextParam_ (NULL)
-, param_ (param)
-{
-  paramLengthForMsg_ = (Lng32)strlen(param);
-}
-
-// -----------------------------------------------------------------------
-// Constructor:
-// -----------------------------------------------------------------------
-CatApiParam::CatApiParam( char * param, Lng32 lengthForMsg )
-: nextParam_ (NULL)
-, param_ (param)
-, paramLengthForMsg_ (lengthForMsg)
-{
-}
-
-// -----------------------------------------------------------------------
-// Destructor:
-// -----------------------------------------------------------------------
-CatApiParam::~CatApiParam(void)
-{
-  if (param_)
-  {
-    delete [] param_;
-    param_ = NULL;
-  }
-}
-
-
-
-
-// -----------------------------------------------------------------------
-// Definition of the overloaded iostream insertion operator.
-// -----------------------------------------------------------------------
-ostream& operator<< (ostream& s, const CatApiParam &p)
-{
-  s << "       parameter value = " << *(p.getParamValue()) << endl;
-  s << "       next parameter  = " << p.getNextParam() << endl;
-  s << endl;
-  return s;
-}
-
-
-// =======================================================================
-//          class CatApiRequest non inline methods
-// =======================================================================
-
-// -----------------------------------------------------------------------
-// Constructors:
-// -----------------------------------------------------------------------
-CatApiRequest::CatApiRequest( void )
-  : requestType_  (UNKNOWN_REQUEST_TYPE),
-    numParams_    (0),
-    firstParam_   (NULL)
-{
-#pragma nowarn(1506)   // warning elimination 
-  Int32 length = strlen(APIVERSION);
-#pragma warn(1506)  // warning elimination 
-  versionInfo_ = new char [length+1];
-  strcpy(versionInfo_, APIVERSION);
-  versionInfo_[length] = '\0';
-}
-
-CatApiRequest::CatApiRequest( CatApiRequestType requestType )
-  : requestType_  (requestType),
-    numParams_    (0),
-    firstParam_   (NULL)
-{
-#pragma nowarn(1506)   // warning elimination 
-  Int32 length = strlen(APIVERSION);
-#pragma warn(1506)  // warning elimination 
-  versionInfo_ = new char [length+1];
-  strcpy(versionInfo_, APIVERSION);
-  versionInfo_[length] = '\0';
-}
-
-// -----------------------------------------------------------------------
-// Destructors:
-// -----------------------------------------------------------------------
-CatApiRequest::~CatApiRequest (void)
-{
-  // free up space for each CatApiParam
-  CatApiParam *currentParam = firstParam_;
-  CatApiParam *nextParam = NULL;
-  while (currentParam)
-  {
-    nextParam = currentParam->nextParam_;
-    delete currentParam;
-    currentParam = nextParam;
-  }
-
-  // free up space for version info
-  delete [] versionInfo_;
-}
-
-// ---------------------------------------------------------------------------
-// getParamEnd:
-//
-// Parses the current api string to get the next parameter.  Returns pointer
-// in string where end position resides; returns NULL otherwise
-//
-// Parameters can be 
-//   regular identifiers (a-z, A-Z, 0-9, _)
-//   delimited identifiers ("<values>")
-//   first key values ( <value1>, ... , <valuen> )
-//   value(1-n) ( <valid data type representation> ) - all strings '<value>'
-//
-// Parameters can be delimited by either of the following:
-//   '<' and '>'  (used only by test code)
-//   '@' and '@'
-//
-// Example of parameter list this function could parse:
-//    @cat.sch."t10c == '""."""@ @0@ @'s',10,10,'d''a'@ @$data2@
-//
-// This routine assumes you can't have a delimited identifier and a quoted 
-// string in the same parameter value.
-// ---------------------------------------------------------------------------
-char *
-CatApiRequest::getParamEnd(size_t startPos, const char *text)
-{
-  BOOL foundEnd = FALSE;
-  BOOL inSingleQuote = FALSE;
-  BOOL inDoubleQuote = FALSE;
-  BOOL inQuote = FALSE;
-  size_t currentPos = startPos;
-  while (!foundEnd)
-  {
-    switch (text[currentPos])
-    {
-      // This should only occur as end position or in a quoted string
-      case '@':
-        if (!inQuote)
-          foundEnd = 1;
-        break;
-
-      // This should only occur as end position, in a quoted string, or in
-      // in a delimited identifier
-      case '>':
-        if (!inQuote)
-          foundEnd = 1;
-        break;
-
-      // This could be a delimiter for a delimited identifier, part of the
-      // delimited string or part of a quoted string.
-      case '\'':
-        if (!inDoubleQuote)
-        {
-          if (inSingleQuote)
-          {
-            if (text[currentPos+1] == '\'')
-              currentPos++;
-            else
-            {
-              inSingleQuote = FALSE;
-              inQuote = FALSE;
-            }
-          }
-          else
-          {
-            inSingleQuote = TRUE;
-            inQuote = TRUE;
-          }
-        }
-        break;
-
-      // This could be part of a delimited identifier, part of a quoted string,
-      // or delimiters for a quoted string.
-      case '"':
-        if (!inSingleQuote)
-        {
-          if (inDoubleQuote)
-          {
-            if (text[currentPos+1] == '"')
-              currentPos++;
-            else
-            {
-              inDoubleQuote = FALSE;
-              inQuote = FALSE;
-            }
-          }
-          else
-          {
-            inDoubleQuote = TRUE;
-            inQuote = TRUE;
-          }
-        }
-        break;
-
-      default:
-        break;
-    }
-    currentPos++;
-  }
-  char *endPos = NULL;
-  if (foundEnd)
-    endPos = (char *)text + (currentPos-1);
-  return endPos;
-}
-
-// ----------------------------------------------------------------------------
-// versionSupported
-//
-// Verifies the the version specified by the request matches a support version.
-// Version supported are: 1 and 2
-// ----------------------------------------------------------------------------
-short
-CatApiRequest::versionSupported (void)
-{
-  Int32 versionList[2] = {1, 2};
-  Lng32 currentVersion = atol (versionInfo_);
-  Lng32 numVersions = sizeof (versionList) / sizeof (Int32);
-  for (Lng32 i = 0; i < numVersions; i++)
-  {
-    if (currentVersion == versionList[i])
-      return TRUE;
-  }
-  return FALSE;
-}
-
-// ----------------------------------------------------------------------------
-// appendParam
-//
-// Appends the CatApiParam to the end of the list of params.
-// ----------------------------------------------------------------------------
-void
-CatApiRequest::appendParam (CatApiParam *newParam)
-{
-  CatApiParam *currentParam = firstParam_;
-  if (currentParam == NULL)
-    firstParam_ = newParam;
-  else
-  {
-    while (currentParam->getNextParam() != NULL)
-      currentParam = (CatApiParam *)currentParam->getNextParam();
-    currentParam->updateNextParam( newParam );
-  }
-  incrNumParams();
-}
-
-// ----------------------------------------------------------------------------
-// convertTextToCatApiRequest:
-//
-// returns TRUE if successful, FALSE otherwise
-// ----------------------------------------------------------------------------
-short 
-CatApiRequest::convertTextToCatApiRequest(const char *text)
-{
-  size_t startPos = 0;
-  short status = convertTextToCatApiRequest( text, startPos );
-  return status;
-}
-
-// ----------------------------------------------------------------------------
-// convertTextToCatApiRequest - sends and returns current string position
-//
-// returns TRUE if successful, FALSE otherwise
-// ----------------------------------------------------------------------------
-short 
-CatApiRequest::convertTextToCatApiRequest( const char *text, size_t &startPos )
-{
-  // allocate a buffer of MAXPARAMSIZE bytes.  
-  char buf[MAXPARAMSIZE];
-  size_t len = 0;
-  Int32 scanCount;
-  Int32 reqType = 0;  // UNKNOWN_REQUEST_TYPE, see enum CatApiRequestType
-
-  // The first item in the string is the operation type, skip over.
-  char * endPos = (char *) strchr( &text[startPos], '&' );
-  if (endPos == NULL)
-    return 0;  // failure
-  size_t strPos = endPos - text;
-  len = strPos - startPos;
-  strncpy (buf, &text[startPos], len);
-  buf[len] = '\0';
-  if (memcmp( buf, CATAPI, len ) != 0)
-    return 0;
-  startPos = ++strPos;
-
-  // Get the version control information
-  endPos = (char *) strchr( &text[startPos], ' ');
-  if (endPos == NULL)
-    return 0;  // failure
-  strPos = endPos - text;
-  if (strPos < startPos)
-    return 0; // failure
-  len = (strPos - startPos);
-  delete [] versionInfo_;
-  versionInfo_ = new char[len+1];
-  strncpy (versionInfo_, &text[startPos], len);
-  versionInfo_[len] = '\0';
-  if (!versionSupported())
-    return 0;
-
-  // Get the request type
-  startPos = ++strPos;
-  endPos = (char *) strchr(&text[startPos], ' ');
-  if (endPos == NULL)
-    return 0;  // failure
-  strPos = endPos - text;
-  if (strPos < startPos)
-    return 0; // failure
-  len = strPos - startPos;
-  strncpy (buf, &text[startPos], len);
-  buf[len] = '\0';
-  scanCount = sscanf (buf, "%d", &reqType);
-  setCatApiRequestType((CatApiRequestType)reqType);
-  if (scanCount != 1)
-    return 0;
-
-  // Get number parameters
-  startPos = ++strPos;
-  endPos = (char *) strchr(&text[startPos], ' ');
-  if (!endPos)
-   {
-	// Fixup metadata views catapi request has no parameters.
-	// So the request text for metadata views fixup is like
-    // CREATE TANDEM_CAT_REQUEST&1 47 0;. The code below
-    // handles this condition.
-    // Checks if the parameters passed are zero.
-    // If yes set numParams_ to zero and return success
-    endPos = (char *) strchr(&text[startPos], ';');
-    if (endPos != NULL)   
-    {
-      strPos = endPos - text;
-      if (strPos < startPos)
-        return 0; // failure
-      len = strPos - startPos;
-      strncpy (buf, &text[startPos], len);
-      buf[len] = '\0';
-      scanCount = sscanf (buf, "%d", &numParams_);
-      if (scanCount != 1 || numParams_ != 0)
-	  {
-        return 0;
-	  }
-	  else
-      {
-        startPos--;
-        return 1;
-      }
-    }
-    else
-    {      
-      return 0;
-    }
-  }
-
-  strPos = endPos - text;
-  if (strPos < startPos)
-    return 0; // failure
-  len = strPos - startPos;
-  strncpy (buf, &text[startPos], len);
-  buf[len] = '\0';
-  scanCount = sscanf (buf, "%d", &numParams_);
-  if (scanCount != 1)
-    return 0;
-
-  // If parameters exist, process params
-  startPos = ++strPos;
-  if (numParams_ > 0)
-  {
-    if (strcmp( versionInfo_, APIVERSION ) == 0)
-      startPos += getParams (&text[startPos]);
-    else
-      startPos += getPreviousVersionParams (&text[startPos]);
-  }
-
-  // startPos is pointing to the next request, update to point
-  // to position just before the next request.
-  startPos--;
-
-  return 1; // success
-}
-
-// ----------------------------------------------------------------------------
-// getParams
-//
-// get all the parameters from a text request for the current version.
-// Parameters have the following format:  'len value'
-// 
-// The first n bytes contains the length following by a space and followed
-//   by the actual value.
-//
-// If the parameter is of 0 length, then the format is just the length.
-// ----------------------------------------------------------------------------
-size_t
-CatApiRequest::getParams (const char *text)
-{
-  // initialize variables
-  char buf[1000];
-  Int32 scanCount;
-  size_t len = 0;
-  Int32 paramLength = 0; 
-  size_t strPos = 0;
-  size_t startPos = 0;
-  char *endPos = (char *)text;
-  CatApiParam *currentParam = NULL;
-
-  // find each parameter and save in a CatApiParam class
-  for (Lng32 i = 0; i < numParams_; i++)
-  {
-    // Get string length, save in paramLength
-    endPos = (char *) strchr(&text[startPos], ' ');
-    assert (endPos);
-    strPos = endPos - text;
-    len = strPos - startPos;
-
-    strncpy (buf, &text[startPos], len);
-    buf[len] = '\0';
-    scanCount = sscanf (buf, "%d", &paramLength);
-    assert (scanCount == 1);
-
-    // Get string value, save in param
-    startPos = ++strPos; // get past space (expect only 1 trailing space)
-    char * param = NULL;
-    if (paramLength > 0)
-    {
-      param = new char [paramLength+1];
-      strncpy (param, &text[startPos], paramLength);
-      param[paramLength] = '\0';
-      startPos += paramLength + 1; // point to next param
-      while (isspace((unsigned char)text[startPos])) // allow more than 1 trailing space so  // For VS2003
-        startPos++;                   // w:/regress/catman/test103 can pass
-                                      // on both Windows and NSK platforms
-    }
-
-    // zero length strings set up an empty string
-    // startPos is already pointing to the next param
-    else
-    {
-      param = new char[1];
-      param[0] = '\0';
-    }
-
-    // Convert string into CatApiParam and add to list
-    CatApiParam *nextParam = new CatApiParam( param );
-    if (i == 0) // first param
-    {
-      firstParam_ = nextParam;
-      currentParam = firstParam_;
-    }
-    else
-    {
-      currentParam->updateNextParam( nextParam );
-      currentParam = nextParam;
-    }
-  }
-
-  return startPos;
-}
-
-// ----------------------------------------------------------------------------
-// getPreviousVersionParams:
-//
-// Sets up a CatApiParam list for version 1 strings.
-// Version one strings are delimited by either @ ... @ or < ... >.  If the
-// string contains embedded delimiter values, the text must be qualified with 
-// single or double quotes.  If encoded in quotes, any of the same quotes that
-// are found in the string must be doubled.
-// ----------------------------------------------------------------------------
-size_t
-CatApiRequest::getPreviousVersionParams (const char *text)
-{
-  // initialize values
-  size_t len = 0;
-  size_t strPos = 0;
-  size_t startPos = 1; // location 1 is the delimiter, get first text item
-
-  char *endPos = (char *)text; 
-  // char endValue = (text[strPos] == '@') ? '@' : '>';
-
-  // Process each parameter.
-  CatApiParam *currentParam = NULL;
-  for (Lng32 i = 0; i < numParams_; i++)
-  {
-    // get string length, save in len
-    endPos = getParamEnd(startPos, text);
-    assert (endPos);
-    strPos = endPos - text;
-    len = strPos - startPos;
-
-    // get string value, save in paramValue
-    char * paramValue = new char [len + 1];  // for null byte
-    strncpy (paramValue, &text[startPos], len);
-    paramValue[len] = '\0';
-
-    // Add param to CatApiParam list
-    CatApiParam *nextParam = new CatApiParam( paramValue );
-    if (i == 0) // first param
-    {
-      firstParam_ = nextParam;
-      currentParam = firstParam_;
-    }
-    else
-    {
-      currentParam->updateNextParam( nextParam );
-      currentParam = nextParam;
-    }
-    startPos = strPos + 3; // space and delimiter 
-  }
-  return strPos+1; // get past space (if list request)
-}
-	  
-// -----------------------------------------------------------------------
-// getText:
-//
-// returns TRUE is successful, FALSE otherwise
-// -----------------------------------------------------------------------
-short
-CatApiRequest::getText( char *text, const short includeSemicolon ) const
-{
-  size_t strPos = 0;
-  text[0] = '\0';
-
-  // Add statement header
-  strcat( text, CATAPI);
-  strPos = strPos + strlen(CATAPI);
-
-  // Add version information. Always version 2; the code below
-  // cannot produce version 1 parameters.
-  strcat( text, APIVERSION );
-  strPos = strPos + strlen(APIVERSION);
-  text[strPos++] = ' ';
-
-  // add request type
-  size_t length = sprintf( &text[strPos], "%0d", getCatApiRequestType() );
-  strPos = strPos + length;
-  text[strPos++] = ' ';
-
-  // Add number parameters
-  length = sprintf( &text[strPos], "%0d", getNumParams() );
-  strPos = strPos + length;
-  text[strPos++] = ' ';
-
-  // Add each parameter
-  //  Parameters are of the form:  length space value
-  const CatApiParam *ptrParam = getFirstParam();
-  for (Int32 i = 0; i < getNumParams(); i++)
-  {
-    if (!ptrParam)
-      return 0;
-
-    // add length + space
-    length = sprintf( &text[strPos], "%0d", ptrParam->getParamLengthForMsg() );
-    strPos += length;
-    text[strPos++] = ' ';
-
-    // add parameter + space
-    strcpy( &text[strPos], ptrParam->getParamValue() );
-    strPos += ptrParam->getParamLength();
-    if (ptrParam->getParamLength() > 0)
-      text[strPos++] = ' ';
-    ptrParam = ptrParam->getNextParam();
-  }
- 
-  if (includeSemicolon)
-    text[strPos++] = ';';
-  text[strPos] = '\0';
-
-  return 1;
-}
-
-// -----------------------------------------------------------------------
-// getTextLength:
-// -----------------------------------------------------------------------
-const Lng32 
-CatApiRequest::getTextLength( void ) const
-{
-#pragma nowarn(1506)   // warning elimination 
-  Lng32 length = ( strlen( CATAPI ) + strlen( APIVERSION ) +1 /*space*/);
-#pragma warn(1506)  // warning elimination 
-  char buf[100];
-  length = length + (sprintf( buf, "%d", LAST_API_REQUEST));
-  length++; // space
-  length = length + (sprintf( buf, "%d", getNumParams() ));
-  length++; //space
-  const CatApiParam *nextParam = getFirstParam();
-  for (Lng32 i = 0; i < getNumParams(); i++)
-  {
-    assert (nextParam);
-    length += nextParam->getParamLength();
-    if (strcmp( versionInfo_, APIVERSION ) == 0)
-      length += sizeof(MAXPARAMSIZE) + 1; // length bytes + 1 for space
-    else
-      length += 3; // begin/end delimiter, space
-    nextParam = nextParam->getNextParam();
-  }
-  length = length + 2;  // ; plus null terminator
-  return length;
-}
-
-// -----------------------------------------------------------------------
-// Constant texts and stuff for the internal SpCatApiRequest built-in function
-// -----------------------------------------------------------------------
-const char selectTextWrapper1 [] = "select * from table (tdmisp ('SpCatApiRequest',_utf8'";
-const char selectTextWrapper2 [] = "'))";
-const Lng32 selectTextWrapperLength = sizeof(selectTextWrapper1) + sizeof(selectTextWrapper2) - 2;
-
-// -----------------------------------------------------------------------
-// getSelectTextLength:
-// -----------------------------------------------------------------------
-const Lng32 
-CatApiRequest::getSelectTextLength( void ) const
-{
-  return getTextLength() + selectTextWrapperLength;
-}
-
-// -----------------------------------------------------------------------
-// getSelectText:
-//
-// returns TRUE is successful, FALSE otherwise
-// -----------------------------------------------------------------------
-short
-CatApiRequest::getSelectText( char *text, const short includeSemicolon ) const
-{
-  // Allocate end wrapper with room for semicolon.
-  char endWrapper [sizeof(selectTextWrapper2)+1];
-
-  // Copy the initial wrapper.
-  strcpy (text, selectTextWrapper1);
-
-  // Append the actual CatApiRequest text.
-  // Return FALSE if getText fails. Don't include ';' inside of the select text.
-  if (!getText (&text[sizeof(selectTextWrapper1)-1], FALSE))
-    return FALSE;
-
-  // Create the end wrapper with or without semicolon, then append it to the select text.
-  strcpy(endWrapper, selectTextWrapper2);
-  if (includeSemicolon)
-  {
-    endWrapper [sizeof(selectTextWrapper2)-1] = ';';
-    endWrapper [sizeof(selectTextWrapper2)] = '\0';
-  }
-  strcat (text, endWrapper);
-
-  // Done ...
-  return TRUE;
-}
-
-// -------------------------------------------------------------------
-// addParam(s):
-// -------------------------------------------------------------------
-
-// Add a long parameter:
-
-void
-CatApiRequest::addConstParam (const Lng32 value)
-{
-  char asciiValue[16];
-  Int32 length = sprintf( &asciiValue[0], "%d", value );
-  addParam (&asciiValue[0], length);
-}
-
-void
-CatApiRequest::addParam (Lng32 value)
-{
-  addConstParam( (const Lng32) value );
-}
-
-// Add a 64-bit binary parameter:
-void 
-CatApiRequest::addConstInt64Param (const Int64 value)
-{
-  char asciiValue[24];
-  Int32 length = sprintf(&asciiValue[0], PF64, value);
-  addParam(&asciiValue[0], length);
-}
-
-void 
-CatApiRequest::addInt64Param(Int64 value)
-{
-  addConstInt64Param((const Int64)value);
-}
-
-// Add a null terminated character string
-void 
-CatApiRequest::addConstParam (const char * value)
-{
-#pragma nowarn(1026)   // warning elimination 
-//SQ_LINUX (from (const) to (const Lng32)
-  addConstParam (value, (const Lng32) strlen(value));
-#pragma warn(1026)  // warning elimination 
-}
-
-void
-CatApiRequest::addParam (char * value)
-{
-#pragma nowarn(1026)   // warning elimination 
-//SQ_LINUX (from (const) to (const Lng32)
-  addConstParam ((const char *) value, (const Lng32) strlen(value));
-#pragma warn(1026)  // warning elimination 
-}
-
-// Add a character string with a specified length
-void 
-CatApiRequest::addConstParam (const char * value, const Lng32 length)
-{
-  // Allocate space for parameter and api structure
-  char *param = new char [length + 1];  // 1 for null byte
-  strncpy(param, value, length);
-  param[length] = '\0';
-  CatApiParam *newParam = new CatApiParam( param );
-
-  // append to end of list
-  appendParam(newParam);
-}
-
-// Add a character string that has single-quotes that have been doubled in
-// preparation for a prepare query and so the length to be used
-// in the request length of the string before the single-quotes were doubled.
-void 
-CatApiRequest::addConstParam (const Lng32 lengthForMsg, const char * value)
-{
-  size_t realLen = strlen(value);
-  // Allocate space for parameter and api structure
-  char *param = new char [realLen + 1];  // 1 for null byte
-  strncpy(param, value, realLen);
-  param[realLen] = '\0';
-  CatApiParam *newParam = new CatApiParam( param, lengthForMsg );
-
-  // append param to end of list of params
-  appendParam(newParam);
-}
-
-void
-CatApiRequest::addParam (char * value, Lng32 length)
-{
-  addConstParam( (const char *) value, (const Lng32) length );
-}
-
-// -----------------------------------------------------------------------
-// Definition of the overloaded iostream insertion operator.
-// -----------------------------------------------------------------------
-ostream& operator<< (ostream& s, CatApiRequest &p)
-{
-  char * value = new char[p.getTextLength()+1]; // 1 for null byte
-  short result = p.getText( value );
-  if (result)
-  {
-    s << "  API Request  " << endl;
-    s << "    Text: " << value << endl;
-  }
-  else
-    s << "Could not generate text" << endl;
-
-  const CatApiParam * nextParam = p.getFirstParam();
-  while (nextParam != NULL)
-    {
-      s << *nextParam << endl;
-
-    }
-  delete [] value;
-  return s;
-}
-
-// -----------------------------------------------------------------------
-// CatApiRequest::operator[]() -- const version
-// -----------------------------------------------------------------------
-const CatApiParam *
-CatApiRequest::operator[] (Lng32 index) const
-{
-  if ((index < 0) || (index > getNumParams()-1))
-    return NULL;
-  const CatApiParam *nextParam = getFirstParam();
-    
-  for (Lng32 i = 0; i < getNumParams(); i++)
-  {
-    if (i == index)
-      return nextParam;
-    if (nextParam == NULL)
-      return NULL;
-    nextParam = nextParam->getNextParam();
-  }
-  return NULL;
-}
-
-// =======================================================================
-//          class CatApiRequestList non inline methods
-// =======================================================================
-
-// -----------------------------------------------------------------------
-// Constructors:
-// -----------------------------------------------------------------------
-CatApiRequestList::CatApiRequestList (void)
-:  numRequests_   (0)
-{
-#pragma nowarn(1506)   // warning elimination 
-  Int32 length = strlen(APIVERSION);
-#pragma warn(1506)  // warning elimination 
-  versionInfo_ = new char [length+1];
-  strcpy(versionInfo_, APIVERSION);
-  versionInfo_[length] = '\0';
-  for (Lng32 i = 0; i < MAXNUMREQUESTS; i++)
-    requestList_[i] = NULL;
-}
-
-// -----------------------------------------------------------------------
-// Destructors:
-// -----------------------------------------------------------------------
-CatApiRequestList::~CatApiRequestList (void)
-{
-  // free up space for each CatApiRequest
-  const CatApiRequest *currentRequest = NULL;
-  for (Lng32 i = 0; i < numRequests_; i++)
-  {
-    currentRequest = requestList_[i];
-    if (currentRequest)
-    {
-      delete currentRequest;
-      requestList_[i] = NULL;
-    }
-  }
-
-  // free up space for version info
-  if (versionInfo_)
-  {
-    delete [] versionInfo_;
-    versionInfo_ = NULL;
-  }
-}
-
-// -----------------------------------------------------------------------
-// Operator[]:
-//
-// returns NULL if not found
-// -----------------------------------------------------------------------
-const CatApiRequest *  
-CatApiRequestList::operator[] (Lng32 index) const
-{
-  if (index <= numRequests_)
-    return requestList_[index];
-  else
-    return NULL;
-}
-
-// -----------------------------------------------------------------------
-// getTextLength:
-//
-// returns length of text, terminating null character not included.
-// -----------------------------------------------------------------------
-const Lng32
-CatApiRequestList::getTextLength(void) const
-{
-  // List header length
-#pragma nowarn(1506)   // warning elimination 
-  Lng32 length = APIHEADERLEN;
-#pragma warn(1506)  // warning elimination 
-
-  // length for maximum requests
-#pragma nowarn(1506)   // warning elimination 
-  length = length + sizeof (MAXNUMREQUESTS) + 1 /*space*/;
-#pragma warn(1506)  // warning elimination 
-
-  // Lengths of each request
-  const CatApiRequest *request = NULL;
-  for (Lng32 i = 0; i < numRequests_; i++)
-  {
-    request = requestList_[i];
-    if (request)
-    {
-      length += request->getTextLength();
-      length++; // space
-    }
-  }
-
-  length++;  // final semicolon
-  return length;
-}
-
-// -----------------------------------------------------------------------
-// getText:
-//
-// returns TRUE if successful, FALSE otherwise
-// terminating null character is included
-// -----------------------------------------------------------------------
-short 
-CatApiRequestList::getText(char *text)
-{
-  // Get request header
-  text[0] = '\0';
-  strcat(text, APIHEADER);
-  size_t strPos = APIHEADERLEN;
-  text[strPos] = '\0';
-
-  // Get number of commands sent
-  Lng32 length = sprintf( &text[strPos], "%0d", numRequests_ );
-  strPos = strPos + length;
-  text[strPos++] = ' ';
-  text[strPos] = '\0'; // null terminate the string for strcat performed below
-
-  // Get each command
-  CatApiRequest *request = NULL;
-  for (Lng32 i = 0; i < numRequests_; i++)
-  {
-    request = requestList_[i];
-    if (request == NULL)
-      return 0;
-    Lng32 length = request->getTextLength();
-    char *requestText = new char [length+1];
-    if (!request->getText(requestText, 0 /* do not include semicolon*/ ))
-      return 0;
-    strcat(text, requestText );
-    strPos = strPos + strlen(requestText);
-    delete [] requestText;
-    text[strPos] = '\0'; // space separator already added
-  }
-
-  // Add final semicolon and null byte
-  text[strPos++] = ';';
-  text[strPos] = '\0';
-  return 1;
-}
- 
-// -------------------------------------------------------------------
-// addRequest:
-//
-// return TRUE if successful, FALSE otherwise
-// -------------------------------------------------------------------
-short 
-CatApiRequestList::addRequest(CatApiRequest *newRequest)
-{
-  // This adds a request at the end of the list
-  short foundEntry = 0;
-  for (Lng32 i = 0; i < MAXNUMREQUESTS; i++)
-  {
-    if (! requestList_[i])
-    {
-      requestList_[i] = newRequest;
-      foundEntry = 1;
-      numRequests_ = i+1;
-      break;
-    }
-  }
-  return foundEntry;
-}
-
-// -------------------------------------------------------------------
-// convertTextToApiRequest:
-//
-// return TRUE is successful, FALSE otherwise
-// -------------------------------------------------------------------
-short 
-CatApiRequestList::convertTextToApiRequest (const char *text
-                                            // , size_t textLen
-                                            // , short /*SQLCHARSET_CODE*/ ddlTextCharSet
-                                            )
-{
-  // The first item in the string is the operation type.  Just verify
-  // that the correct verbage exists.
-  size_t startPos = 0;
-  char buf[MAXPARAMSIZE];
-  Lng32 scanCount;
-  char * endPos = (char *) strchr( text, '&' );
-  size_t strPos = endPos - text;
-  if (strPos < startPos)
-    return 0; // failure
-  size_t len = strPos - startPos;
-  strncpy (buf, &text[startPos], len);
-  buf[strPos] = '\0';
-  startPos = ++strPos;
-  
-  // Get the version control information
-  endPos = (char *) strchr( &text[startPos], ' ');
-  strPos = endPos - text;
-  if (strPos < startPos)
-    return 0; // failure
-  len = (strPos - startPos);
-  delete [] versionInfo_;
-  versionInfo_ = new char[len+1];
-  strncpy (versionInfo_, &text[startPos], len);
-  versionInfo_[len] = '\0';
-  if (strcmp(versionInfo_, APIVERSION) != 0)
-    return 0;
-
-  // Get list type
-  startPos = ++strPos;
-  endPos = (char *) strchr(&text[startPos], ' ');
-  strPos = (endPos - text);
-  if (strPos < startPos)
-    return 0; // failure
-  len = (strPos - startPos);
-  strncpy (buf, &text[startPos], len);
-  buf[len] = '\0';
-  if (strcmp(buf, APILIST) != 0)
-    return 0;
-
-  // Get number requests
-  startPos = ++strPos;
-  endPos = (char *) strchr(&text[startPos], ' ');
-  strPos = endPos - text;
-  if (strPos < startPos)
-    return 0; // failure
-  len = strPos - startPos;
-  strncpy (buf, &text[startPos], len);
-  buf[len] = '\0';
-  Lng32 numRequests;
-  scanCount = sscanf (buf, "%d", &numRequests);
-  if (scanCount != 1)
-    return 0;
-
-  // Get each request
-  if (numRequests > MAXNUMREQUESTS)
-    return 0;
-  for (Lng32 i = 0; i < numRequests; i++)
-  {
-    startPos = ++strPos;   
-    CatApiRequest *request = new CatApiRequest();
-    if (!request->convertTextToCatApiRequest(text, startPos))
-      return 0;
-    addRequest( request );
-    strPos = startPos;
-  }
-  return 1;
-}

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/b952c0d5/core/sql/sqlshare/catapirequest.h
----------------------------------------------------------------------
diff --git a/core/sql/sqlshare/catapirequest.h b/core/sql/sqlshare/catapirequest.h
deleted file mode 100644
index ce729c4..0000000
--- a/core/sql/sqlshare/catapirequest.h
+++ /dev/null
@@ -1,594 +0,0 @@
-/**********************************************************************
-// @@@ START COPYRIGHT @@@
-//
-// Licensed to the Apache Software Foundation (ASF) under one
-// or more contributor license agreements.  See the NOTICE file
-// distributed with this work for additional information
-// regarding copyright ownership.  The ASF licenses this file
-// to you under the Apache License, Version 2.0 (the
-// "License"); you may not use this file except in compliance
-// with the License.  You may obtain a copy of the License at
-//
-//   http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing,
-// software distributed under the License is distributed on an
-// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-// KIND, either express or implied.  See the License for the
-// specific language governing permissions and limitations
-// under the License.
-//
-// @@@ END COPYRIGHT @@@
-**********************************************************************/
-/* -*-C++-*-
- *****************************************************************************
- *
- * File:         CatApiRequest.h
- * Description:  This file defines classes CatApiParam and CatApiRequest.
- *
- * Created:      5/1/97
- * Language:     C++
- *
- *
- *
- *****************************************************************************
- */
-
-
-#ifndef _CATAPIREQUEST_H_
-#define _CATAPIREQUEST_H_
-
-
-#include <iostream>
-#include <stdlib.h>
-#include <string.h>
-
-#include "Platform.h"
-#ifdef NA_STD_NAMESPACE
-   using namespace std;
-#endif
-   #ifdef CLI_DLL
-      #define CATAPI_LIB_CLASS __declspec( dllexport )
-   #else
-      #ifdef SHARE_DLL
-         #define CATAPI_LIB_CLASS __declspec( dllexport )
-      #else
-         #ifdef CAT_DEBUG
-            #define CATAPI_LIB_CLASS __declspec( dllexport )
-         #else
-            #define CATAPI_LIB_CLASS __declspec( dllimport )
-         #endif
-      #endif
-   #endif
-
-// contents:
-class CatApiParam;
-class CatApiRequest;
-class CatApiRequestList;
-// ============================================================================
-// CatAPiRequests can be run under SQLCI in the following format:
-//
-// CREATE TANDEM_CAT_REQUEST&1 request_type number_of_params <param1> <param2> ...;
-// ============================================================================
-// Definitions
-// ============================================================================
-enum CatApiRequestType {  UNKNOWN_REQUEST_TYPE      = 0,
-                          DDL_CREATE_LOCK           = 1,
-                          DDL_DROP_LOCK             = 2,
-                          DDL_ALTER_LOCK            = 3,
-                          ADD_PARTN                 = 4,
-                          DROP_PARTN                = 5,
-                          CHANGE_PARTN_STATUS       = 6,
-                          UPDATE_STATS              = 7,
-                          CHANGE_PARTN_FIRST_KEY    = 8,
-                          UPDATE_PARTN_STATUS       = 9,
-                          ENCODE_KEY                = 10,
-                          UPDATE_INDEX_STATUS       = 11,
-                          INVALIDATE_OPENS          = 12,
-                          TOGGLE_OBJ_CORRUPT        = 13,
-                          POPULATE_INDEX            = 14,
-                          UPDATE_INDEX_MAP          = 15,
-                          //++ MV
-                          MV_SET_TABLE_EPOCH        = 16,
-                          MV_SET_MVSTATUS           = 17,
-                          MV_SET_REFRESHED_AT       = 18,
-                          MV_SET_MV_TABLE_AUDIT     = 19,
-                          //-- MV
-                          SET_INDEX_LEVELS          = 20,
-
-                          ALTER_PRIMARY_CONSTRAINT  = 21,
-                          CHANGE_DDL_STATUS         = 22,
-                          SET_INDEX_LEVELS2         = 23,
-                          REQUEST_24_AVAILABLE      = 24, // for future use
-                          SET_FILE_LABEL_FLAGS      = 25,
-                          SET_ROW_HIDING_PREDICATE  = 26,
-                          UPDATE_REDEF_TIME         = 27,
-                          SET_REDEF_TIME            = 28,
-                          ALLOCATE_EXTENTS          = 29,
-                          UPDATE_MAX_EXTENTS        = 30,
-                          REQUESTER_PROCESS_INFO    = 31,
-                          UPDATE_PARTITION_METADATA = 32,
-                          TOGGLE_OBJ_AUDIT          = 33,
-#ifdef _DEBUG
-                          SECRET_REGRESS_REQUEST    = 34, // Do stuff with no checks at all
-#endif
-                          LAZY_UPDATE_RCB           = 35,
-			  UPDATE_ANSI_NAME          = 36,
-                          ALTER_UIDS                = 37,
-                          COMPARE_RCB               = 38,
-			  RESET_OBJECT_PRIVILEGES   = 39,
-			  TRANSFORM_SWITCHOVER      = 40,
-                          UPDATE_VALIDATE           = 41,
-			  VERIFY_OBJECT_PRIVILEGES  = 42,
-                          MV_QR_PUBLISH             = 43, // MV query rewrite
-                          RECREATE_SG_PARTITION     = 44,
- 			  RECREATE_SS_LABEL	    = 45, 
-                          DROP_SS_LABEL   	    = 46,
-                          GIVE_OBJECT               = 47,
-                          MOVE_VIEW_LABEL           = 48,
-                          METADATA_VIEWS_FIXUP	    = 49, // Metadata views fixup
-                          MV_QR_CREATE_DESC         = 50, 
-                          MANAGE_SYSTEM_ROLE        = 51,
-                          COMPONENT_PRIV_CHECK      = 52,
-
-                          GET_OBJECT_PRIVILEGES     = 54,
-			  RECREATE_AUDIT_CONFIG	    = 55,
-                          DOWNGRADE_METADATA        = 56,
-                          UPGRADE_METADATA   	    = 57,
- 			  VALIDATE_VIEW		    = 58,
-
-                          // Schema-level operations - in own interval, to minimise risk of merge conflicts
-                          UPGRADE_DOWNGRADE_INIT    = 100,
-                          RECOVER_INIT              = 101,
-                          CREATE_DEF_SCH            = 102,
-                          DROP_DEF_SCH              = 103,
-                          UPDATE_TOM                = 104,
-                          READ_AND_COPY_SMD         = 105,
-                          CUTOVER                   = 106,
-                          CUTOVER_UMD               = 107,
-                          GET_OBJECTS_TOM           = 108,
-                          PROCESS_OBJECTS           = 109,
-                          PROCESS_SYSTEM_SCHEMA_TABLES = 110,   // V2400: Cutover for system schema tables
-                          FINALISE_USER_SCHEMA      = 111,
-                          REMOVE_FAKE_DEF_SCH       = 112,
-                          UPGRADE_ONE_CATALOG       = 113,
-                          UGDG_UNUSED_1             = 114,      // V2400: no longer in use, can be re-used
-                          METADATA_FIXUP_SYSSCH     = 115,      // VL: Fixup local system schema tables
-                          METADATA_FIXUP_DEFSCH     = 116,      // VL: Fixup definition schema tables, and system catalog tables (local and remote)
-                          METADATA_FIXUP_UMD        = 117,      // VL: Fixup UMD tables 
-
-                          // Last schema-level request number
-                          METADATA_LAST_REQUEST     = 199,
-                          // End of schema-level operations
-
-
-                          LAST_API_REQUEST };
-
-enum CatApiUnits { API_BYTES, API_KBYTES, API_MBYTES, API_GBYTES };
-
-enum CatApiObjectType { API_TABLE, 
-                        API_INDEX,
-                        API_MV, 
-                        API_IUD_LOG, 
-                        API_RANGE_LOG,
-                        API_GHOST_TABLE,
-                        API_GHOST_INDEX,
-                        API_GHOST_IUD_LOG,
-                        API_SG,
-                        API_SL
-                      };
-
-enum CatApiPartitionStatus { API_AVAILABLE,
-                             API_UNAVAILABLE_OFFLINE,
-                             API_UNAVAILABLE_AUDITED,
-                             API_UNAVAILABLE_NON_AUDITED };
-enum CatApiIndexStatus { API_INDEX_AVAILABLE,
-                         API_INDEX_AVAILABLE_AND_SYSTEM_CREATED,
-                         API_INDEX_NOT_AVAILABLE };
-
-enum CatApiExplicitOrImplicitIndex { API_EXPLICIT_INDEX, API_IMPLICIT_INDEX };
-
-enum CatApiOperation { API_UNKNOWN_OPERATION,
-                       API_BACKUP,
-                       API_DROPLABEL,
-                       API_DUP,
-                       API_EXPORT,
-                       API_IMPORT,
-                       API_MODIFY_TABLE,
-                       API_MODIFY_INDEX,
-                       API_POPULATE_INDEX,
-                       API_PURGEDATA,
-                       API_RECOVER,
-                       API_RESTORE,
-                       API_UPDATE_STATISTICS,
-                       API_REFRESH,
-                       API_UPDATE_PARTITION_METADATA,
-		       API_ALL_METADATA_UPGRADE,
-		       API_ALL_METADATA_DOWNGRADE,
-                       API_TRANSFORM,
-                       API_VALIDATE,
-		       API_REPLICATE
-                    };
-
-enum CatApiSetEpochOperationType{ API_SET_EPOCH,
-                                  API_INCREMENT_EPOCH,
-                                  API_SET_EPOCH_IGNORE_LOCK,
-                                  API_INCREMENT_EPOCH_IGNORE_LOCK
-
-                                };
-
-enum CatApiMVStatusType { API_MV_INITIALIZED,
-                          API_MV_UNAVAILABLE,
-                          API_MV_UNINITIALIZED};
-
-// used by query rewrite PUBLISH table
-enum CatApiMVRefreshType { API_MV_PUBLISH_REFRESH_INCREMENTAL,
-                           API_MV_PUBLISH_REFRESH_RECOMPUTE,
-                           API_MV_PUBLISH_REPUBLISH };
-
-// used by query rewrite create descriptor API request
-enum CatApiMVRepublishFlag { API_MV_DO_REPUBLISH,
-                             API_MV_NO_REPUBLISH };
-
-enum CatApiMVTableAuditType { API_MV_TABLE_AUDIT,
-                              API_MV_TABLE_NOAUDIT };
-
-enum CatApiDdlStatus { API_NO_DDL_IN_PROGRESS,
-                       API_ROW_HIDING,
-                       API_KEY_RANGE_CHECKING };
-
-enum CatApiFileLabelFlagId { API_FL_UNKNOWN_FLAG              = 0,
-                             API_FL_AUDIT_FLAG                = 1,
-                             API_FL_BROKEN_FLAG               = 2,
-                             API_FL_INCOMPLETE_PART_BOUND_CHG = 3,
-                             API_FL_UNRECLAIMED_SPACE         = 4,
-			     API_FL_AUDITCOMPRESS_FLAG        = 5};
-
-enum CatApiTransformDependent { API_TR_DROP_DEPENDENT,
-				API_TR_CASCADE_DEPENDENT,
-				API_TR_RECREATE_DEPENDENT,
-				API_TR_KEEP_DEPENDENT };
-
-enum CatApiPrivType { API_UNKNOWN_PRIV,
-                      API_SELECT_PRIV,
-                      API_DELETE_PRIV,
-                      API_INSERT_PRIV,
-                      API_ALTER_PRIV,
-                      API_EXECUTE_PRIV };
-
-#define CATAPI         "CREATE TANDEM_CAT_REQUEST&"
-#define APIVERSION     "2"
-#define APILIST        "LIST"
-#define MAXPARAMSIZE    3000
-#define MAXNUMREQUESTS  1024
-#define APIHEADER       CATAPI APIVERSION " " APILIST " "
-#define APIHEADERLEN    strlen(CATAPI)+strlen(APIVERSION)+strlen(APILIST)+2
-
-#define VALID_OBJECT(x) (x == API_TABLE || x == API_INDEX)
-#define VALID_OBJECT_WITH_MV_IUDLOG(x) (x == API_TABLE || x == API_INDEX || \
-                                  x == API_MV || x== API_IUD_LOG || x== API_SL)
-#define VALID_DDL_STATUS(x) (x==API_NO_DDL_IN_PROGRESS || \
-                             x==API_ROW_HIDING || \
-                             x==API_KEY_RANGE_CHECKING)
-#define VALID_OBJECT_RESET_PRIVILEGES(x) (x == API_TABLE || x == API_MV )
-#define VALID_PRIV(x) (x == API_SELECT_PRIV || x == API_DELETE_PRIV || \
-                       x == API_INSERT_PRIV || x == API_ALTER_PRIV || \
-                       x == API_EXECUTE_PRIV)
-                                         
-// ============================================================================
-// Class definition:  CatApiParam
-// ============================================================================
-class CATAPI_LIB_CLASS CatApiParam
-{
-   friend ostream &operator<< (ostream &s, const CatApiParam &p);
-   friend class CatApiRequest;
-
-  public:
-    // -------------------------------------------------------------------
-    // Accessors:
-    // -------------------------------------------------------------------
-    inline const CatApiParam * getNextParam        (void) const;
-    inline const Lng32          getParamLength      (void) const;
-    inline const Lng32          getParamLengthForMsg(void) const;
-    inline char              * getParamValue       (void) const;
-
-    // -------------------------------------------------------------------
-    // Constructors/Destructor:
-    // -------------------------------------------------------------------
-    CatApiParam ( char * param );
-    CatApiParam ( char * param, Lng32 lengthForMsg );
-    virtual ~CatApiParam (void);
-
-  protected:
-
-  private:
-
-    // -------------------------------------------------------------------
-    // Constructors/Destructor:
-    // -------------------------------------------------------------------
-    CatApiParam ();     // do not use
-
-    // -------------------------------------------------------------------
-    // Data Members:
-    // -------------------------------------------------------------------
-    CatApiParam  *  nextParam_;
-    char         *  param_;
-    // Contains the length of the param, not as it is when the CatApiParam is
-    // constructed, but what what it should be when the text of the 
-    // CatApiRequest is constructed.  This is useful for a request that is
-    // embedded in a "select * from table" query because during a prepare,
-    // a double single-quote ('') becomes a single single-quote (').
-    Lng32            paramLengthForMsg_;
-
-    // -------------------------------------------------------------------
-    // Mutators:
-    // -------------------------------------------------------------------
-    inline void updateNextParam( CatApiParam * nextParam );
-
-};
-
-// ----------------------------------------------------------------------
-// inline methods for CatApiParams:
-// ----------------------------------------------------------------------
-
-// getNextParam:
-inline
-const CatApiParam *
-CatApiParam::getNextParam(void) const
-{
-  return nextParam_;
-}
-
-// getParamValue:
-inline
-char *
-CatApiParam::getParamValue( void ) const
-{
-  return param_;
-}
-
-// getParamLength: (the null character is not included)
-inline
-const Lng32
-CatApiParam::getParamLength( void ) const
-{
-#pragma nowarn(1506)   // warning elimination 
-  return strlen( param_ );
-#pragma warn(1506)  // warning elimination 
-}
-
-// getParamLengthForMsg: (the null character is not included)
-// Returns the length of the param that should be stored in the text of the
-// CatApiRequest.  Most of the time this will be the same as the actual strlen.
-// See description of paramLengthForMsg_ for more details.
-inline
-const Lng32
-CatApiParam::getParamLengthForMsg( void ) const
-{
-  return (const Lng32)paramLengthForMsg_;
-}
-
-// updateNextParam:
-inline
-void CatApiParam::updateNextParam( CatApiParam * nextParam )
-{
-  nextParam_ = nextParam;
-}
-
-// end class CatApiParam
-
-// ============================================================================
-// Class definition:  CatApiRequest
-// ============================================================================
- class CATAPI_LIB_CLASS CatApiRequest
- {
-
-  public:
-
-  // ---------------------------------------------------------------------
-  // Friends:
-  // ---------------------------------------------------------------------
-  friend ostream &operator << (ostream &s, CatApiRequest &obj);
-
-    // -------------------------------------------------------------------
-    // Accessors:
-    // -------------------------------------------------------------------
-    inline const CatApiRequestType getCatApiRequestType (void) const;
-    inline const Lng32              getNumParams         (void) const;
-    inline const CatApiParam *     getFirstParam        (void) const;
-    inline const CatApiParam *     getParam             (Lng32 index) const;
-
-    const Lng32 getTextLength (void) const;
-    short getText ( char * text
-                  , const short includeSemicolon = 1
-                  ) const;
-    const Lng32 getSelectTextLength (void) const;
-    short getSelectText ( char * text
-                        , const short includeSemicolon = 1
-                        ) const;
- 
-    const CatApiParam * operator[] (Lng32 index) const; 
-
-    // -------------------------------------------------------------------
-    // Mutators:
-    // -------------------------------------------------------------------
-    void addParam (Lng32 value);
-    void addConstParam (const Lng32 value);
-    void addInt64Param (Int64 value);
-    void addConstInt64Param (const Int64 value);
-
-    void addParam (char * value);
-    void addConstParam (const char * value);
-    void addParam (char * value, Lng32 length);
-    void addConstParam (const char * value, const Lng32 length);
-    // special method to handle strings with single quotes that will be prepared in a query
-    void addConstParam (const Lng32 lengthForMsg, const char * value);
-
-    short convertTextToCatApiRequest(const char *text);
-    short convertTextToCatApiRequest(const char *text, size_t &startPos);
-
-    // -------------------------------------------------------------------
-    // Constructors/Destructor:
-    // -------------------------------------------------------------------
-    CatApiRequest (void);
-    CatApiRequest (CatApiRequestType request);
-
-    virtual ~CatApiRequest (void);
-
-  protected:
-
-  private:
-    // -------------------------------------------------------------------
-    // Helper methods:
-    // -------------------------------------------------------------------
-    inline void incrNumParams     (void);
-    inline void decrNumParams     (void);
-
-    char *getParamEnd(size_t startPos, const char *text);
-    size_t getParams (const char *text);
-    size_t getPreviousVersionParams (const char *text);
-    short versionSupported (void);
-
-    // -------------------------------------------------------------------
-    // Mutators:
-    // -------------------------------------------------------------------
-    inline void setCatApiRequestType ( CatApiRequestType requestType );
-           void appendParam ( CatApiParam *newParam );
-
-    // -------------------------------------------------------------------
-    // Data Members:
-    // -------------------------------------------------------------------
-    CatApiRequestType  requestType_;
-    char              *versionInfo_;
-    Lng32               numParams_;
-    CatApiParam       *firstParam_;
-};
-
-
-// -----------------------------------------------------------------------
-// inline functions -- Accessors:
-// -----------------------------------------------------------------------
-
-// getCatApiRequestType:
-inline
-const CatApiRequestType
-CatApiRequest::getCatApiRequestType( void ) const
-{
-  return requestType_;
-}
-
-// getNumParams
-inline
-const Lng32
-CatApiRequest::getNumParams( void ) const
-{
-  return numParams_;
-}
-
-// getFirstParam
-inline
-const CatApiParam *
-CatApiRequest::getFirstParam( void ) const
-{
-  return firstParam_;
-}
-
-// getParam:
-inline
-const CatApiParam *
-CatApiRequest::getParam( Lng32 index ) const
-{
-  return operator[](index);
-}
-
-// setCatApiRequestType:
-inline
-void
-CatApiRequest::setCatApiRequestType( CatApiRequestType requestType )
-{
-  requestType_ = requestType;
-}
-
-// incrNumParams:
-inline
-void
-CatApiRequest::incrNumParams( void )
-{
-  numParams_++;
-}
-
-// decrNumParams:
-inline
-void
-CatApiRequest::decrNumParams( void )
-{
-  numParams_--;
-}
-
-// ============================================================================
-// Class definition:  CatApiRequestList
-// ============================================================================
- class CATAPI_LIB_CLASS CatApiRequestList
- {
-
-  public:
-
-  // ---------------------------------------------------------------------
-  // Friends:
-  // ---------------------------------------------------------------------
-  friend ostream &operator << (ostream &s, CatApiRequestList &obj);
-
-  // -------------------------------------------------------------------
-  // Accessors:
-  // -------------------------------------------------------------------
-  inline const Lng32             getNumRequests  (void) const;
-  inline const char *           getVersionInfo  (void) const;
-
-  const CatApiRequest *         operator[]      (Lng32 index) const;
-  const Lng32                    getTextLength   (void) const;
-  short getText(char *text);
-
-  // -------------------------------------------------------------------
-  // Mutators:
-  // -------------------------------------------------------------------
-  short addRequest              (CatApiRequest *request);
-  short convertTextToApiRequest (const char *text);
-
-  // -------------------------------------------------------------------
-  // Constructors/Destructor:
-  // -------------------------------------------------------------------
-  CatApiRequestList (void);
-  virtual ~CatApiRequestList (void);
-
-  protected:
-
-  private:
-
-  // --------------------------------------------------------------------
-  // Data Members:
-  // --------------------------------------------------------------------
-  char *          versionInfo_;
-  Lng32            numRequests_;
-  CatApiRequest * requestList_[MAXNUMREQUESTS];
-
- };
-
-// -----------------------------------------------------------------------
-// inline functions:
-// -----------------------------------------------------------------------
-inline
-const Lng32
-CatApiRequestList::getNumRequests  (void) const
-{
-  return numRequests_;
-}
-
-inline
-const char *
-CatApiRequestList::getVersionInfo (void) const
-{
-  return versionInfo_;
-}
-
-
-#endif // _CatApiRequest_H_


[8/9] incubator-trafodion git commit: TRAFODION-2731 CodeCleanup: Phase 2: Remove obsolete code

Posted by an...@apache.org.
TRAFODION-2731 CodeCleanup: Phase 2: Remove obsolete code

This phase handles the following:

-- removed files:
  cli/rtdu.h, rtdu2.h, rtdu.cpp, rtdu.cpp
  executor/dmeasql.h
  executor/ExMeas.h, ExMeas.cpp
  executor/tempfile.h, .cpp
  executor/rcb.h
  executor/stubs.cpp, stubs2.cpp
  exp/srlversion.cpp
  exp/exp_space.h
  cli/VicKeyValuePair.h
  cli/CliDll.cpp
  cli/CliStubsStaticBuild.cpp
  cli/globalsrlversion.cpp
  cli/globalstubs.cpp
  cli/sqlciSRLStubs.cpp
  cli/test.cpp
  cli/privsrlversion.cpp
  common/SqlExpDllDefines.h
  common/SqlExportDllDefines.h
  sqlcat/enum.h
  sqlcat/ReadTableDef.h, cpp
  sqlcat/readRealArk.h, cpp
  sqlshare/catapirequest.*

-- removed defines and code referencing them:
  -- NA_STD_NAMESPACE
  -- NA_NO_CMPCONTEXT
  -- NA_CATMAN_SIM, NA_CATMAN_SIM_FS
  -- common/purify.h
  -- DONT_USE_MATH_H
  -- NT_PORT
  -- NA_MSVC
  -- NA_NO_FRIENDS_WITH_TEMPLATE_REFS
  -- NA_FLEXBUILD

-- removed multiple obsolete sqlci features and syntax:
   (report writer, MACL, Help, Simulators, Utils, MXCS mode, Help,
    and few others).

-- removed following files in sqlci dir:
   CSInterface.h
   CharSetConstants.cpp
   CharSetConstants.h
   MsgCat.cpp
   MsgCat.h
   MxciEHCallBack.cpp
   MxciEHCallBack.h
   RWInterface.cpp
   RWInterface.h
   SqlciCSCmd.cpp
   SqlciCSCmd.h
   SqlciCSSimulator.cpp
   SqlciHelp.cpp
   SqlciRWCmd.cpp
   SqlciRWCmd.h
   SqlciRWSimulator.cpp
   SqlciUsage.cpp
   SqlciUtil.cpp
   SqlciUtil.h
   UtilInt.cpp
   UtilInt.h
   UtilMsg.cpp
   UtilMsg.h
   immudefs.cpp
   immudefs.h


Project: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/commit/62b45310
Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/tree/62b45310
Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/diff/62b45310

Branch: refs/heads/master
Commit: 62b45310c224be5c2e83de0ca5afbd7ad283166b
Parents: 331fbd2
Author: Anoop Sharma <an...@esgyn.com>
Authored: Sun Sep 17 23:09:11 2017 +0000
Committer: Anoop Sharma <an...@esgyn.com>
Committed: Sun Sep 17 23:09:11 2017 +0000

----------------------------------------------------------------------
 core/sql/arkcmp/CmpCommon.cpp              |  2 +-
 core/sql/arkcmp/ProcessEnv.cpp             |  2 +-
 core/sql/arkcmp/cmpargs.cpp                |  2 +-
 core/sql/bin/arkcmp.cpp                    |  5 ---
 core/sql/cli/Cli.h                         |  2 +-
 core/sql/cli/Descriptor.h                  |  6 +--
 core/sql/cli/Globals.h                     |  2 +-
 core/sql/cli/NoWaitOp.h                    |  2 +-
 core/sql/cli/QuasiFileManager.h            |  2 +-
 core/sql/cli/SQLCLIdev.h                   |  2 +-
 core/sql/cli/Statement.h                   |  4 +-
 core/sql/comexe/ExplainTuple.cpp           |  6 +--
 core/sql/comexe/PartInputDataDesc.cpp      | 39 -----------------
 core/sql/common/BaseTypes.h                |  9 +---
 core/sql/common/CharType.cpp               |  2 +-
 core/sql/common/CmpCommon.h                | 15 ++-----
 core/sql/common/Collections.h              |  8 +---
 core/sql/common/ComAnsiNamePart.h          |  4 --
 core/sql/common/ComObjectName.h            |  4 --
 core/sql/common/ComRoutineActionNamePart.h |  6 ---
 core/sql/common/ComRtUtils.h               |  2 -
 core/sql/common/ComSmallDefs.cpp           |  2 +-
 core/sql/common/ComSmallDefs.h             |  4 --
 core/sql/common/ComSpace.h                 |  5 ---
 core/sql/common/DgBaseType.cpp             |  2 +-
 core/sql/common/Ipc.h                      |  4 --
 core/sql/common/NAHeap.h                   |  4 --
 core/sql/common/NAMemory.h                 |  4 --
 core/sql/common/NAType.cpp                 |  2 +-
 core/sql/common/NumericType.cpp            |  2 +-
 core/sql/common/Platform.h                 |  6 ---
 core/sql/common/charinfo.cpp               |  4 --
 core/sql/common/dfs2rec.h                  |  2 -
 core/sql/common/purify.h                   | 36 ---------------
 core/sql/eh/EHJmpBufStack.cpp              |  2 +-
 core/sql/executor/ExHbaseAccess.h          | 13 ------
 core/sql/executor/ExHdfsScan.h             | 13 ------
 core/sql/executor/ExRsInfo.h               | 16 +++----
 core/sql/executor/MdamRefListEntry.h       |  2 +-
 core/sql/executor/dfs2fe.h                 |  3 +-
 core/sql/executor/ex_exe_stmt_globals.h    |  8 ++--
 core/sql/executor/ex_frag_rt.h             |  6 +--
 core/sql/executor/ex_root.cpp              |  2 +-
 core/sql/executor/ex_split_bottom.cpp      |  2 +-
 core/sql/exp/ExpConvMxcs.cpp               |  2 +-
 core/sql/exp/exp_comp.cpp                  | 24 ----------
 core/sql/exp/exp_fixup.cpp                 |  2 +-
 core/sql/exp/exp_function.cpp              |  2 +-
 core/sql/export/ComDiags.cpp               |  4 --
 core/sql/export/ComMemoryDiags.h           |  6 ---
 core/sql/export/HeapLog.cpp                |  5 ---
 core/sql/export/NABasicObject.cpp          |  5 ---
 core/sql/export/NABasicObject.h            | 29 -------------
 core/sql/export/NAStringDef.cpp            |  2 -
 core/sql/export/NAStringDef.h              |  2 -
 core/sql/generator/GenPreCode.cpp          |  4 +-
 core/sql/optimizer/ControlDB.h             |  4 --
 core/sql/optimizer/CostScalar.h            | 27 ++----------
 core/sql/optimizer/GroupAttr.cpp           |  4 +-
 core/sql/optimizer/NormItemExpr.cpp        |  2 +-
 core/sql/optimizer/NormRelExpr.cpp         |  2 -
 core/sql/optimizer/PhyProp.cpp             |  3 +-
 core/sql/optimizer/SearchKey.cpp           |  2 +-
 core/sql/optimizer/ValueDesc.cpp           |  2 +-
 core/sql/parser/ElemDDLNode.cpp            |  2 +-
 core/sql/parser/ElemDDLPartition.cpp       |  2 +-
 core/sql/parser/HvRoles_templ.cpp          |  2 +-
 core/sql/qms/QmpMain.cpp                   |  7 ---
 core/sql/sort/DiskPool_base.h              |  6 +--
 core/sql/sort/DiskPool_sq.h                |  2 +-
 core/sql/sort/SortAlgo.cpp                 |  2 +-
 core/sql/sort/diskpool_sq.cpp              |  2 +-
 core/sql/sqlci/ShellCmd.cpp                |  2 +-
 core/sql/sqlci/SqlciEnv.cpp                |  2 -
 core/sql/sqlci/SqlciList_templ.h           |  2 -
 core/sql/sqlci/SqlciParser.cpp             | 41 +++--------------
 core/sql/sqlci/SqlciStats.h                |  2 +-
 core/sql/sqlci/sqlci_lex.ll                | 58 -------------------------
 core/sql/sqlci/sqlci_yacc.y                |  6 ---
 core/sql/sqlcomp/CmpMain.cpp               | 28 ++----------
 core/sql/sqlcomp/parser.cpp                |  1 -
 core/sql/sqlmsg/ComDiagsMsg.cpp            |  2 +-
 core/sql/sqlmsg/ErrorMessage.h             |  1 -
 core/sql/sqlmsg/ParserMsg.cpp              |  2 -
 core/sql/ustat/hs_lex.ll                   |  4 +-
 core/sql/ustat/hs_update.cpp               |  2 +-
 86 files changed, 87 insertions(+), 494 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/62b45310/core/sql/arkcmp/CmpCommon.cpp
----------------------------------------------------------------------
diff --git a/core/sql/arkcmp/CmpCommon.cpp b/core/sql/arkcmp/CmpCommon.cpp
index c32d206..1077b75 100644
--- a/core/sql/arkcmp/CmpCommon.cpp
+++ b/core/sql/arkcmp/CmpCommon.cpp
@@ -38,7 +38,7 @@
  *****************************************************************************
  */
 
-#include <stdio.h>  // NT_PORT ( bd 10/24/96 ) define NULL
+#include <stdio.h> 
 #include <iostream>
 
 #include "Platform.h"

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/62b45310/core/sql/arkcmp/ProcessEnv.cpp
----------------------------------------------------------------------
diff --git a/core/sql/arkcmp/ProcessEnv.cpp b/core/sql/arkcmp/ProcessEnv.cpp
index 08149b9..39597e4 100644
--- a/core/sql/arkcmp/ProcessEnv.cpp
+++ b/core/sql/arkcmp/ProcessEnv.cpp
@@ -40,7 +40,7 @@
 
 
 
-#include "Platform.h"                           // NT_PORT SK 02/08/97
+#include "Platform.h"           
 #include "Collections.h"
 #include "ProcessEnv.h"
 #include "CmpCommon.h"

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/62b45310/core/sql/arkcmp/cmpargs.cpp
----------------------------------------------------------------------
diff --git a/core/sql/arkcmp/cmpargs.cpp b/core/sql/arkcmp/cmpargs.cpp
index 6ebfa91..0780021 100644
--- a/core/sql/arkcmp/cmpargs.cpp
+++ b/core/sql/arkcmp/cmpargs.cpp
@@ -33,7 +33,7 @@
 ******************************************************************************
 */
 
-#include "Platform.h"                                     // NT_PORT SK 02/08/97
+#include "Platform.h"   
 
 #include <ctype.h>
 #include <iostream>

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/62b45310/core/sql/bin/arkcmp.cpp
----------------------------------------------------------------------
diff --git a/core/sql/bin/arkcmp.cpp b/core/sql/bin/arkcmp.cpp
index 638ba55..251deef 100644
--- a/core/sql/bin/arkcmp.cpp
+++ b/core/sql/bin/arkcmp.cpp
@@ -291,11 +291,6 @@ Int32 main(Int32 argc, char **argv)
 
 	  exCmpMessage.clearAllObjects();
 	  exCmpMessage.receive();
-#ifdef NA_LINUX_SETENV
-	  //SQ_TBD
-	  putenv("SQLMX_MODULE_DIR=../sqlmx/USERMODULES/");
-	  putenv("SQLMX_SYSMODULE_DIR=../sqlmx/SYSTEMMODULES/");
-#endif
 	}
       // in most (probably all?) cases, an mxci-spawned mxcmp calls NAExit
       // in CmpConnection.cpp. So, everything below this line is probably

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/62b45310/core/sql/cli/Cli.h
----------------------------------------------------------------------
diff --git a/core/sql/cli/Cli.h b/core/sql/cli/Cli.h
index 0a1ca29..4784af1 100644
--- a/core/sql/cli/Cli.h
+++ b/core/sql/cli/Cli.h
@@ -45,7 +45,7 @@
 #include "SQLCLIdev.h"
 #include "ExpLOBexternal.h"
 #include "ComDiags.h"
-class CliStatement;
+class Statement;
 class CliGlobals;
 class ContextCli;
 class Descriptor;

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/62b45310/core/sql/cli/Descriptor.h
----------------------------------------------------------------------
diff --git a/core/sql/cli/Descriptor.h b/core/sql/cli/Descriptor.h
index b092069..5f27d0f 100644
--- a/core/sql/cli/Descriptor.h
+++ b/core/sql/cli/Descriptor.h
@@ -54,7 +54,7 @@
 
 class ContextCli;
 class Attributes;
-class CliStatement;
+class Statement;
 
 // -----------------------------------------------------------------------
 // BulkMoveInfo
@@ -387,7 +387,7 @@ class Descriptor : public ExGod {
   BulkMoveInfo *bmInfo_;
 
   // the statement for which bulk move was done from/to this descriptor.
-  CliStatement * bulkMoveStmt_;
+  Statement * bulkMoveStmt_;
 
   ContextCli *context_;        // the context that contains this descriptor
 
@@ -729,7 +729,7 @@ public:
     return ((rowwiseRowsetV2()) && (NOT rowwiseRowsetDisabled()));
   }
 
-  CliStatement* &bulkMoveStmt() { return bulkMoveStmt_; }
+  Statement* &bulkMoveStmt() { return bulkMoveStmt_; }
 
   NABoolean isDescTypeWide();
   void setDescTypeWide(NABoolean v)

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/62b45310/core/sql/cli/Globals.h
----------------------------------------------------------------------
diff --git a/core/sql/cli/Globals.h b/core/sql/cli/Globals.h
index 7687639..3afa185 100644
--- a/core/sql/cli/Globals.h
+++ b/core/sql/cli/Globals.h
@@ -72,7 +72,7 @@
 #include "ComRtUtils.h"
 #include "ComSmallDefs.h"
 class ContextCli;
-class CliStatement;  // $$$ possibly a stub for QuasiFileberManager
+class Statement;  // $$$ possibly a stub for QuasiFileberManager
 class ComDiagsArea; // $$$ possibly a stub for QuasiFileberManager
 class ExEspManager;
 class ExSsmpManager;

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/62b45310/core/sql/cli/NoWaitOp.h
----------------------------------------------------------------------
diff --git a/core/sql/cli/NoWaitOp.h b/core/sql/cli/NoWaitOp.h
index 3d218b5..9879d8e 100644
--- a/core/sql/cli/NoWaitOp.h
+++ b/core/sql/cli/NoWaitOp.h
@@ -40,7 +40,7 @@
 //#include "Statement.h"
 //#include "Descriptor.h"
 
-class CliStatement;
+class Statement;
 class Descriptor;
 class NoWaitOp;
 

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/62b45310/core/sql/cli/QuasiFileManager.h
----------------------------------------------------------------------
diff --git a/core/sql/cli/QuasiFileManager.h b/core/sql/cli/QuasiFileManager.h
index ea0a210..b30f2ee 100644
--- a/core/sql/cli/QuasiFileManager.h
+++ b/core/sql/cli/QuasiFileManager.h
@@ -39,7 +39,7 @@
 */
 #include "NoWaitOp.h"
 
-class CliStatement;
+class Statement;
 class IpcEnvironment;
 class ComDiagsArea;
 class HashQueue;

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/62b45310/core/sql/cli/SQLCLIdev.h
----------------------------------------------------------------------
diff --git a/core/sql/cli/SQLCLIdev.h b/core/sql/cli/SQLCLIdev.h
index 438b052..3dddf9e 100644
--- a/core/sql/cli/SQLCLIdev.h
+++ b/core/sql/cli/SQLCLIdev.h
@@ -44,7 +44,7 @@
 /*#include "ExpLOBexternal.h"*/
 
 class ComDiagsArea;
-class CliStatement;
+class Statement;
 class ComTdb;
 class ExStatisticsArea;
 

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/62b45310/core/sql/cli/Statement.h
----------------------------------------------------------------------
diff --git a/core/sql/cli/Statement.h b/core/sql/cli/Statement.h
index 30b5c3f..724d3e0 100644
--- a/core/sql/cli/Statement.h
+++ b/core/sql/cli/Statement.h
@@ -72,8 +72,7 @@ class ExRsInfo;
 class AQRStatementInfo;
 class StrTarget;
 
-class CliStatement;
-#define Statement CliStatement
+class Statement;
 
 ////////////////////////////////////////////////////////////////////////
 // this class stores statement information that is needed on each cli
@@ -413,7 +412,6 @@ private:
   void buildConsumerQueryTemplate();
 
   // returns true, if plan has been fixed up. 0, otherwise.
-  // NT_PORT ( bd 10/22/96 )
   inline short fixupState();
   inline void  setFixupState(short state);
   

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/62b45310/core/sql/comexe/ExplainTuple.cpp
----------------------------------------------------------------------
diff --git a/core/sql/comexe/ExplainTuple.cpp b/core/sql/comexe/ExplainTuple.cpp
index f1599ce..b7f0a06 100644
--- a/core/sql/comexe/ExplainTuple.cpp
+++ b/core/sql/comexe/ExplainTuple.cpp
@@ -517,7 +517,7 @@ void
 ExplainTupleMaster::setCardinality(double card)
 {
   
-  float fcard = (float) card;    // NT_PORT ( bd 10/22/96 ) cast to float
+  float fcard = (float) card; 
   
   setCol(EX_COL_CARD, &fcard, 0, 0);
 }
@@ -526,7 +526,7 @@ ExplainTupleMaster::setCardinality(double card)
 void
 ExplainTupleMaster::setOperatorCost(double opCost)
 {
-  float fopCost = (float) opCost; // NT_PORT ( bd 10/22/96 ) cast to float
+  float fopCost = (float) opCost;
   
   setCol(EX_COL_OPCOST, &fopCost, 0, 0);
 }
@@ -534,7 +534,7 @@ ExplainTupleMaster::setOperatorCost(double opCost)
 void
 ExplainTupleMaster::setTotalCost(double totCost)
 {
-  float ftotCost = (float) totCost;  // NT_PORT ( bd 10/22/96 ) cast to float
+  float ftotCost = (float) totCost; 
   
   setCol(EX_COL_TOTCOST, &ftotCost, 0, 0);
 }

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/62b45310/core/sql/comexe/PartInputDataDesc.cpp
----------------------------------------------------------------------
diff --git a/core/sql/comexe/PartInputDataDesc.cpp b/core/sql/comexe/PartInputDataDesc.cpp
index 894c42a..e48a1ae 100644
--- a/core/sql/comexe/PartInputDataDesc.cpp
+++ b/core/sql/comexe/PartInputDataDesc.cpp
@@ -484,14 +484,7 @@ char *ExPartInputDataDesc::findVTblPtr(short classID)
 
 void ExPartInputDataDesc::fixupVTblPtr()
 {
-#if defined( NA_MSVC )
   char * to_vtbl_ptr =  (char *) this;
-#else
-    // virtual function in NABasicObject, so layout of objects
-    // is changed, now -wlr-
-    //    (char *) this + sizeof(ExPartInputDataDesc) - sizeof(char *);;
-  char * to_vtbl_ptr = (char *) this + sizeof(NABasicObject) - sizeof(char *);;
-#endif
   char * from_vtbl_ptr;
 
   switch (partType_)
@@ -499,67 +492,35 @@ void ExPartInputDataDesc::fixupVTblPtr()
   case HASH_PARTITIONED:
     {
       ExHashPartInputData partInputDataDesc (NULL,1);
-#if defined( NA_MSVC )
       from_vtbl_ptr = (char *)&partInputDataDesc;
-#else
-      // virtual function in NABasicObject, so layout of objects
-      // is changed, now -wlr-
-      //      from_vtbl_ptr = (char *)&partInputDataDesc + sizeof(ExPartInputDataDesc) - sizeof(char *);
-      from_vtbl_ptr = (char *)&partInputDataDesc + sizeof(NABasicObject) - sizeof(char *);
-#endif
       str_cpy_all(to_vtbl_ptr, from_vtbl_ptr, sizeof(char *));
     }
     break;
   case RANGE_PARTITIONED:
     {
       ExRangePartInputData partInputDataDesc (NULL,0,0,0,0,NULL,0);
-#if defined( NA_MSVC )
       from_vtbl_ptr = (char *)&partInputDataDesc;
-#else
-      // virtual function in NABasicObject, so layout of objects
-      // is changed, now -wlr-
-      //      from_vtbl_ptr = (char *)&partInputDataDesc + sizeof(ExPartInputDataDesc) - sizeof(char *);
-      from_vtbl_ptr = (char *)&partInputDataDesc + sizeof(NABasicObject) - sizeof(char *);
-#endif
       str_cpy_all(to_vtbl_ptr, from_vtbl_ptr, sizeof(char *));
     }
     break;
   case ROUNDROBIN_PARTITIONED:
     {
       ExRoundRobinPartInputData partInputDataDesc (NULL,1,1);
-#if defined( NA_MSVC )
       from_vtbl_ptr = (char *)&partInputDataDesc;
-#else
-      from_vtbl_ptr = (char *)&partInputDataDesc + sizeof(NABasicObject) - sizeof(char *);
-#endif
       str_cpy_all(to_vtbl_ptr, from_vtbl_ptr, sizeof(char *));
     }
     break;
   case HASH1_PARTITIONED:
     {
       ExHashDistPartInputData partInputDataDesc (NULL,1,1);
-#if defined( NA_MSVC )
       from_vtbl_ptr = (char *)&partInputDataDesc;
-#else
-      // virtual function in NABasicObject, so layout of objects
-      // is changed, now -wlr-
-      //      from_vtbl_ptr = (char *)&partInputDataDesc + sizeof(ExPartInputDataDesc) - sizeof(char *);
-      from_vtbl_ptr = (char *)&partInputDataDesc + sizeof(NABasicObject) - sizeof(char *);
-#endif
       str_cpy_all(to_vtbl_ptr, from_vtbl_ptr, sizeof(char *));
     }
     break;
   case HASH2_PARTITIONED:
     {
       ExHash2PartInputData partInputDataDesc (NULL,1);
-#if defined( NA_MSVC )
       from_vtbl_ptr = (char *)&partInputDataDesc;
-#else
-      // virtual function in NABasicObject, so layout of objects
-      // is changed, now -wlr-
-      //      from_vtbl_ptr = (char *)&partInputDataDesc + sizeof(ExPartInputDataDesc) - sizeof(char *);
-      from_vtbl_ptr = (char *)&partInputDataDesc + sizeof(NABasicObject) - sizeof(char *);
-#endif
       str_cpy_all(to_vtbl_ptr, from_vtbl_ptr, sizeof(char *));
     }
     break;

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/62b45310/core/sql/common/BaseTypes.h
----------------------------------------------------------------------
diff --git a/core/sql/common/BaseTypes.h b/core/sql/common/BaseTypes.h
index 6bea280..15703bb 100644
--- a/core/sql/common/BaseTypes.h
+++ b/core/sql/common/BaseTypes.h
@@ -38,16 +38,11 @@
 #include "Platform.h"
 
 
-  #include <stdio.h>
-  #include <stdlib.h>
+#include <stdio.h>
+#include <stdlib.h>
 
-#ifdef NA_STD_NAMESPACE
 #include <iostream>
 using namespace std;
-#else
-  #include <iostream>
-#endif
-
 
 #include "NAAssert.h"
 #include "NAHeap.h"

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/62b45310/core/sql/common/CharType.cpp
----------------------------------------------------------------------
diff --git a/core/sql/common/CharType.cpp b/core/sql/common/CharType.cpp
index eaedfc1..2a56ecb 100644
--- a/core/sql/common/CharType.cpp
+++ b/core/sql/common/CharType.cpp
@@ -1164,7 +1164,7 @@ void CharType::generateTextThenSetDisplayDataType ( CharInfo::CharSet cs   // in
 //LCOV_EXCL_START :rfi
 void CharType::print(FILE *ofd, const char *indent)
 {
-#ifdef TRACING_ENABLED  // NT_PORT ( bd 8/4/96 )
+#ifdef TRACING_ENABLED 
   fprintf(ofd,"%s%s\n",indent,getTypeSQLname());
 #endif
 } // CharType::print()

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/62b45310/core/sql/common/CmpCommon.h
----------------------------------------------------------------------
diff --git a/core/sql/common/CmpCommon.h b/core/sql/common/CmpCommon.h
index 91716b9..74393ad 100644
--- a/core/sql/common/CmpCommon.h
+++ b/core/sql/common/CmpCommon.h
@@ -200,18 +200,11 @@ public:
 // request if possible.
 // Notice this *always* asserts something, even if NDEBUG is TRUE.
 //
-#ifdef NA_NO_CMPCONTEXT
-  // This is for the common code (e.g. parser) shared by sqlc and arkcmp:
-  // It won't put the internal error into Diags area, instead just print it.
-  #define CMPASSERT(b) \
-    { if (!(b)) NAAssert("" # b "", __FILE__, __LINE__); }
-#else  
-  #define CMPASSERT(b) \
-    { if (!(b)) CmpAssertInternal("" # b "", __FILE__, __LINE__); }
-#endif
+#define CMPASSERT(b)                                                    \
+  { if (!(b)) CmpAssertInternal("" # b "", __FILE__, __LINE__); }
 
-  #define CMPASSERT_STRING(b,str)	\
-    { if (!(b)) { cerr << str << endl; CMPASSERT(b); }}
+#define CMPASSERT_STRING(b,str)                         \
+  { if (!(b)) { cerr << str << endl; CMPASSERT(b); }}
 
 // The following DCMPASSERT is for supporting an assert mechanism for the
 // compiler that gets disabled in RELEASE (NDEBUG) code:

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/62b45310/core/sql/common/Collections.h
----------------------------------------------------------------------
diff --git a/core/sql/common/Collections.h b/core/sql/common/Collections.h
index acccd94..a317cfb 100644
--- a/core/sql/common/Collections.h
+++ b/core/sql/common/Collections.h
@@ -342,13 +342,7 @@ public:
 
   inline CollIndex getUsedLength() const {return usedLength_; }
 
-// The c89 compiler doesn't recognize the friend declaration above.
-// For now, make all methods public when using c89.
-
-#if !defined( NA_MSVC ) && !defined(NA_NO_FRIENDS_WITH_TEMPLATE_REFS)
-
-protected:                                                // NT_PORT SK 04/08/97
-#endif // ! NA_MSVC && ! NA_NO_FRIENDS_WITH_TEMPLATE_REFS
+  //protected:      
 
   // default constructor(empty collection)
   NACollection(CollIndex initLen = 0) : heap_(NULL)

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/62b45310/core/sql/common/ComAnsiNamePart.h
----------------------------------------------------------------------
diff --git a/core/sql/common/ComAnsiNamePart.h b/core/sql/common/ComAnsiNamePart.h
index a655908..7b64171 100644
--- a/core/sql/common/ComAnsiNamePart.h
+++ b/core/sql/common/ComAnsiNamePart.h
@@ -40,12 +40,8 @@
 
 #include "Platform.h"
 #include "NAWinNT.h"		// for wchar (tcr)
-#ifdef NA_STD_NAMESPACE
 #include <iosfwd>
 using namespace std;
-#else
-#include <iostream>
-#endif
 #include <string.h>
 #include "ComOperators.h"
 #include "ComSmallDefs.h"

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/62b45310/core/sql/common/ComObjectName.h
----------------------------------------------------------------------
diff --git a/core/sql/common/ComObjectName.h b/core/sql/common/ComObjectName.h
index 0b07a49..b18c4a9 100644
--- a/core/sql/common/ComObjectName.h
+++ b/core/sql/common/ComObjectName.h
@@ -47,12 +47,8 @@
  *****************************************************************************
  */
 
-#ifdef NA_STD_NAMESPACE
 #include <iosfwd>
 using namespace std;
-#else
-#include <iostream>
-#endif
 
 #include "NABoolean.h"
 #include "NAString.h"

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/62b45310/core/sql/common/ComRoutineActionNamePart.h
----------------------------------------------------------------------
diff --git a/core/sql/common/ComRoutineActionNamePart.h b/core/sql/common/ComRoutineActionNamePart.h
index 4c6134e..a6f6ebd 100644
--- a/core/sql/common/ComRoutineActionNamePart.h
+++ b/core/sql/common/ComRoutineActionNamePart.h
@@ -39,14 +39,8 @@
 
 #include "Platform.h"
 #include "NAWinNT.h"  // for wchar (tcr)
-#ifdef NA_STD_NAMESPACE
 #include <iosfwd>
 using namespace std;
-#else
-#pragma nowarn (1506) // warning elimination
-#include <iostream.h>
-#pragma warn (1506) // warning elimination
-#endif
 #include <string.h>
 #include "ComOperators.h"
 #include "ComSmallDefs.h"

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/62b45310/core/sql/common/ComRtUtils.h
----------------------------------------------------------------------
diff --git a/core/sql/common/ComRtUtils.h b/core/sql/common/ComRtUtils.h
index 3f7e4f7..94d309c 100644
--- a/core/sql/common/ComRtUtils.h
+++ b/core/sql/common/ComRtUtils.h
@@ -77,10 +77,8 @@ const char * ComRtGetNextInternalModName(Lng32 &index, char * modNameBuf);
 // Class to read an oss file by oss path name or Guardian File name
 // -----------------------------------------------------------------------
 
-#ifdef NA_STD_NAMESPACE
 #include <iosfwd>
 using namespace std;
-#endif
 
 class ModuleOSFile
 {

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/62b45310/core/sql/common/ComSmallDefs.cpp
----------------------------------------------------------------------
diff --git a/core/sql/common/ComSmallDefs.cpp b/core/sql/common/ComSmallDefs.cpp
index 7986305..3257ca8 100644
--- a/core/sql/common/ComSmallDefs.cpp
+++ b/core/sql/common/ComSmallDefs.cpp
@@ -135,7 +135,7 @@ ostream & operator << (ostream &s, const ComUID &uid)
   num = uid.data;
   while (num > 0)
   {
-    digit = (Int32) (num % 10);          // NT_PORT (10/17/96)
+    digit = (Int32) (num % 10);     
     num = num / 10;
 #pragma nowarn(1506)   // warning elimination
     buf[i--] = digit+'0';

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/62b45310/core/sql/common/ComSmallDefs.h
----------------------------------------------------------------------
diff --git a/core/sql/common/ComSmallDefs.h b/core/sql/common/ComSmallDefs.h
index ab07e6a..77914e9 100644
--- a/core/sql/common/ComSmallDefs.h
+++ b/core/sql/common/ComSmallDefs.h
@@ -40,12 +40,8 @@
  */
 
 
-#ifdef NA_STD_NAMESPACE
 #include <iosfwd>
 using namespace std;
-#else
-#include <iostream>
-#endif
 
 #include <stdio.h>
 #include "NAAssert.h"   // required after including a RogueWave file!

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/62b45310/core/sql/common/ComSpace.h
----------------------------------------------------------------------
diff --git a/core/sql/common/ComSpace.h b/core/sql/common/ComSpace.h
index 4965c70..91e624c 100644
--- a/core/sql/common/ComSpace.h
+++ b/core/sql/common/ComSpace.h
@@ -43,14 +43,9 @@
 #include <stddef.h>
 #include "CollHeap.h"
 
-
 class Block;
-#ifdef NA_STD_NAMESPACE
 #include <iosfwd>
 using namespace std;
-#else
-class ostream;
-#endif
 
 /////////////////////////////////////////////////////
 //

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/62b45310/core/sql/common/DgBaseType.cpp
----------------------------------------------------------------------
diff --git a/core/sql/common/DgBaseType.cpp b/core/sql/common/DgBaseType.cpp
index 795344e..f9a6225 100644
--- a/core/sql/common/DgBaseType.cpp
+++ b/core/sql/common/DgBaseType.cpp
@@ -316,6 +316,6 @@ ComDiagsArea& operator<<(ComDiagsArea& d, const DgBase & dgObj)
 
     } // end switch.
 
-	return d;  // NT_PORT ( bd 1/14/97 ) eliminate compiler warning
+  return d; 
 } // end operator <<.
 

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/62b45310/core/sql/common/Ipc.h
----------------------------------------------------------------------
diff --git a/core/sql/common/Ipc.h b/core/sql/common/Ipc.h
index 85680b4..329e386 100644
--- a/core/sql/common/Ipc.h
+++ b/core/sql/common/Ipc.h
@@ -3443,12 +3443,8 @@ private:
 // -----------------------------------------------------------------------
 // Default heap for IPC, using global operator new and delete
 // -----------------------------------------------------------------------
-#ifdef NA_STD_NAMESPACE
 #include <iosfwd>
 using namespace std;
-#else
-class ostream; // needed for decl below
-#endif
 
 // convenience function to make sure a diagnostics area is allocated
 void IpcAllocateDiagsArea(ComDiagsArea *&diags, CollHeap *diagsHeap);

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/62b45310/core/sql/common/NAHeap.h
----------------------------------------------------------------------
diff --git a/core/sql/common/NAHeap.h b/core/sql/common/NAHeap.h
index 6a38511..700ce9b 100644
--- a/core/sql/common/NAHeap.h
+++ b/core/sql/common/NAHeap.h
@@ -38,12 +38,8 @@
 
 #include "ComSpace.h"
 
-#ifdef NA_STD_NAMESPACE
 #include <iosfwd>
 using namespace std;
-#else
-class ostream;
-#endif
 
 // -----------------------------------------------------------------------
 // This file contains the memory management classes :

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/62b45310/core/sql/common/NAMemory.h
----------------------------------------------------------------------
diff --git a/core/sql/common/NAMemory.h b/core/sql/common/NAMemory.h
index a6f04c5..b66fa6b 100644
--- a/core/sql/common/NAMemory.h
+++ b/core/sql/common/NAMemory.h
@@ -64,12 +64,8 @@ template <class T> class NAList;
 #endif // _DEBUG
 
 #if (defined(_DEBUG) || defined(NSK_MEMDEBUG))
-#ifdef NA_STD_NAMESPACE
 #include <iosfwd>
 using namespace std;
-#else
-class ostream;
-#endif
 #endif // (defined(_DEBUG) || defined(NSK_MEMDEBUG))
 
 #include <unistd.h>

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/62b45310/core/sql/common/NAType.cpp
----------------------------------------------------------------------
diff --git a/core/sql/common/NAType.cpp b/core/sql/common/NAType.cpp
index 73595f4..b72cec2 100644
--- a/core/sql/common/NAType.cpp
+++ b/core/sql/common/NAType.cpp
@@ -400,7 +400,7 @@ NABoolean NAType::computeNextKeyValue(NAString &keyValue) const
 //LCOV_EXCL_START :
 void NAType::print(FILE* ofd, const char* indent)
 {
-#ifdef TRACING_ENABLED  // NT_PORT ( bd 8/4/96 )
+#ifdef TRACING_ENABLED 
   fprintf(ofd,"%s nominal size %d, total %d\n",
           indent,getNominalSize(),getTotalSize());
 #endif

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/62b45310/core/sql/common/NumericType.cpp
----------------------------------------------------------------------
diff --git a/core/sql/common/NumericType.cpp b/core/sql/common/NumericType.cpp
index 95612f3..e16cf57 100644
--- a/core/sql/common/NumericType.cpp
+++ b/core/sql/common/NumericType.cpp
@@ -802,7 +802,7 @@ NABoolean NumericType::createSQLLiteral(const char * buf,
 // -----------------------------------------------------------------------
 void NumericType::print(FILE* ofd, const char* indent)
 {
-#ifdef TRACING_ENABLED  // NT_PORT ( bd 8/4/96 )
+#ifdef TRACING_ENABLED 
   fprintf(ofd,"%s %s\n",indent,getTypeSQLname());
 #endif
 } // NumericType::print()

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/62b45310/core/sql/common/Platform.h
----------------------------------------------------------------------
diff --git a/core/sql/common/Platform.h b/core/sql/common/Platform.h
index 3b4933b..f648405 100644
--- a/core/sql/common/Platform.h
+++ b/core/sql/common/Platform.h
@@ -80,11 +80,6 @@
 
 
 /* -----------------------------------------------------------------------  */
-/* Turn on simulated FS labels feature usage for the catman.                */
-/* -----------------------------------------------------------------------  */
-#define NA_CATMAN_SIM_FS
-
-/* -----------------------------------------------------------------------  */
 /* Designate use of static or dynamic queries for Update Statistics.        */
 /* -----------------------------------------------------------------------  */
 #undef NA_USTAT_USE_STATIC
@@ -105,7 +100,6 @@
 /* -----------------------------------------------------------------------  */
 /* Designate if we're switched over to FLEX/BISON                           */
 /* -----------------------------------------------------------------------  */
-/* BBZ -- this flag is used in sqlci */
 #define NA_FLEXBUILD
 
 /* -----------------------------------------------------------------------  */

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/62b45310/core/sql/common/charinfo.cpp
----------------------------------------------------------------------
diff --git a/core/sql/common/charinfo.cpp b/core/sql/common/charinfo.cpp
index c26efe8..ff019f3 100644
--- a/core/sql/common/charinfo.cpp
+++ b/core/sql/common/charinfo.cpp
@@ -55,11 +55,7 @@
 #include "CmpContext.h"
 #include "CmpCommon.h"
 
-
-
-#ifdef NA_STD_NAMESPACE
 using namespace std;
-#endif
 
 //****************************************************************************
 // CHARSET stuff

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/62b45310/core/sql/common/dfs2rec.h
----------------------------------------------------------------------
diff --git a/core/sql/common/dfs2rec.h b/core/sql/common/dfs2rec.h
index 7136bd4..52d34dd 100644
--- a/core/sql/common/dfs2rec.h
+++ b/core/sql/common/dfs2rec.h
@@ -528,7 +528,6 @@ public:
       len_etc.datetime_.len = (unsigned short) len;
   };
 
-#ifdef NA_CATMAN_SIM
   Lng32 getBeginType()
   {
     if (type == REC_DATETIME)
@@ -556,7 +555,6 @@ public:
     if (type == REC_DATETIME)
       len_etc.datetime_.end_type = (unsigned short) etype;
   };
-#endif  // NA_CATMAN_SIM
 
   unsigned char flags;
   unsigned char type;

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/62b45310/core/sql/common/purify.h
----------------------------------------------------------------------
diff --git a/core/sql/common/purify.h b/core/sql/common/purify.h
deleted file mode 100644
index aa76325..0000000
--- a/core/sql/common/purify.h
+++ /dev/null
@@ -1,36 +0,0 @@
-// @@@ START COPYRIGHT @@@
-//
-// Licensed to the Apache Software Foundation (ASF) under one
-// or more contributor license agreements.  See the NOTICE file
-// distributed with this work for additional information
-// regarding copyright ownership.  The ASF licenses this file
-// to you under the Apache License, Version 2.0 (the
-// "License"); you may not use this file except in compliance
-// with the License.  You may obtain a copy of the License at
-//
-//   http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing,
-// software distributed under the License is distributed on an
-// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-// KIND, either express or implied.  See the License for the
-// specific language governing permissions and limitations
-// under the License.
-//
-// @@@ END COPYRIGHT @@@
-
-// -------------------------------------------------------------------------
-// This .h file will define Pure Software Inc.'s purify API 
-// (functions such as purify_watch)
-// if you have modified the appropriate makefile (common/makedefs.$TARGTYPE)
-// from:
-//	CPLUS= nice CC
-// to:
-//	CPLUS= purify CC -DPURIFY
-// -------------------------------------------------------------------------
-
-#ifdef PURIFY
-  // The path below works on SunOS Unix.
-  // Probably need some #ifdef's to set this path correctly for OSS and GDN.
-  #include "/usr/vendor/purify/purify.h"
-#endif

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/62b45310/core/sql/eh/EHJmpBufStack.cpp
----------------------------------------------------------------------
diff --git a/core/sql/eh/EHJmpBufStack.cpp b/core/sql/eh/EHJmpBufStack.cpp
index 40f6c0a..60afb67 100644
--- a/core/sql/eh/EHJmpBufStack.cpp
+++ b/core/sql/eh/EHJmpBufStack.cpp
@@ -33,7 +33,7 @@
 */
 
 
-#include <stdio.h>  // NT_PORT ( bd 10/22/96 ) NULL must be defined
+#include <stdio.h> 
 #include "EHCommonDefs.h"
 
 

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/62b45310/core/sql/executor/ExHbaseAccess.h
----------------------------------------------------------------------
diff --git a/core/sql/executor/ExHbaseAccess.h b/core/sql/executor/ExHbaseAccess.h
index 098d779..661fa5b 100644
--- a/core/sql/executor/ExHbaseAccess.h
+++ b/core/sql/executor/ExHbaseAccess.h
@@ -43,9 +43,6 @@
 // -----------------------------------------------------------------------
 class ExHbaseAccessTdb;
 class ExHbaseAccessTcb;
-#ifdef NEED_PSTATE
-class ExBlockingHbaseAccessPrivateState;
-#endif
 
 // -----------------------------------------------------------------------
 // Classes referenced in this file
@@ -109,9 +106,6 @@ private:
 
 class ExHbaseAccessTcb  : public ex_tcb
 {
-#ifdef NEED_PSTATE
-  friend class ExHbaseAccessPrivateState;
-#endif
   friend class ExHbaseTaskTcb;
   friend class ExHbaseScanTaskTcb;
   friend class ExHbaseScanRowwiseTaskTcb;
@@ -155,13 +149,6 @@ public:
       return NULL;
   }
 
-#ifdef NEED_PSTATE
-  // For dynamic queue resizing.
-  virtual ex_tcb_private_state * allocatePstates(
-       Lng32 &numElems,      // inout, desired/actual elements
-       Lng32 &pstateLength); // out, length of one element
-#endif
-
   // Overridden by ExHbaseAccessSelectTcb, for which sampling may be used.
   virtual Float32 getSamplePercentage() const
   {

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/62b45310/core/sql/executor/ExHdfsScan.h
----------------------------------------------------------------------
diff --git a/core/sql/executor/ExHdfsScan.h b/core/sql/executor/ExHdfsScan.h
index d9ab216..6a8baef 100644
--- a/core/sql/executor/ExHdfsScan.h
+++ b/core/sql/executor/ExHdfsScan.h
@@ -46,9 +46,6 @@
 // -----------------------------------------------------------------------
 class ExHdfsScanTdb;
 class ExHdfsScanTcb;
-#ifdef NEED_PSTATE
-class ExBlockingHdfsScanPrivateState;
-#endif
 
 // -----------------------------------------------------------------------
 // Classes referenced in this file
@@ -113,10 +110,6 @@ private:
 
 class ExHdfsScanTcb  : public ex_tcb
 {
-#ifdef NEED_PSTATE
-  friend class ExHdfsScanPrivateState;
-#endif
-
 public:
   ExHdfsScanTcb( const ComTdbHdfsScan &tdb,
                          ex_globals *glob );
@@ -150,12 +143,6 @@ public:
     else
       return NULL;
   }
-#ifdef NEED_PSTATE
-  // For dynamic queue resizing.
-  virtual ex_tcb_private_state * allocatePstates(
-       Lng32 &numElems,      // inout, desired/actual elements
-       Lng32 &pstateLength); // out, length of one element
-#endif
 
 protected:
   enum {

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/62b45310/core/sql/executor/ExRsInfo.h
----------------------------------------------------------------------
diff --git a/core/sql/executor/ExRsInfo.h b/core/sql/executor/ExRsInfo.h
index 5231184..f837af3 100644
--- a/core/sql/executor/ExRsInfo.h
+++ b/core/sql/executor/ExRsInfo.h
@@ -47,7 +47,7 @@ class ExRsInfo;
 // Forward declarations
 class NAMemory;
 class ExUdrServer;
-class CliStatement;
+class Statement;
 class ExExeStmtGlobals;
 class UdrClientControlStream;
 
@@ -73,21 +73,21 @@ private:
   virtual ~RsInfo();
 
   //Accessors
-  CliStatement * getStatement() const {return statement_;} 
+  Statement * getStatement() const {return statement_;} 
   NABoolean getOpenAttempted() const {return openAttempted_;} 
   NABoolean getCloseAttempted() const {return closeAttempted_;} 
   NABoolean isPrepared() const {return prepared_;}
   char * getProxySyntax() const { return proxySyntax_;} 
   
   //Mutators
-  void setStatement(CliStatement *statement) {statement_ = statement;}
+  void setStatement(Statement *statement) {statement_ = statement;}
   void setOpenAttempted(NABoolean flag) {openAttempted_ = flag;}
   void setCloseAttempted(NABoolean flag) {closeAttempted_ = flag;}
   void setPrepared(NABoolean flag) {prepared_ = flag;}
   void setProxySyntax(char *proxySyntax) {proxySyntax_ = proxySyntax;}  
 
   //Class data members
-  CliStatement *statement_;
+  Statement *statement_;
   NABoolean openAttempted_;
   NABoolean closeAttempted_;
   NABoolean prepared_;
@@ -109,8 +109,8 @@ public:
   void populate(ULng32 index,   
                 const char * proxySyntax);   
   void bind(ULng32 index,       
-            CliStatement * statement);   
-  void unbind(CliStatement *statement);   
+            Statement * statement);   
+  void unbind(Statement *statement);   
   void setOpenAttempted(ULng32 index);  
   void setCloseAttempted(ULng32 index);  
   void setPrepared(ULng32 index); 
@@ -120,13 +120,13 @@ public:
   NABoolean closeAttempted(ULng32 index) const;
   NABoolean isPrepared(ULng32 index) const;
   NABoolean getRsInfo(ULng32 position,    // IN
-                      CliStatement *&statement,     // OUT
+                      Statement *&statement,     // OUT
                       const char *&proxySyntax,  // OUT
                       NABoolean &openAttempted,  // OUT
                       NABoolean &closeAttempted, // OUT
                       NABoolean &isPrepared)     // OUT
     const;
-  ULng32 getIndex(CliStatement * statement) const;
+  ULng32 getIndex(Statement * statement) const;
 
   ExUdrServer * getUdrServer() const {return udrServer_;}
   const IpcProcessId & getIpcProcessId() const {return ipcProcessId_;} 

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/62b45310/core/sql/executor/MdamRefListEntry.h
----------------------------------------------------------------------
diff --git a/core/sql/executor/MdamRefListEntry.h b/core/sql/executor/MdamRefListEntry.h
index 1841af6..fc43464 100644
--- a/core/sql/executor/MdamRefListEntry.h
+++ b/core/sql/executor/MdamRefListEntry.h
@@ -55,7 +55,7 @@ class MdamRefListEntry
     // nextEntryPtr_ is set to point to the newly-created node to begin a
     // circularly-linked list.
     MdamRefListEntry(const Int32 disjunctNum)
-       :  disjunctNum_(disjunctNum)  /* NT_PORT , nextEntryPtr_(this) */
+       :  disjunctNum_(disjunctNum) 
     {
 	    nextEntryPtr_ = this;
     }

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/62b45310/core/sql/executor/dfs2fe.h
----------------------------------------------------------------------
diff --git a/core/sql/executor/dfs2fe.h b/core/sql/executor/dfs2fe.h
index 075f74e..055a4de 100644
--- a/core/sql/executor/dfs2fe.h
+++ b/core/sql/executor/dfs2fe.h
@@ -21,9 +21,8 @@
 #ifndef __DFS2FE__
 #define __DFS2FE__
 
-#include "Platform.h"                                     // NT_PORT SK 02/10/97
+#include "Platform.h"
 
-// NT Port - vs 01/22/97
 #define dfs2fe_base		20000
 
 enum ExeDfs2feEnum

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/62b45310/core/sql/executor/ex_exe_stmt_globals.h
----------------------------------------------------------------------
diff --git a/core/sql/executor/ex_exe_stmt_globals.h b/core/sql/executor/ex_exe_stmt_globals.h
index c007b73..bd46988 100644
--- a/core/sql/executor/ex_exe_stmt_globals.h
+++ b/core/sql/executor/ex_exe_stmt_globals.h
@@ -147,7 +147,7 @@ class MemoryMonitor;
 class ExMsgResourceInfo;
 class ExScratchFileOptions;
 class ComTdbRoot;
-class CliStatement;
+class Statement;
 class ExUdrServer;
 class ExRsInfo;
 class ex_send_top_tcb;
@@ -468,7 +468,7 @@ public:
 
   ExMasterStmtGlobals(short num_temps,
 		      CliGlobals *cliGlobals,
-                      CliStatement *statement,
+                      Statement *statement,
 		      short create_gui_sched = 0,
 		      Space * space = NULL,
 		      CollHeap * heap = NULL);
@@ -528,7 +528,7 @@ public:
   Int64 getRowsAffected() const           {return rowsAffected_;}
   void setRowsAffected(Int64 newRows)             {rowsAffected_ = newRows;}
 
-  inline CliStatement *getStatement()                 { return statement_; }
+  inline Statement *getStatement()                 { return statement_; }
 
   // For asynchronous CLI cancel.
   inline CancelState getCancelState() const           {return cancelState_;}
@@ -601,7 +601,7 @@ private:
   ExRtFragTable *fragTable_;
 
   // Current statement
-  CliStatement *statement_;
+  Statement *statement_;
 
   // rows affected during the execution of this statement.
   // Applies to rows updated/deleted/inserted ONLY.

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/62b45310/core/sql/executor/ex_frag_rt.h
----------------------------------------------------------------------
diff --git a/core/sql/executor/ex_frag_rt.h b/core/sql/executor/ex_frag_rt.h
index 00400ac..e218c31 100644
--- a/core/sql/executor/ex_frag_rt.h
+++ b/core/sql/executor/ex_frag_rt.h
@@ -513,7 +513,7 @@ class ExEspManager
 	 ComDiagsArea **diags,
 	 LIST(ExEspDbEntry *) &alreadyAssignedEsps,
 	 CollHeap *statementHeap,
-         CliStatement *statement,
+         Statement *statement,
 	 const char * clusterName,
 	 NABoolean &startedANewEsp, // returns TRUE, if a new esp was started
 	 IpcCpuNum cpuNum,
@@ -555,7 +555,7 @@ class ExEspManager
   private:
     ExEspDbEntry *getEspFromCache(LIST(ExEspDbEntry *) &alreadyAssignedEsps, // multi fragment esp
                                   CollHeap *statementHeap,
-				  CliStatement *statement,
+				  Statement *statement,
                                   const char *clusterName,
                                   IpcCpuNum cpuNum,
                                   short memoryQuota,
@@ -657,7 +657,7 @@ class ExEspDbEntry : public NABasicObject
   bool           inUse_;
   short          totalMemoryQuota_;
   Lng32           usageCount_;   // how many fragment instances use this process - multi-fragment
-  CliStatement      *statement_;   // Allow multiple fragments for just this statement
+  Statement      *statement_;   // Allow multiple fragments for just this statement
   bool           soloFragment_;
 };
 

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/62b45310/core/sql/executor/ex_root.cpp
----------------------------------------------------------------------
diff --git a/core/sql/executor/ex_root.cpp b/core/sql/executor/ex_root.cpp
index 0ffb4be..145f220 100644
--- a/core/sql/executor/ex_root.cpp
+++ b/core/sql/executor/ex_root.cpp
@@ -2383,7 +2383,7 @@ Int32 ex_root_tcb::cancel(ExExeStmtGlobals * glob, ComDiagsArea *&diagsArea,
               // diags area. It would be nice to have a more general
               // fix, but meanwhile, we store off the curr context diags 
               // area before calling scheduler and restore afterwards.
-              CliStatement *statement = 
+              Statement *statement = 
                 glob->castToExMasterStmtGlobals()->getStatement();
               ContextCli *context = statement->getContext();
               ComDiagsArea *savedContextDiags = context->diags().copy();

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/62b45310/core/sql/executor/ex_split_bottom.cpp
----------------------------------------------------------------------
diff --git a/core/sql/executor/ex_split_bottom.cpp b/core/sql/executor/ex_split_bottom.cpp
index 5e35cc9..b53b91c 100644
--- a/core/sql/executor/ex_split_bottom.cpp
+++ b/core/sql/executor/ex_split_bottom.cpp
@@ -1698,7 +1698,7 @@ const ex_tcb* ex_split_bottom_tcb::getChild(Int32 pos) const
   ex_assert((pos >= 0), "");
   if (pos == 0)
     return tcbChild_;
-  else if (pos > 0 AND pos <= (Int32)sendNodes_.entries())  // NT_PORT ( bd 12/6/96 )
+  else if (pos > 0 AND pos <= (Int32)sendNodes_.entries())
     return (ex_tcb *) sendNodes_[pos-1];
   else
     return NULL;

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/62b45310/core/sql/exp/ExpConvMxcs.cpp
----------------------------------------------------------------------
diff --git a/core/sql/exp/ExpConvMxcs.cpp b/core/sql/exp/ExpConvMxcs.cpp
index 64dc58a..c116550 100644
--- a/core/sql/exp/ExpConvMxcs.cpp
+++ b/core/sql/exp/ExpConvMxcs.cpp
@@ -109,7 +109,7 @@
 
 #endif
 
-#if defined (NA_LITTLE_ENDIAN) || defined(NA_MXCS)                            // NT_PORT SK 08/13/96
+#if defined (NA_LITTLE_ENDIAN) || defined(NA_MXCS)
 #ifndef LLONG_MAX
 #define LLONG_MAX _I64_MAX
 #endif

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/62b45310/core/sql/exp/exp_comp.cpp
----------------------------------------------------------------------
diff --git a/core/sql/exp/exp_comp.cpp b/core/sql/exp/exp_comp.cpp
index d6bd42a..90fc7f8 100644
--- a/core/sql/exp/exp_comp.cpp
+++ b/core/sql/exp/exp_comp.cpp
@@ -211,7 +211,6 @@ ex_expr::exp_return_type ex_comp_clause::eval(char *op_data[],
       break;
       // LCOV_EXCL_START
     case EQ_BIN16S_BIN32U:
-      // NT_PORT (BD 7/11/96) cast to unsigned long
       *(Lng32 *)op_data[0] = ((ULng32)*(short *)op_data[1] == *(ULng32 *)op_data[2]);
       break;
   
@@ -249,19 +248,16 @@ ex_expr::exp_return_type ex_comp_clause::eval(char *op_data[],
       break;
   
     case EQ_BIN32S_BIN32U:
-      // NT_PORT (BD 7/11/96) cast to unsigned long
        *(Lng32 *)op_data[0] = ((ULng32)*(Lng32 *)op_data[1] == *(ULng32 *)op_data[2]);
       break;
   
   
   
     case EQ_BIN32U_BIN16S:
-      // NT_PORT (BD 7/11/96) cast to unsigned long
       *(Lng32 *)op_data[0] = (*(ULng32 *)op_data[1] == (ULng32)*(short *)op_data[2]);
       break;
       
     case EQ_BIN32U_BIN32S:
-      // NT_PORT (BD 7/11/96) cast to unsigned long
       *(Lng32 *)op_data[0] = (*(ULng32 *)op_data[1] == (ULng32)*(Lng32 *)op_data[2]);
       break;
       
@@ -349,7 +345,6 @@ ex_expr::exp_return_type ex_comp_clause::eval(char *op_data[],
       break;
   
     case NE_BIN16S_BIN32U:
-      // NT_PORT (BD 7/11/96) cast to unsigned long
       *(Lng32 *)op_data[0] = ((ULng32)*(short *)op_data[1] != *(ULng32 *)op_data[2]);
       break;
   
@@ -387,19 +382,16 @@ ex_expr::exp_return_type ex_comp_clause::eval(char *op_data[],
       break;
   
     case NE_BIN32S_BIN32U:
-      // NT_PORT (BD 7/11/96) cast to unsigned long
       *(Lng32 *)op_data[0] = ((ULng32)*(Lng32 *)op_data[1] != *(ULng32 *)op_data[2]);
       break;
   
   
   
     case NE_BIN32U_BIN16S:
-      // NT_PORT (BD 7/11/96) cast to unsigned long
       *(Lng32 *)op_data[0] = (*(ULng32 *)op_data[1] != (ULng32)*(short *)op_data[2]);
       break;
   
     case NE_BIN32U_BIN32S:
-      // NT_PORT (BD 7/11/96) cast to unsigned long
       *(Lng32 *)op_data[0] = (*(ULng32 *)op_data[1] != (ULng32)*(Lng32 *)op_data[2]);
       break;
   
@@ -488,7 +480,6 @@ ex_expr::exp_return_type ex_comp_clause::eval(char *op_data[],
       break;
   
     case LT_BIN16S_BIN32U:
-      // NT_PORT (BD 7/11/96) cast to long in order to handle negative values
       *(Lng32 *)op_data[0] = ((Int64)*(short *)op_data[1] < (Int64)*(ULng32 *)op_data[2]);
       break;
   
@@ -527,19 +518,16 @@ ex_expr::exp_return_type ex_comp_clause::eval(char *op_data[],
       break;
   
     case LT_BIN32S_BIN32U:
-      // NT_PORT (BD 7/11/96) cast to long
       *(Lng32 *)op_data[0] = ((Int64)*(Lng32 *)op_data[1] < (Int64)*(ULng32 *)op_data[2]);
       break;
       // LCOV_EXCL_STOP
   
   
     case LT_BIN32U_BIN16S:
-      // NT_PORT (BD 7/11/96) cast to long in order to handle negative values
       *(Lng32 *)op_data[0] = ((Int64)*(ULng32 *)op_data[1] < *(short *)op_data[2]);
       break;
       
     case LT_BIN32U_BIN32S:
-      // NT_PORT (BD 7/11/96) cast to long
       *(Lng32 *)op_data[0] = ((Int64)*(ULng32 *)op_data[1] < (Int64)*(Lng32 *)op_data[2]);
       break;
       
@@ -671,7 +659,6 @@ ex_expr::exp_return_type ex_comp_clause::eval(char *op_data[],
       break;
   
     case LE_BIN16S_BIN32U:
-      // NT_PORT (BD 7/11/96) cast to long in order to handle negative values
       *(Lng32 *)op_data[0] = (*(short *)op_data[1] <= (Int64)*(ULng32 *)op_data[2]);
       break;
   
@@ -712,19 +699,16 @@ ex_expr::exp_return_type ex_comp_clause::eval(char *op_data[],
       break;
   
     case LE_BIN32S_BIN32U:
-      // NT_PORT (BD 7/11/96) cast to long
       *(Lng32 *)op_data[0] = ((Int64)*(Lng32 *)op_data[1] <= (Int64)*(ULng32 *)op_data[2]);
       break;
       // LCOV_EXCL_STOP
   
   
     case LE_BIN32U_BIN16S:
-      // NT_PORT (BD 7/11/96) cast to long in order to handle negative values
       *(Lng32 *)op_data[0] = ((Int64)*(ULng32 *)op_data[1] <= *(short *)op_data[2]);
       break;
       
     case LE_BIN32U_BIN32S:
-      // NT_PORT (BD 7/11/96) cast to unsigned long
       *(Lng32 *)op_data[0] = ((Int64)*(ULng32 *)op_data[1] <= (Int64)*(Lng32 *)op_data[2]);
       break;
       
@@ -860,7 +844,6 @@ ex_expr::exp_return_type ex_comp_clause::eval(char *op_data[],
       break;
   
     case GT_BIN16S_BIN32U:
-      // NT_PORT (BD 7/11/96) cast to long in order to handle negative values
       *(Lng32 *)op_data[0] = (*(short *)op_data[1] > (Int64)*(ULng32 *)op_data[2]);
       break;
   
@@ -899,19 +882,16 @@ ex_expr::exp_return_type ex_comp_clause::eval(char *op_data[],
       break;
   
     case GT_BIN32S_BIN32U:
-      // NT_PORT (BD 7/11/96) cast to long
       *(Lng32 *)op_data[0] = ((Int64)*(Lng32 *)op_data[1] > (Int64)*(ULng32 *)op_data[2]);
       break;
       // LCOV_EXCL_STOP
   
   
     case GT_BIN32U_BIN16S:
-      // NT_PORT (BD 7/11/96) cast to long in order to handle negative values
       *(Lng32 *)op_data[0] = ((Int64)*(ULng32 *)op_data[1] > *(short *)op_data[2]);
       break;
       
     case GT_BIN32U_BIN32S:
-      // NT_PORT (BD 7/11/96) cast to long
       *(Lng32 *)op_data[0] = ((Int64)*(ULng32 *)op_data[1] > (Int64)*(Lng32 *)op_data[2]);
       break;
       
@@ -1047,7 +1027,6 @@ ex_expr::exp_return_type ex_comp_clause::eval(char *op_data[],
   
       // LCOV_EXCL_STOP
     case GE_BIN16S_BIN32U:
-      // NT_PORT (BD 7/11/96) cast to long
       *(Lng32 *)op_data[0] = (*(short *)op_data[1] >= (Int64)*(ULng32 *)op_data[2]);
       break;
    
@@ -1084,19 +1063,16 @@ ex_expr::exp_return_type ex_comp_clause::eval(char *op_data[],
       break;
   
     case GE_BIN32S_BIN32U:
-      // NT_PORT (BD 7/11/96) cast to long
       *(Lng32 *)op_data[0] = ((Int64)*(Lng32 *)op_data[1] >= (Int64)*(ULng32 *)op_data[2]);
       break;
   
   
   
     case GE_BIN32U_BIN16S:
-      // NT_PORT (BD 7/11/96) cast to long in order to handle negative values
       *(Lng32 *)op_data[0] = ((Int64)*(ULng32 *)op_data[1] >= *(short *)op_data[2]);
       break;
       
     case GE_BIN32U_BIN32S:
-      // NT_PORT (BD 7/11/96) cast to long
       *(Lng32 *)op_data[0] = ((Int64)*(ULng32 *)op_data[1] >= (Int64)*(Lng32 *)op_data[2]);
       break;
       

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/62b45310/core/sql/exp/exp_fixup.cpp
----------------------------------------------------------------------
diff --git a/core/sql/exp/exp_fixup.cpp b/core/sql/exp/exp_fixup.cpp
index 7cb9330..756612e 100644
--- a/core/sql/exp/exp_fixup.cpp
+++ b/core/sql/exp/exp_fixup.cpp
@@ -36,7 +36,7 @@
  *****************************************************************************
  */
 
-#include "Platform.h"                                     // NT_PORT SK 02/10/97
+#include "Platform.h" 
 
 
 #include "exp_stdh.h"

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/62b45310/core/sql/exp/exp_function.cpp
----------------------------------------------------------------------
diff --git a/core/sql/exp/exp_function.cpp b/core/sql/exp/exp_function.cpp
index 9b9a407..782131e 100644
--- a/core/sql/exp/exp_function.cpp
+++ b/core/sql/exp/exp_function.cpp
@@ -2803,7 +2803,7 @@ ex_expr::exp_return_type ex_function_dayofweek::eval(char *op_data[],
   day = *datetimeOpData;
   interval = datetimeOpType->getTotalDays(year, month, day);
 #pragma nowarn(1506)   // warning elimination 
-  unsigned short result = (unsigned short)((interval + 1) % 7) + 1;  // NT_PORT ( bd 12/9/96 ) cast to unsigned short
+  unsigned short result = (unsigned short)((interval + 1) % 7) + 1;
 #pragma warn(1506)  // warning elimination 
   str_cpy_all(op_data[0], (char *) &result, sizeof(result));
   return ex_expr::EXPR_OK;

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/62b45310/core/sql/export/ComDiags.cpp
----------------------------------------------------------------------
diff --git a/core/sql/export/ComDiags.cpp b/core/sql/export/ComDiags.cpp
index 41dab6f..f99bacd 100644
--- a/core/sql/export/ComDiags.cpp
+++ b/core/sql/export/ComDiags.cpp
@@ -3381,11 +3381,7 @@ void ComDiagsArea::destroyMe()
 
 void ComDiagsArea::DiagsCondition::destroyMe()
 {
-#ifdef NA_MSVC                              // NT_PORT (bsv 11/7/96)
   this -> DiagsCondition::~DiagsCondition();
-#else
-  this -> ComDiagsArea::DiagsCondition::~DiagsCondition();
-#endif
 }
 
 ComDiagsArea::DiagsCondition &

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/62b45310/core/sql/export/ComMemoryDiags.h
----------------------------------------------------------------------
diff --git a/core/sql/export/ComMemoryDiags.h b/core/sql/export/ComMemoryDiags.h
index ef8b59b..b20b244 100644
--- a/core/sql/export/ComMemoryDiags.h
+++ b/core/sql/export/ComMemoryDiags.h
@@ -42,14 +42,8 @@
 // -----------------------------------------------------------------------
 class ComMemoryDiags;   // used to diagnose memory leaks
 
-
-#ifdef NA_STD_NAMESPACE
 #include <iosfwd>
 using namespace std;
-#else
-class ostream ; // forward decl 
-#endif
-
 
 //
 // class ComMemoryDiags is simply a wrapper around the static data member

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/62b45310/core/sql/export/HeapLog.cpp
----------------------------------------------------------------------
diff --git a/core/sql/export/HeapLog.cpp b/core/sql/export/HeapLog.cpp
index 4a85299..902da3c 100644
--- a/core/sql/export/HeapLog.cpp
+++ b/core/sql/export/HeapLog.cpp
@@ -45,12 +45,7 @@
 #include "HeapLog.h"
 #include "HeapLogImpl.h"
 
-
-#ifdef NA_STD_NAMESPACE
 using namespace std;
-#endif
-
-
 
 #define HEAP_NUM_BASE         19
 #define HEAP_NUM_RESERVED      9

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/62b45310/core/sql/export/NABasicObject.cpp
----------------------------------------------------------------------
diff --git a/core/sql/export/NABasicObject.cpp b/core/sql/export/NABasicObject.cpp
index d04e70f..113ade2 100644
--- a/core/sql/export/NABasicObject.cpp
+++ b/core/sql/export/NABasicObject.cpp
@@ -36,13 +36,8 @@
 
 #include "Platform.h"
 
-
-#ifdef NA_STD_NAMESPACE
 #include <iosfwd>
 using namespace std;
-#else
-#include <iostream>
-#endif
 #include <stdlib.h>
 
 #include "ComASSERT.h"

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/62b45310/core/sql/export/NABasicObject.h
----------------------------------------------------------------------
diff --git a/core/sql/export/NABasicObject.h b/core/sql/export/NABasicObject.h
index d20c192..0af4129 100644
--- a/core/sql/export/NABasicObject.h
+++ b/core/sql/export/NABasicObject.h
@@ -43,14 +43,6 @@
 #include "NAStdlib.h"
 #include "NABoolean.h"
 
-#ifndef NULL
-#define NULL 0
-#endif
-
-
-
-
-
 #define NOT_CHECK_NAHEAP(h) (h)
 
 class NAMemory ;
@@ -148,7 +140,6 @@ typedef NAMemory CollHeap ;
 class NABasicObject
 {
 
-// NT_PORT ( bd 12/10/96 )
 protected:
  virtual ~NABasicObject() {};
 
@@ -220,7 +211,6 @@ public:
   Int32 maybeInvalidObject()	       { return h_ == invalidHeapPtr();}
 
   // For smart-pointer callers, some defensive programming for Debug build.
-  // For some reason, this method won't link into the NSK mxcmp static object.
 #if !defined(NDEBUG)
     Int32 checkInvalidObject(const void* const referencingObject=NULL);
 #else
@@ -295,24 +285,12 @@ void * operator new[](size_t size, CollHeap* h, NABoolean failureIsFatal);
 // char* p = new (CmpCommon::contextHeap()) char[10];
 // NADELETEBASIC(p,CmpCommon::contextHeap());
 
-#ifdef USE_RUNTIME_BUT_NOT_FOR_UNIX
-#define NADELETEBASIC(p,h) \
-  (void) (!(p) || \
-  	 (((h) ? (h)->deallocateMemory((void*)p) : (delete (void*)p)), 0) )
-#define NADELETEBASICARRAY(p,h) \
-  (void) (!(p) || \
-        (((h) ? (h)->deallocateMemory((void*)p) : delete [] p), 0))
-#else
 #define NADELETEBASIC(p,h) \
   (void) (!(p) || \
   	 ((NOT_CHECK_NAHEAP(h) ? (h)->deallocateMemory((void*)p) : delete p), 0) )
 #define NADELETEBASICARRAY(p,h) \
   (void) (!(p) || \
         ((NOT_CHECK_NAHEAP(h) ? (h)->deallocateMemory((void*)p) : delete [] p), 0))
-#endif
-
-
-
 
 // NADELETE(p,C,h) deletes p from CollHeap h, and calls p's destructor ~C.
 // so the destructor of class C will be called.
@@ -320,17 +298,10 @@ void * operator new[](size_t size, CollHeap* h, NABoolean failureIsFatal);
 // ClassA* a = new(CmpCommon::contextHeap()) ClassA;
 // NADELETE(a,ClassA,CmpCommon::contextHeap());
 
-#ifdef USE_RUNTIME_BUT_NOT_FOR_UNIX
-#define NADELETE(p,C,h)  \
-  (void) (!(p) || \
-  	 (((h) ? ((p)->~C(), (h)->deallocateMemory((void*)p)) : \
-	 	 (delete (void*)p)), 0))
-#else
 #define NADELETE(p,C,h)  \
   (void) (!(p) || \
   	 ((NOT_CHECK_NAHEAP(h) ? ((p)->~C(), (h)->deallocateMemory((void*)p)) : \
 	 	 delete p), 0))
-#endif
 
 // NADELETEARRAY(p,n,C,h) deletes p from CollHeap h, p is an array of class C
 // so the destructor of C will be called for each element of p (if not NULL).

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/62b45310/core/sql/export/NAStringDef.cpp
----------------------------------------------------------------------
diff --git a/core/sql/export/NAStringDef.cpp b/core/sql/export/NAStringDef.cpp
index 7b11d06..099b51d 100644
--- a/core/sql/export/NAStringDef.cpp
+++ b/core/sql/export/NAStringDef.cpp
@@ -55,9 +55,7 @@
 
 #include "str.h"
 #include <fstream>
-#ifdef NA_STD_NAMESPACE
 using namespace std;
-#endif // NA_STD_NAMESPACE
 
 // we're using the multithread-safe versions here
 #define MULTITHREAD_LOCK

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/62b45310/core/sql/export/NAStringDef.h
----------------------------------------------------------------------
diff --git a/core/sql/export/NAStringDef.h b/core/sql/export/NAStringDef.h
index fe1f44d..76e9027 100644
--- a/core/sql/export/NAStringDef.h
+++ b/core/sql/export/NAStringDef.h
@@ -42,10 +42,8 @@
 
 #include "Platform.h"
 
-#ifdef NA_STD_NAMESPACE
 #include <iosfwd>
 using namespace std;
-#endif 
 
 // -----------------------------------------------------------------------
 //

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/62b45310/core/sql/generator/GenPreCode.cpp
----------------------------------------------------------------------
diff --git a/core/sql/generator/GenPreCode.cpp b/core/sql/generator/GenPreCode.cpp
index 84edc29..95fff08 100644
--- a/core/sql/generator/GenPreCode.cpp
+++ b/core/sql/generator/GenPreCode.cpp
@@ -2312,7 +2312,7 @@ RelExpr * Join::preCodeGen(Generator * generator,
 
       ValueIdSet discardSet;
       CollIndex ne = nullInstantiatedOutput().entries();
-      for (CollIndex j = 0; j < ne; j++)              // NT_PORT FIX SK 07/16/96
+      for (CollIndex j = 0; j < ne; j++) 
 	{
 	  instNullId = nullInstantiatedOutput_[j];
 	  GenAssert(instNullId.getItemExpr()->getOperatorType() == ITM_INSTANTIATE_NULL,"NOT instNullId.getItemExpr()->getOperatorType() == ITM_INSTANTIATE_NULL");
@@ -2356,7 +2356,7 @@ RelExpr * Join::preCodeGen(Generator * generator,
       availableValues += child(1)->getGroupAttr()->getCharacteristicOutputs();
 
       CollIndex neR = nullInstantiatedForRightJoinOutput().entries();
-      for (CollIndex j = 0; j < neR; j++)              // NT_PORT FIX SK 07/16/96
+      for (CollIndex j = 0; j < neR; j++) 
 	{
 	  instNullIdForRightJoin = nullInstantiatedForRightJoinOutput_[j];
 	  GenAssert(instNullIdForRightJoin.getItemExpr()->getOperatorType() == ITM_INSTANTIATE_NULL,"NOT instNullId.getItemExpr()->getOperatorType() == ITM_INSTANTIATE_NULL");

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/62b45310/core/sql/optimizer/ControlDB.h
----------------------------------------------------------------------
diff --git a/core/sql/optimizer/ControlDB.h b/core/sql/optimizer/ControlDB.h
index 1d60116..b543ae6 100644
--- a/core/sql/optimizer/ControlDB.h
+++ b/core/sql/optimizer/ControlDB.h
@@ -41,12 +41,8 @@
 
 #include "RelControl.h"
 
-#ifdef NA_STD_NAMESPACE
 #include <iosfwd>
 using namespace std;
-#else
-class ostream;
-#endif
 
 class ControlDB;
 class ControlQueryDefault;

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/62b45310/core/sql/optimizer/CostScalar.h
----------------------------------------------------------------------
diff --git a/core/sql/optimizer/CostScalar.h b/core/sql/optimizer/CostScalar.h
index 78be834..12105e8 100644
--- a/core/sql/optimizer/CostScalar.h
+++ b/core/sql/optimizer/CostScalar.h
@@ -128,10 +128,7 @@ extern THREAD_P NABoolean ASSERTIONS_ALWAYS_ON ;
 #define ASSERT_IS_A_VALID_COSTSCALAR
 #endif // NDEBUG
 
-// for some reason, you might not want to use <math.h> functions ...
-#ifndef DONT_USE_MATH_H
 #include <math.h>
-#endif
 
 // -----------------------------------------------------------------------
 // The following classes are defined in this file.
@@ -316,31 +313,15 @@ public:
   // getCeiling : ceiling of 12.34 = 13.0, assumes non-negative CostScalar
   CostScalar getCeiling() const
   {
-#ifdef DONT_USE_MATH_H
-    CMPASSERT (dpv_ >= 0) ;
-    // we assume that cast-to-long does truncation
-    Lng32 valLong = Lng32(dpv_) ; 
-    if (double(valLong) < dpv_)
-      return CostScalar (double(valLong+1)) ; // go "up" to next integer
-    else
-      return CostScalar (double(valLong)) ;   // already exactly equal to a integer
-#else
-  // use ANSI c-runtime function defined in <math.h>:
-  return CostScalar(ceil(getValue()));
-#endif
+    // use ANSI c-runtime function defined in <math.h>:
+    return CostScalar(ceil(getValue()));
   }
 
   // getFloor : floor of 12.34 = 12.0, assumes non-negative CostScalar
   CostScalar getFloor() const
   {
-#ifdef DONT_USE_MATH_H
-    CMPASSERT (dpv_ >= 0) ;
-    // we assume that cast-to-long does truncation
-    return CostScalar (double(Lng32(dpv_))) ; 
-#else
-  // use ANSI c-runtime function defined in <math.h>:
-  return CostScalar(floor(getValue()));
-#endif
+    // use ANSI c-runtime function defined in <math.h>:
+    return CostScalar(floor(getValue()));
   }
 
   // getValue, value : getting at the underlying double value explicitly

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/62b45310/core/sql/optimizer/GroupAttr.cpp
----------------------------------------------------------------------
diff --git a/core/sql/optimizer/GroupAttr.cpp b/core/sql/optimizer/GroupAttr.cpp
index 1e38050..6007a4e 100644
--- a/core/sql/optimizer/GroupAttr.cpp
+++ b/core/sql/optimizer/GroupAttr.cpp
@@ -478,8 +478,8 @@ NABoolean GroupAttributes::hasCardConstraint(Cardinality &minNumOfRows,
 {
   NABoolean found = FALSE;
 
-  minNumOfRows = (Cardinality)0;  // NT_PORT ( bd 10/22/96 ) cast to Cardinality
-  maxNumOfRows = (Cardinality)INFINITE_CARDINALITY;  // NT_PORT ( bd 10/22/96 ) cast to Cardinality
+  minNumOfRows = (Cardinality)0;
+  maxNumOfRows = (Cardinality)INFINITE_CARDINALITY;
 
   for (ValueId x= constraints_.init();
        constraints_.next(x);

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/62b45310/core/sql/optimizer/NormItemExpr.cpp
----------------------------------------------------------------------
diff --git a/core/sql/optimizer/NormItemExpr.cpp b/core/sql/optimizer/NormItemExpr.cpp
index 4a248e7..834bcf0 100644
--- a/core/sql/optimizer/NormItemExpr.cpp
+++ b/core/sql/optimizer/NormItemExpr.cpp
@@ -1712,7 +1712,7 @@ DisjunctArray * BiLogic::mdamTreeWalk()
       break;
     }
 
-   return 0; // NT_PORT ( bd 1/14/96 ) Eliminate compiler warning
+   return 0;
 } // BiLogic::mdamTreeWalk()
 
 // MDAMR

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/62b45310/core/sql/optimizer/NormRelExpr.cpp
----------------------------------------------------------------------
diff --git a/core/sql/optimizer/NormRelExpr.cpp b/core/sql/optimizer/NormRelExpr.cpp
index b4b4269..2c8eeab 100644
--- a/core/sql/optimizer/NormRelExpr.cpp
+++ b/core/sql/optimizer/NormRelExpr.cpp
@@ -5865,7 +5865,6 @@ void Scan::rewriteNode(NormWA & normWARef)
   // -------------------------------------------------------------------------
   // Normalize the indexes.
   // -------------------------------------------------------------------------
-  // NT_PORT ( bd 7/16/96 ) cast to int
   for (i = 0;
        i < (Int32)getTableDesc()->getIndexes().entries();
        i++)
@@ -6626,7 +6625,6 @@ void GenericUpdate::rewriteNode(NormWA & normWARef)
   // -------------------------------------------------------------------------
   // Normalize the indexes.
   // -------------------------------------------------------------------------
-  // NT_PORT ( bd 7/16/96 ) cast to int
   for (j = 0;
        j < (Int32)getTableDesc()->getIndexes().entries();
        j++)

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/62b45310/core/sql/optimizer/PhyProp.cpp
----------------------------------------------------------------------
diff --git a/core/sql/optimizer/PhyProp.cpp b/core/sql/optimizer/PhyProp.cpp
index 1262a9a..c6aedc3 100644
--- a/core/sql/optimizer/PhyProp.cpp
+++ b/core/sql/optimizer/PhyProp.cpp
@@ -137,7 +137,6 @@ PhysicalProperty::compareProperties (const PhysicalProperty &other) const
 #pragma warn(1506)  // warning elimination
   Lng32 minEntries = MINOF(myKeyCount,otherKeyCount);
 
-  // NT_PORT ( bd 10/22/96 ) cast to CollIndex
   for (CollIndex index = 0; index < (CollIndex)minEntries; index++)
     if (NOT (sortKey_[index] == other.sortKey_[index]))
       {
@@ -580,7 +579,7 @@ ReqdPhysicalProperty::compareRequirements(const ReqdPhysicalProperty &other) con
 	otherSortEntries = 0;
 
       // The columns in coreesponding positions must be the same.
-      for (CollIndex i = 0; i < (CollIndex)MINOF(mySortEntries,otherSortEntries); i++)  // NT_PORT ( bd 10/22/96 ) cast to CollIndex
+      for (CollIndex i = 0; i < (CollIndex)MINOF(mySortEntries,otherSortEntries); i++) 
 	{
 	  if (NOT (orderedBy_->at(i) == other.orderedBy_->at(i)))
 	    {

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/62b45310/core/sql/optimizer/SearchKey.cpp
----------------------------------------------------------------------
diff --git a/core/sql/optimizer/SearchKey.cpp b/core/sql/optimizer/SearchKey.cpp
index 424770b..5f0d915 100644
--- a/core/sql/optimizer/SearchKey.cpp
+++ b/core/sql/optimizer/SearchKey.cpp
@@ -1532,7 +1532,7 @@ void SearchKeyWorkSpace::analyzeSearchPredicates
 			     const ValueIdSet & externalInputs
 			     )
 {
-  for (CollIndex keyNum = 0; keyNum < (CollIndex)keyCount_; keyNum++)  // NT_PORT ( bd 10/22/96 ) cast to CollIndex
+  for (CollIndex keyNum = 0; keyNum < (CollIndex)keyCount_; keyNum++)
     {
       // Set the value contained in the key predicate (if any)
       // for this key column (i.e. bound):

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/62b45310/core/sql/optimizer/ValueDesc.cpp
----------------------------------------------------------------------
diff --git a/core/sql/optimizer/ValueDesc.cpp b/core/sql/optimizer/ValueDesc.cpp
index 073c77b..74e2db7 100644
--- a/core/sql/optimizer/ValueDesc.cpp
+++ b/core/sql/optimizer/ValueDesc.cpp
@@ -534,7 +534,7 @@ ValueId::getNAColumn(NABoolean okIfNotColumn) const
       return NULL;
     CMPASSERT(okIfNotColumn);
   }
-  return NULL;  // NT_PORT
+  return NULL;
 }
 
 

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/62b45310/core/sql/parser/ElemDDLNode.cpp
----------------------------------------------------------------------
diff --git a/core/sql/parser/ElemDDLNode.cpp b/core/sql/parser/ElemDDLNode.cpp
index 39b9486..b973e72 100644
--- a/core/sql/parser/ElemDDLNode.cpp
+++ b/core/sql/parser/ElemDDLNode.cpp
@@ -1982,7 +1982,7 @@ ElemDDLNode::print(FILE * f,
                    const char * prefix,
                    const char * suffix) const
 {
-#ifdef TRACING_ENABLED  // NT_PORT ( bd 8/4/96 )
+#ifdef TRACING_ENABLED 
   fprintf(f,"%s%s(%s)\n", prefix, (const char *)getText(), suffix);
 #endif
 }

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/62b45310/core/sql/parser/ElemDDLPartition.cpp
----------------------------------------------------------------------
diff --git a/core/sql/parser/ElemDDLPartition.cpp b/core/sql/parser/ElemDDLPartition.cpp
index fa5dc06..42f8f14 100644
--- a/core/sql/parser/ElemDDLPartition.cpp
+++ b/core/sql/parser/ElemDDLPartition.cpp
@@ -529,7 +529,7 @@ ElemDDLPartitionSystem::bindNode(BindWA * /*pBindWA*/)
         // if the specified OSS environment variable has the
         // dollar sign prefix, removes it.
         //
-	    if (envVarName[(size_t) 0] EQU '$')            // NT_PORT FIX SK 07/15/96
+        if (envVarName[(size_t) 0] EQU '$')
         {
           envVarName = envVarName(1/*startpos*/, envVarName.length() - 1);
         }

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/62b45310/core/sql/parser/HvRoles_templ.cpp
----------------------------------------------------------------------
diff --git a/core/sql/parser/HvRoles_templ.cpp b/core/sql/parser/HvRoles_templ.cpp
index 69bbc77..ee2ec12 100644
--- a/core/sql/parser/HvRoles_templ.cpp
+++ b/core/sql/parser/HvRoles_templ.cpp
@@ -23,7 +23,7 @@
 // This file holds the implementation code supporting the
 // HostVarRoles_vec class.
 
-#include "Platform.h"                                     // NT_PORT SK 02/08/97
+#include "Platform.h" 
 
 // Always good to assert yourself.
 #include <assert.h>

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/62b45310/core/sql/qms/QmpMain.cpp
----------------------------------------------------------------------
diff --git a/core/sql/qms/QmpMain.cpp b/core/sql/qms/QmpMain.cpp
index 536975c..e0944d3 100644
--- a/core/sql/qms/QmpMain.cpp
+++ b/core/sql/qms/QmpMain.cpp
@@ -32,15 +32,12 @@
 #include "QmpPublish.h"
 #include "NAType.h"
 
-#ifdef NA_LINUX
 #include "nsk/nskport.h"
 #include "seabed/ms.h"
 #include "seabed/fs.h"
 extern void my_mpi_fclose();
 #include "SCMVersHelp.h"
 DEFINE_DOVERS(tdm_arkqmp)
-#endif
-
 
 /**
  * \file
@@ -115,17 +112,14 @@ static NABoolean processCommandLine(Int32 argc, char *argv[])
   return TRUE;
 } // End of processCommandLine
 
-#ifdef NA_LINUX
 extern "C"
 {
 Int32 sq_fs_dllmain();
 }
-#endif
 
 
 Int32 main(Int32 argc, char *argv[])
 {
-#ifdef NA_LINUX
   dovers(argc, argv);
 
   try
@@ -143,7 +137,6 @@ Int32 main(Int32 argc, char *argv[])
     exit(1);
   }
   // LCOV_EXCL_STOP
-#endif
 
   NAHeap qmpHeap("QMP Heap", NAMemory::DERIVED_FROM_SYS_HEAP, (Lng32)131072);
 

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/62b45310/core/sql/sort/DiskPool_base.h
----------------------------------------------------------------------
diff --git a/core/sql/sort/DiskPool_base.h b/core/sql/sort/DiskPool_base.h
index 90094f6..810a189 100644
--- a/core/sql/sort/DiskPool_base.h
+++ b/core/sql/sort/DiskPool_base.h
@@ -88,7 +88,7 @@ public:
                                    ULng32 espInstance, 
                                    ULng32 numEsps,
                                    unsigned short threshold
-                                  ) = 0; // NT_PORT ( ls 2/7/97 )
+                                  ) = 0; 
 
   DiskDetails **getDiskTablePtr() const {return diskTablePtr_;};
   DiskDetails **getLocalDisksPtr() const {return localDisksPtr_;};
@@ -101,14 +101,14 @@ public:
 
 
 #ifdef FORDEBUG
-  virtual NABoolean printDiskTable() = 0; // NT_PORT ( ls 2/7/97 )
+  virtual NABoolean printDiskTable() = 0;
 #endif
 
   protected:
 
   virtual void assignWeight(DiskDetails *diskPtr) = 0;
 
-  virtual NABoolean refreshDisk(DiskDetails *diskPtr) = 0; // NT_PORT (2/7/97 )
+  virtual NABoolean refreshDisk(DiskDetails *diskPtr) = 0;
   virtual NABoolean computeNumScratchFiles(DiskDetails *diskPtr )= 0;
                                         // index into the diskdetails pointer
   Int32 numberOfDisks_;

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/62b45310/core/sql/sort/DiskPool_sq.h
----------------------------------------------------------------------
diff --git a/core/sql/sort/DiskPool_sq.h b/core/sql/sort/DiskPool_sq.h
index 15fe1d5..ce4cc73 100644
--- a/core/sql/sort/DiskPool_sq.h
+++ b/core/sql/sort/DiskPool_sq.h
@@ -65,7 +65,7 @@ private:
 
   short factorImportanceTotalFreeSpace_;
   short factorImportanceNumScrFiles_;  
-  SortError *sortError_; // NT_PORT ( ls 2/7/97 )
+  SortError *sortError_;
 };
 
 //--------------------------------------------------------------------------

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/62b45310/core/sql/sort/SortAlgo.cpp
----------------------------------------------------------------------
diff --git a/core/sql/sort/SortAlgo.cpp b/core/sql/sort/SortAlgo.cpp
index 42804f2..c1bef4b 100644
--- a/core/sql/sort/SortAlgo.cpp
+++ b/core/sql/sort/SortAlgo.cpp
@@ -118,7 +118,7 @@ short SortAlgo :: compare(char* key1, char* key2)
     /*if (key2 == NULL)*/ return KEY1_IS_GREATER;
   };
 #pragma nowarn(203)   // warning elimination 
-  return 0; // NT_PORT ( ls 2/7/97 )
+  return 0;
 #pragma warn(203)  // warning elimination 
 }
 

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/62b45310/core/sql/sort/diskpool_sq.cpp
----------------------------------------------------------------------
diff --git a/core/sql/sort/diskpool_sq.cpp b/core/sql/sort/diskpool_sq.cpp
index 2744d20..db1ab4a 100644
--- a/core/sql/sort/diskpool_sq.cpp
+++ b/core/sql/sort/diskpool_sq.cpp
@@ -29,7 +29,7 @@
 //    The constructor of NT version of DiskPool.
 //--------------------------------------------------------------------------
 SQDisk::SQDisk(SortError* sorterror, CollHeap *heap) :DiskPool(heap),
-sortError_(sorterror) {  // NT_PORT ( ls 2/7/97 )
+sortError_(sorterror) {
   
   factorImportanceTotalFreeSpace_ = 30;
   factorImportanceNumScrFiles_ = 70;   

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/62b45310/core/sql/sqlci/ShellCmd.cpp
----------------------------------------------------------------------
diff --git a/core/sql/sqlci/ShellCmd.cpp b/core/sql/sqlci/ShellCmd.cpp
index 15c60e1..55794c1 100644
--- a/core/sql/sqlci/ShellCmd.cpp
+++ b/core/sql/sqlci/ShellCmd.cpp
@@ -114,7 +114,7 @@ short Chdir::process(SqlciEnv * sqlci_env)
 
   NAString dir = LookupDefineName(cmd);
 
-  if (chdir(dir))			// NT_PORT: Use _chdir() instead?
+  if (chdir(dir))
     {
       //use constructor and destructor when C++ compiler bug is fixed 
       ErrorParam *ep1 = new ErrorParam(errno);

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/62b45310/core/sql/sqlci/SqlciEnv.cpp
----------------------------------------------------------------------
diff --git a/core/sql/sqlci/SqlciEnv.cpp b/core/sql/sqlci/SqlciEnv.cpp
index 84bb9ba..417cff5 100644
--- a/core/sql/sqlci/SqlciEnv.cpp
+++ b/core/sql/sqlci/SqlciEnv.cpp
@@ -1071,10 +1071,8 @@ short Env::process(SqlciEnv *sqlci_env)
 
   log->WriteAllWithoutEOL("CURRENT DIRECTORY  ");
 
-  // NT_PORT (bv 10/24/96) Added NA_MAX_PATH here and in common/Platform.h
   log->WriteAll(getcwd((char *)NULL, NA_MAX_PATH));
 
-
   log->WriteAllWithoutEOL("LIST_COUNT         ");
   char buf[100];
   Int32 len = sprintf(buf, "%u", sqlci_env->getListCount());

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/62b45310/core/sql/sqlci/SqlciList_templ.h
----------------------------------------------------------------------
diff --git a/core/sql/sqlci/SqlciList_templ.h b/core/sql/sqlci/SqlciList_templ.h
index 4b34ba1..a7a4634 100644
--- a/core/sql/sqlci/SqlciList_templ.h
+++ b/core/sql/sqlci/SqlciList_templ.h
@@ -76,8 +76,6 @@ public:
   T * getNext();
 };
 
-// NT_PORT ( bd 10/28/96 )
-//JMHPORT
 #if defined(NA_COMPILE_INSTANTIATE)
 #include "SqlciList_templ.cpp"
 #endif  // NA_COMPILE_INSTANTIATE

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/62b45310/core/sql/sqlci/SqlciParser.cpp
----------------------------------------------------------------------
diff --git a/core/sql/sqlci/SqlciParser.cpp b/core/sql/sqlci/SqlciParser.cpp
index c8153f3..fdf0c1e 100644
--- a/core/sql/sqlci/SqlciParser.cpp
+++ b/core/sql/sqlci/SqlciParser.cpp
@@ -78,9 +78,7 @@ static Int32 sqlci_parser_subproc(char *instr, char *origstr, SqlciNode ** node,
       
         if (j >= 0)
 	{
-#ifdef NA_FLEXBUILD
-	  SqlciLexReinit(); // NT_PORT ( bd 10/11/96 )
-#endif
+	  SqlciLexReinit();
 	  
 	  retval = sqlciparse();
 	  
@@ -89,19 +87,12 @@ static Int32 sqlci_parser_subproc(char *instr, char *origstr, SqlciNode ** node,
 	    {
 	      assert(SqlciParseTree->isSqlciNode());
 	      
-	      // check to see if the SqlciNode is valid or not.Returns 1 if it is 
-	      // valid and 0 if invalid.
-	      retval = sqlci_parser_handle_report_writer(sqlci_env,retval);
-	      
-	      if (retval)
-		{ 
-		  if (retval = SqlciParseTree->errorCode())	  // oops, an error
-		    {
-		      delete SqlciParseTree;
-		      SqlciParseTree = NULL;
-		      retval = -ABS(retval);	// error, caller won't retry
-		    }
-		}
+              if (retval = SqlciParseTree->errorCode())	  // oops, an error
+                {
+                  delete SqlciParseTree;
+                  SqlciParseTree = NULL;
+                  retval = -ABS(retval);	// error, caller won't retry
+                }
 	    }
 	  else
 	    retval = +ABS(retval);	// error, caller will retry
@@ -146,7 +137,6 @@ Int32 sqlci_parser(char *instr, char *origstr, SqlciNode ** node, SqlciEnv *sqlc
   if (retval > 0)
     {
       SqlciParse_OriginalStr = origstr;
-      retval = sqlci_parser_handle_error(node, retval);
     }
 
   if (newstr != origstr)
@@ -176,21 +166,4 @@ Int32 sqlci_parser_syntax_error_cleanup(char *instr, SqlciEnv *sqlci_env)
   return 0;
 }
 
-Int32 sqlci_parser_handle_report_writer(SqlciEnv *sqlci_env, Lng32 retval)
-{
-  return 0;
-}
-
-Int32 sqlci_parser_handle_error(SqlciNode **node, Lng32 retval)
-{
-  NABoolean syntaxError_ = sqlci_DA.contains(-SQLCI_SYNTAX_ERROR);
-  
-  if (retval && syntaxError_)
-    {	
-      return retval;
-    }
-  else
-    return retval;
-  
-}
 		

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/62b45310/core/sql/sqlci/SqlciStats.h
----------------------------------------------------------------------
diff --git a/core/sql/sqlci/SqlciStats.h b/core/sql/sqlci/SqlciStats.h
index c873918..543cc47 100644
--- a/core/sql/sqlci/SqlciStats.h
+++ b/core/sql/sqlci/SqlciStats.h
@@ -43,7 +43,7 @@
  *****************************************************************************
  */
 
-#include "Platform.h"			// NT_PORT (bv 10/18/96) 
+#include "Platform.h"		       
 #include "SqlciCmd.h"			// Statistics class enum
 #include <sys/time.h>
 

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/62b45310/core/sql/sqlci/sqlci_lex.ll
----------------------------------------------------------------------
diff --git a/core/sql/sqlci/sqlci_lex.ll b/core/sql/sqlci/sqlci_lex.ll
index 4299a1c..57dd363 100755
--- a/core/sql/sqlci/sqlci_lex.ll
+++ b/core/sql/sqlci/sqlci_lex.ll
@@ -91,10 +91,6 @@ extern "C" { int yylex(void); }
 extern "C" { int yylex(void); }
 #endif
 
-#ifndef NA_FLEXBUILD  
-#undef input
-#define input()  SqlciInput()
-#else  // NT_PORT
 # undef YY_INPUT
 #define YY_INPUT(buffer,result,maxsize)\
 {\
@@ -104,7 +100,6 @@ extern "C" { int yylex(void); }
     else\
         result=1;\
 }
-#endif  // NA_FLEXBUILD
 
 #undef unput
 #define unput(c) SqlciUnput(c)
@@ -112,45 +107,11 @@ extern "C" { int yylex(void); }
 #define yylval sqlcilval
 #define yyerror sqlcierror
 
-#ifndef NA_FLEXBUILD  // NT_PORT ( bd 10/6/96 ) moving to flex/bison BEGIN
-void sqlci_unput_(int c);
-char sqlci_input_();
-
-char SqlciInput(void)
-{
-
-  short x;
-  x = sqlci_input_();
-
-  return x;
-}
-      
-#endif  // NT_PORT ( bd 10/6/96 ) moving to flex/bison END
-
 // put back a previously read input character that wasn't needed
 void SqlciUnput(char c)
 {
-#ifndef NA_FLEXBUILD  // NT_PORT ( bd 10/6/96 ) moving to flex/bison BEGIN
- sqlci_unput_(c);
-#else
  SqlciParse_InputPos--;
-#endif  // NT_PORT ( bd 10/6/96 ) moving to flex/bison END
-}
-
-#ifndef NA_FLEXBUILD  // NT_PORT ( bd 10/6/96 ) moving to flex/bison BEGIN
-void sqlci_unput_(int c)
-{
- SqlciParse_InputPos--;
-};
-
-char sqlci_input_()
-{
-  char a;
-  
-  a = SqlciParse_InputStr[SqlciParse_InputPos++];
-  return a;
 }
-#endif  // NT_PORT ( bd 10/6/96 ) moving to flex/bison END
 
 // handle EOF in the input stream and let lex continue
 // with the next input file
@@ -226,7 +187,6 @@ B			[ \t\n]+
 [Dd][Ii][Ss][Pp][Ll][Aa][Yy]_[Qq][Cc]_[Ee][Nn][Tt][Rr][Ii][Ee][Ss] return_IDENT_or_TOKEN(DISPLAY_QC_ENTRIES,0);
 [Dd][Ii][Ss][Pp][Ll][Aa][Yy]_[Qq][Cc]_[Ee][Nn][Tt][Rr][Ii][Ee][Ss]_[Nn][Oo][Tt][Ii][Mm][Ee] return_IDENT_or_TOKEN(DISPLAY_QC_ENTRIES_NOTIME,0);
 [Dd][Ii][Ss][Pp][Ll][Aa][Yy]{B}[Uu][Ss][Ee]{B}[Oo][Ff]          return_IDENT_or_TOKEN(DISPLAY_USE_OF, 0);
-[Dd][Uu][Pp]   			       return_IDENT_or_TOKEN(DUP, 0);
 [Ee][Nn][Vv]  			       return_IDENT_or_TOKEN(MXCI_TOK_ENV, 0);
 [Ee][Nn][Vv][Vv][Aa][Rr]  	       return_IDENT_or_TOKEN(ENVVARtoken, 0);
 [Ee][Tt]                               return_IDENT_or_TOKEN(COMMIT, 0);
@@ -490,22 +450,6 @@ B			[ \t\n]+
                                 SqlciParse_IdentifierExpected = 0;
                 return_IDENT_or_TOKEN(FILENAME, 0);
                         }
-\\{G}\.\${G}\.{G}\.{G}	   {
-                                if (yylval.stringval_type)
-                                  delete [] yylval.stringval_type;
-                                yylval.stringval_type = new char[strlen(yytext)+1];
-                strcpy(yylval.stringval_type, yytext);
-                                return(NSK_NAME);
-                           }
-
-\\{G}\.\${G}               {
-                                if (yylval.stringval_type)
-	                              delete [] yylval.stringval_type;
-                                yylval.stringval_type = new char[strlen(yytext)+1];
-				strcpy(yylval.stringval_type, yytext);
-                                return(NODE_VOL_NAME);
-                           }
-
 \\{G}\.[0-9]*\,[0-9]*      {
                                 if (yylval.stringval_type)
 	                              delete [] yylval.stringval_type;
@@ -532,9 +476,7 @@ B			[ \t\n]+
 
 %%
 
-#ifdef NA_FLEXBUILD
 void SqlciLexReinit()
 {
     sqlcirestart(0);
 }
-#endif

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/62b45310/core/sql/sqlci/sqlci_yacc.y
----------------------------------------------------------------------
diff --git a/core/sql/sqlci/sqlci_yacc.y b/core/sql/sqlci/sqlci_yacc.y
index 3f4a8cb..95a37b3 100644
--- a/core/sql/sqlci/sqlci_yacc.y
+++ b/core/sql/sqlci/sqlci_yacc.y
@@ -392,7 +392,6 @@ static char * FCString (const char *idString, int isFC)
 %token DISPLAY_QC_ENTRIES
 %token DISPLAY_QC_ENTRIES_NOTIME
 %token DISPLAY_USE_OF
-%token DUP
 %token EDIT
 %token MXCI_TOK_ENV
 %token EXIT
@@ -432,8 +431,6 @@ static char * FCString (const char *idString, int isFC)
 %token MODIFYV
 %token NEXT
 %token NOEtoken
-%token NODE_VOL_NAME
-%token NSK_NAME
 %token OBEY
 %token OBJECTtoken
 %token OFtoken
@@ -548,8 +545,6 @@ static char * FCString (const char *idString, int isFC)
 %type <sql_cmd_type> sql_cmd
 %type <shell_cmd_type> shell_cmd
 %type <stringval_type> IDENTIFIER
-%type <stringval_type> NODE_VOL_NAME
-%type <stringval_type> NSK_NAME
 %type <stringval_type> PARAM_NAME
 %type <stringval_type> PATTERN_NAME
 %type <stringval_type> PID_VALUE
@@ -1929,7 +1924,6 @@ dml_type :
 	|	SIGNAL			{$$ = DML_CONTROL_TYPE;}
 	|	INTERNAL		{$$ = DML_CONTROL_TYPE;}
 	|	MVLOG			{$$ = DML_CONTROL_TYPE;} 
-	|	DUP			{$$ = DML_DDL_TYPE;}
 	|	PURGEDATA		{$$ = DML_DDL_TYPE;}
 	|	TRUNCATE		{$$ = DML_DDL_TYPE;}
 	|	WITH                    {$$ = DML_DDL_TYPE;}


[9/9] incubator-trafodion git commit: PR-1236 [TRAFOFION-2731] CodeCleanup: Phase2: Remove obsolete, legacy, unused code

Posted by an...@apache.org.
PR-1236 [TRAFOFION-2731] CodeCleanup: Phase2: Remove obsolete,legacy,unused code


Project: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/commit/dc0d2043
Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/tree/dc0d2043
Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/diff/dc0d2043

Branch: refs/heads/master
Commit: dc0d2043d05c1d8830cfbaa7c6fa16dad26a53ba
Parents: 8e2ba64 62b4531
Author: Anoop Sharma <an...@esgyn.com>
Authored: Tue Sep 19 22:24:58 2017 +0000
Committer: Anoop Sharma <an...@esgyn.com>
Committed: Tue Sep 19 22:24:58 2017 +0000

----------------------------------------------------------------------
 core/sql/arkcmp/CmpCommon.cpp              |    2 +-
 core/sql/arkcmp/CmpStoredProc.h            |    1 -
 core/sql/arkcmp/ProcessEnv.cpp             |    2 +-
 core/sql/arkcmp/cmpargs.cpp                |    2 +-
 core/sql/bin/SqlciMain.cpp                 |    1 -
 core/sql/bin/arkcmp.cpp                    |    5 -
 core/sql/cli/Cli.h                         |    2 +-
 core/sql/cli/CliDll.cpp                    |   36 -
 core/sql/cli/CliExtern.cpp                 |    1 -
 core/sql/cli/CliStubsStaticBuild.cpp       |   23 -
 core/sql/cli/Descriptor.h                  |    6 +-
 core/sql/cli/Globals.cpp                   |    1 -
 core/sql/cli/Globals.h                     |    5 +-
 core/sql/cli/Module.cpp                    |    1 -
 core/sql/cli/NoWaitOp.h                    |    2 +-
 core/sql/cli/QuasiFileManager.h            |    2 +-
 core/sql/cli/SQLCLIdev.h                   |    2 +-
 core/sql/cli/Statement.cpp                 |    1 -
 core/sql/cli/Statement.h                   |    4 +-
 core/sql/cli/VicKeyValuePair.h             |   22 -
 core/sql/cli/cli_stdh.h                    |    2 +-
 core/sql/cli/globalsrlversion.cpp          |   40 -
 core/sql/cli/globalstubs.cpp               |   37 -
 core/sql/cli/privsrlversion.cpp            |   41 -
 core/sql/cli/rtdu.cpp                      |   37 -
 core/sql/cli/rtdu.h                        |   24 -
 core/sql/cli/rtdu2.cpp                     |   37 -
 core/sql/cli/rtdu2.h                       |   28 -
 core/sql/cli/sqlciSRLStubs.cpp             |   32 -
 core/sql/cli/test.cpp                      |   21 -
 core/sql/comexe/ExplainTuple.cpp           |    6 +-
 core/sql/comexe/FragmentDir.cpp            |    2 +-
 core/sql/comexe/PartInputDataDesc.cpp      |   39 -
 core/sql/common/BaseTypes.h                |    9 +-
 core/sql/common/CharType.cpp               |    2 +-
 core/sql/common/CmpCommon.h                |   15 +-
 core/sql/common/Collections.h              |    8 +-
 core/sql/common/ComAnsiNamePart.h          |    4 -
 core/sql/common/ComObjectName.h            |    4 -
 core/sql/common/ComRoutineActionNamePart.h |    6 -
 core/sql/common/ComRtUtils.h               |    2 -
 core/sql/common/ComSmallDefs.cpp           |    2 +-
 core/sql/common/ComSmallDefs.h             |    4 -
 core/sql/common/ComSpace.h                 |    5 -
 core/sql/common/DgBaseType.cpp             |    2 +-
 core/sql/common/Ipc.h                      |    4 -
 core/sql/common/NAHeap.h                   |    6 +-
 core/sql/common/NAMemory.h                 |    4 -
 core/sql/common/NAType.cpp                 |    2 +-
 core/sql/common/NumericType.cpp            |    2 +-
 core/sql/common/Platform.h                 |    6 -
 core/sql/common/SqlExpDllDefines.h         |   23 -
 core/sql/common/SqlExportDllDefines.h      |   20 -
 core/sql/common/charinfo.cpp               |    4 -
 core/sql/common/dfs2rec.h                  |    2 -
 core/sql/common/purify.h                   |   36 -
 core/sql/eh/EHJmpBufStack.cpp              |    2 +-
 core/sql/executor/ExAll.cpp                |    1 -
 core/sql/executor/ExExeUtilMisc.cpp        |    1 -
 core/sql/executor/ExHbaseAccess.h          |   13 -
 core/sql/executor/ExHdfsScan.h             |   13 -
 core/sql/executor/ExMeas.cpp               |   22 -
 core/sql/executor/ExMeas.h                 |   22 -
 core/sql/executor/ExRsInfo.h               |   16 +-
 core/sql/executor/ExStats.h                |    1 -
 core/sql/executor/MdamRefListEntry.h       |    2 +-
 core/sql/executor/dfs2fe.h                 |    3 +-
 core/sql/executor/dmeasql.h                |   22 -
 core/sql/executor/ex_esp_frag_dir.cpp      |    2 +-
 core/sql/executor/ex_exe_stmt_globals.h    |    8 +-
 core/sql/executor/ex_frag_rt.h             |    6 +-
 core/sql/executor/ex_globals.cpp           |    1 -
 core/sql/executor/ex_root.cpp              |    2 +-
 core/sql/executor/ex_split_bottom.cpp      |    2 +-
 core/sql/executor/ex_stdh.h                |    2 +-
 core/sql/executor/rcb.h                    |   20 -
 core/sql/executor/stubs.cpp                |   38 -
 core/sql/executor/stubs2.cpp               |   26 -
 core/sql/executor/tempfile.cpp             |   37 -
 core/sql/executor/tempfile.h               |   37 -
 core/sql/exp/ExpAtp.h                      |    1 -
 core/sql/exp/ExpConvMxcs.cpp               |    2 +-
 core/sql/exp/ExpCriDesc.cpp                |    2 +-
 core/sql/exp/ExpCriDesc.h                  |    1 -
 core/sql/exp/ExpDll.cpp                    |    3 -
 core/sql/exp/ExpError.h                    |    1 -
 core/sql/exp/ExpLOB.h                      |    1 -
 core/sql/exp/ExpPCodeInstruction.h         |    1 -
 core/sql/exp/ExpPCodeList.h                |    1 -
 core/sql/exp/ExpPCodeOptimizations.h       |    2 +-
 core/sql/exp/ExpSeqGen.h                   |    1 -
 core/sql/exp/ExpSqlTupp.h                  |    1 -
 core/sql/exp/exp_clause.h                  |    2 +-
 core/sql/exp/exp_clause_derived.h          |    1 -
 core/sql/exp/exp_comp.cpp                  |   24 -
 core/sql/exp/exp_expr.h                    |    1 -
 core/sql/exp/exp_fixup.cpp                 |    2 +-
 core/sql/exp/exp_function.cpp              |    2 +-
 core/sql/exp/exp_space.cpp                 |  358 -------
 core/sql/exp/exp_space.h                   |   22 -
 core/sql/exp/exp_stdh.h                    |    3 +-
 core/sql/exp/exp_tuple_desc.h              |    1 -
 core/sql/exp/srlversion.cpp                |   41 -
 core/sql/export/ComDiags.cpp               |    4 -
 core/sql/export/ComMemoryDiags.h           |    6 -
 core/sql/export/HeapLog.cpp                |    5 -
 core/sql/export/NABasicObject.cpp          |    5 -
 core/sql/export/NABasicObject.h            |   29 -
 core/sql/export/NAStringDef.cpp            |    2 -
 core/sql/export/NAStringDef.h              |    2 -
 core/sql/export/stubs.cpp                  |   53 -
 core/sql/generator/GenExpGenerator.h       |    2 +-
 core/sql/generator/GenPreCode.cpp          |    4 +-
 core/sql/generator/Generator.h             |    2 +-
 core/sql/nskgmake/executor/Makefile        |    4 -
 core/sql/nskgmake/sqlcat/Makefile          |    4 +-
 core/sql/nskgmake/sqlci/Makefile           |    3 +-
 core/sql/nskgmake/sqlcilib/Makefile        |   15 +-
 core/sql/nskgmake/tdm_sqlcli/Makefile      |    3 +-
 core/sql/nskgmake/tdm_sqlshare/Makefile    |    3 +-
 core/sql/optimizer/ControlDB.h             |    4 -
 core/sql/optimizer/CostScalar.h            |   27 +-
 core/sql/optimizer/GroupAttr.cpp           |    4 +-
 core/sql/optimizer/NormItemExpr.cpp        |    2 +-
 core/sql/optimizer/NormRelExpr.cpp         |    2 -
 core/sql/optimizer/PhyProp.cpp             |    3 +-
 core/sql/optimizer/SearchKey.cpp           |    2 +-
 core/sql/optimizer/ValueDesc.cpp           |    2 +-
 core/sql/parser/ElemDDLNode.cpp            |    2 +-
 core/sql/parser/ElemDDLPartition.cpp       |    2 +-
 core/sql/parser/HvRoles_templ.cpp          |    2 +-
 core/sql/qms/QmpMain.cpp                   |    7 -
 core/sql/qmscommon/QRQueries.cpp           |    4 +-
 core/sql/sort/DiskPool_base.h              |    6 +-
 core/sql/sort/DiskPool_sq.h                |    2 +-
 core/sql/sort/SortAlgo.cpp                 |    2 +-
 core/sql/sort/diskpool_sq.cpp              |    2 +-
 core/sql/sqlcat/ReadTableDef.cpp           |   39 -
 core/sql/sqlcat/ReadTableDef.h             |   44 -
 core/sql/sqlcat/enum.h                     |   20 -
 core/sql/sqlcat/readRealArk.cpp            |   34 -
 core/sql/sqlcat/readRealArk.h              |   23 -
 core/sql/sqlci/CSInterface.h               |   84 --
 core/sql/sqlci/CharSetConstants.cpp        |   47 -
 core/sql/sqlci/CharSetConstants.h          |   30 -
 core/sql/sqlci/Define.cpp                  |  204 ----
 core/sql/sqlci/Define.h                    |   42 -
 core/sql/sqlci/Formatter.cpp               |    4 -
 core/sql/sqlci/InputStmt.cpp               |   42 +-
 core/sql/sqlci/Log.cpp                     |   51 -
 core/sql/sqlci/MsgCat.cpp                  |   76 --
 core/sql/sqlci/MsgCat.h                    |   82 --
 core/sql/sqlci/MxciEHCallBack.cpp          |   53 -
 core/sql/sqlci/MxciEHCallBack.h            |   56 --
 core/sql/sqlci/Obey.cpp                    |   14 -
 core/sql/sqlci/Param.cpp                   |    8 -
 core/sql/sqlci/Prepare.cpp                 |   11 -
 core/sql/sqlci/RWInterface.cpp             |  119 ---
 core/sql/sqlci/RWInterface.h               |  155 ---
 core/sql/sqlci/ShellCmd.cpp                |    2 +-
 core/sql/sqlci/ShellCmd.h                  |    7 -
 core/sql/sqlci/SqlCmd.cpp                  |   50 -
 core/sql/sqlci/Sqlci.h                     |    3 -
 core/sql/sqlci/SqlciCSCmd.cpp              |  341 -------
 core/sql/sqlci/SqlciCSCmd.h                |  158 ---
 core/sql/sqlci/SqlciCSSimulator.cpp        |  112 ---
 core/sql/sqlci/SqlciCmd.cpp                |  102 +-
 core/sql/sqlci/SqlciCmd.h                  |   45 +-
 core/sql/sqlci/SqlciEnv.cpp                |   80 --
 core/sql/sqlci/SqlciEnv.h                  |   54 +-
 core/sql/sqlci/SqlciError.cpp              |   12 -
 core/sql/sqlci/SqlciError.h                |    4 -
 core/sql/sqlci/SqlciHelp.cpp               |  244 -----
 core/sql/sqlci/SqlciList_templ.h           |    2 -
 core/sql/sqlci/SqlciNode.cpp               |   30 -
 core/sql/sqlci/SqlciNode.h                 |   10 -
 core/sql/sqlci/SqlciParser.cpp             |  101 +-
 core/sql/sqlci/SqlciRWCmd.cpp              | 1172 -----------------------
 core/sql/sqlci/SqlciRWCmd.h                |  299 ------
 core/sql/sqlci/SqlciRWSimulator.cpp        |  375 --------
 core/sql/sqlci/SqlciReset.cpp              |   45 -
 core/sql/sqlci/SqlciShow.cpp               |   21 -
 core/sql/sqlci/SqlciStats.h                |    2 +-
 core/sql/sqlci/SqlciStmts.cpp              |    8 -
 core/sql/sqlci/SqlciUsage.cpp              |  889 -----------------
 core/sql/sqlci/SqlciUtil.cpp               |   59 --
 core/sql/sqlci/SqlciUtil.h                 |   77 --
 core/sql/sqlci/UtilInt.cpp                 |   86 --
 core/sql/sqlci/UtilInt.h                   |   44 -
 core/sql/sqlci/UtilMsg.cpp                 |   69 --
 core/sql/sqlci/UtilMsg.h                   |   45 -
 core/sql/sqlci/immudefs.cpp                |  156 ---
 core/sql/sqlci/immudefs.h                  |  185 ----
 core/sql/sqlci/sqlci_lex.ll                |  141 +--
 core/sql/sqlci/sqlci_yacc.y                |  422 +-------
 core/sql/sqlci/sqlclicmd.h                 |    4 -
 core/sql/sqlci/sqlcmd.h                    |   24 -
 core/sql/sqlcomp/CmpMain.cpp               |   30 +-
 core/sql/sqlcomp/parser.cpp                |    4 +-
 core/sql/sqlmsg/ComDiagsMsg.cpp            |    2 +-
 core/sql/sqlmsg/ErrorMessage.h             |    1 -
 core/sql/sqlmsg/GetErrorMessage.cpp        |    6 +-
 core/sql/sqlmsg/ParserMsg.cpp              |    2 -
 core/sql/sqlshare/catapirequest.cpp        | 1070 ---------------------
 core/sql/sqlshare/catapirequest.h          |  594 ------------
 core/sql/ustat/hs_lex.ll                   |    4 +-
 core/sql/ustat/hs_update.cpp               |    2 +-
 207 files changed, 134 insertions(+), 9932 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/dc0d2043/core/sql/common/ComSpace.h
----------------------------------------------------------------------

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/dc0d2043/core/sql/common/NAMemory.h
----------------------------------------------------------------------


[5/9] incubator-trafodion git commit: code cleanup, commit #1

Posted by an...@apache.org.
code cleanup, commit #1


Project: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/commit/b952c0d5
Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/tree/b952c0d5
Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/diff/b952c0d5

Branch: refs/heads/master
Commit: b952c0d5f96f773155467249631622a79e0ca68e
Parents: cd54195
Author: Anoop Sharma <an...@esgyn.com>
Authored: Fri Sep 15 00:13:37 2017 +0000
Committer: Anoop Sharma <an...@esgyn.com>
Committed: Fri Sep 15 00:13:37 2017 +0000

----------------------------------------------------------------------
 core/sql/arkcmp/CmpStoredProc.h         |    1 -
 core/sql/bin/SqlciMain.cpp              |    1 -
 core/sql/cli/CliDll.cpp                 |   36 -
 core/sql/cli/CliExtern.cpp              |    1 -
 core/sql/cli/CliStubsStaticBuild.cpp    |   23 -
 core/sql/cli/Globals.cpp                |    1 -
 core/sql/cli/Globals.h                  |    3 -
 core/sql/cli/Module.cpp                 |    1 -
 core/sql/cli/Statement.cpp              |    1 -
 core/sql/cli/VicKeyValuePair.h          |   22 -
 core/sql/cli/cli_stdh.h                 |    2 +-
 core/sql/cli/globalsrlversion.cpp       |   40 -
 core/sql/cli/globalstubs.cpp            |   37 -
 core/sql/cli/privsrlversion.cpp         |   41 -
 core/sql/cli/rtdu.cpp                   |   37 -
 core/sql/cli/rtdu.h                     |   24 -
 core/sql/cli/rtdu2.cpp                  |   37 -
 core/sql/cli/rtdu2.h                    |   28 -
 core/sql/cli/sqlciSRLStubs.cpp          |   32 -
 core/sql/cli/test.cpp                   |   21 -
 core/sql/comexe/FragmentDir.cpp         |    2 +-
 core/sql/common/NAHeap.h                |    2 +-
 core/sql/common/SqlExpDllDefines.h      |   23 -
 core/sql/common/SqlExportDllDefines.h   |   20 -
 core/sql/executor/ExAll.cpp             |    1 -
 core/sql/executor/ExExeUtilMisc.cpp     |    1 -
 core/sql/executor/ExMeas.cpp            |   22 -
 core/sql/executor/ExMeas.h              |   22 -
 core/sql/executor/ExStats.h             |    1 -
 core/sql/executor/dmeasql.h             |   22 -
 core/sql/executor/ex_esp_frag_dir.cpp   |    2 +-
 core/sql/executor/ex_globals.cpp        |    1 -
 core/sql/executor/ex_stdh.h             |    2 +-
 core/sql/executor/rcb.h                 |   20 -
 core/sql/executor/stubs.cpp             |   38 -
 core/sql/executor/stubs2.cpp            |   26 -
 core/sql/executor/tempfile.cpp          |   37 -
 core/sql/executor/tempfile.h            |   37 -
 core/sql/exp/ExpAtp.h                   |    1 -
 core/sql/exp/ExpCriDesc.cpp             |    2 +-
 core/sql/exp/ExpCriDesc.h               |    1 -
 core/sql/exp/ExpDll.cpp                 |    3 -
 core/sql/exp/ExpError.h                 |    1 -
 core/sql/exp/ExpLOB.h                   |    1 -
 core/sql/exp/ExpPCodeInstruction.h      |    1 -
 core/sql/exp/ExpPCodeList.h             |    1 -
 core/sql/exp/ExpPCodeOptimizations.h    |    2 +-
 core/sql/exp/ExpSeqGen.h                |    1 -
 core/sql/exp/ExpSqlTupp.h               |    1 -
 core/sql/exp/exp_clause.h               |    2 +-
 core/sql/exp/exp_clause_derived.h       |    1 -
 core/sql/exp/exp_expr.h                 |    1 -
 core/sql/exp/exp_space.cpp              |  358 --------
 core/sql/exp/exp_space.h                |   22 -
 core/sql/exp/exp_stdh.h                 |    3 +-
 core/sql/exp/exp_tuple_desc.h           |    1 -
 core/sql/exp/srlversion.cpp             |   41 -
 core/sql/export/stubs.cpp               |   53 --
 core/sql/generator/GenExpGenerator.h    |    2 +-
 core/sql/generator/Generator.h          |    2 +-
 core/sql/nskgmake/executor/Makefile     |    4 -
 core/sql/nskgmake/sqlcat/Makefile       |    4 +-
 core/sql/nskgmake/sqlci/Makefile        |    3 +-
 core/sql/nskgmake/sqlcilib/Makefile     |   15 +-
 core/sql/nskgmake/tdm_sqlcli/Makefile   |    3 +-
 core/sql/nskgmake/tdm_sqlshare/Makefile |    3 +-
 core/sql/qmscommon/QRQueries.cpp        |    4 +-
 core/sql/sqlcat/ReadTableDef.cpp        |   39 -
 core/sql/sqlcat/ReadTableDef.h          |   44 -
 core/sql/sqlcat/enum.h                  |   20 -
 core/sql/sqlcat/readRealArk.cpp         |   34 -
 core/sql/sqlcat/readRealArk.h           |   23 -
 core/sql/sqlci/CSInterface.h            |   84 --
 core/sql/sqlci/CharSetConstants.cpp     |   47 --
 core/sql/sqlci/CharSetConstants.h       |   30 -
 core/sql/sqlci/Define.cpp               |  204 -----
 core/sql/sqlci/Define.h                 |   42 -
 core/sql/sqlci/Formatter.cpp            |    4 -
 core/sql/sqlci/InputStmt.cpp            |   42 +-
 core/sql/sqlci/Log.cpp                  |   51 --
 core/sql/sqlci/MsgCat.cpp               |   76 --
 core/sql/sqlci/MsgCat.h                 |   82 --
 core/sql/sqlci/MxciEHCallBack.cpp       |   53 --
 core/sql/sqlci/MxciEHCallBack.h         |   56 --
 core/sql/sqlci/Obey.cpp                 |   14 -
 core/sql/sqlci/Param.cpp                |    8 -
 core/sql/sqlci/Prepare.cpp              |   11 -
 core/sql/sqlci/RWInterface.cpp          |  119 ---
 core/sql/sqlci/RWInterface.h            |  155 ----
 core/sql/sqlci/ShellCmd.h               |    7 -
 core/sql/sqlci/SqlCmd.cpp               |   50 --
 core/sql/sqlci/Sqlci.h                  |    3 -
 core/sql/sqlci/SqlciCSCmd.cpp           |  341 --------
 core/sql/sqlci/SqlciCSCmd.h             |  158 ----
 core/sql/sqlci/SqlciCSSimulator.cpp     |  112 ---
 core/sql/sqlci/SqlciCmd.cpp             |  102 +--
 core/sql/sqlci/SqlciCmd.h               |   45 +-
 core/sql/sqlci/SqlciEnv.cpp             |   78 --
 core/sql/sqlci/SqlciEnv.h               |   54 +-
 core/sql/sqlci/SqlciError.cpp           |   12 -
 core/sql/sqlci/SqlciError.h             |    4 -
 core/sql/sqlci/SqlciHelp.cpp            |  244 ------
 core/sql/sqlci/SqlciNode.cpp            |   30 -
 core/sql/sqlci/SqlciNode.h              |   10 -
 core/sql/sqlci/SqlciParser.cpp          |   64 +-
 core/sql/sqlci/SqlciRWCmd.cpp           | 1172 --------------------------
 core/sql/sqlci/SqlciRWCmd.h             |  299 -------
 core/sql/sqlci/SqlciRWSimulator.cpp     |  375 --------
 core/sql/sqlci/SqlciReset.cpp           |   45 -
 core/sql/sqlci/SqlciShow.cpp            |   21 -
 core/sql/sqlci/SqlciStmts.cpp           |    8 -
 core/sql/sqlci/SqlciUsage.cpp           |  889 -------------------
 core/sql/sqlci/SqlciUtil.cpp            |   59 --
 core/sql/sqlci/SqlciUtil.h              |   77 --
 core/sql/sqlci/UtilInt.cpp              |   86 --
 core/sql/sqlci/UtilInt.h                |   44 -
 core/sql/sqlci/UtilMsg.cpp              |   69 --
 core/sql/sqlci/UtilMsg.h                |   45 -
 core/sql/sqlci/immudefs.cpp             |  156 ----
 core/sql/sqlci/immudefs.h               |  185 ----
 core/sql/sqlci/sqlci_lex.ll             |   83 +-
 core/sql/sqlci/sqlci_yacc.y             |  416 +--------
 core/sql/sqlci/sqlclicmd.h              |    4 -
 core/sql/sqlci/sqlcmd.h                 |   24 -
 core/sql/sqlcomp/CmpMain.cpp            |    2 +-
 core/sql/sqlcomp/parser.cpp             |    3 +-
 core/sql/sqlmsg/GetErrorMessage.cpp     |    6 +-
 core/sql/sqlshare/catapirequest.cpp     | 1070 -----------------------
 core/sql/sqlshare/catapirequest.h       |  594 -------------
 129 files changed, 49 insertions(+), 9440 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/b952c0d5/core/sql/arkcmp/CmpStoredProc.h
----------------------------------------------------------------------
diff --git a/core/sql/arkcmp/CmpStoredProc.h b/core/sql/arkcmp/CmpStoredProc.h
index 90d281a..3ee41cd 100644
--- a/core/sql/arkcmp/CmpStoredProc.h
+++ b/core/sql/arkcmp/CmpStoredProc.h
@@ -46,7 +46,6 @@
 #include "CmpISPStd.h"
 
 // for the table descriptions
-#include "enum.h"
 #include "CmpCommon.h"
 #include "Collections.h"  // for NAList
 #include "Int64.h"

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/b952c0d5/core/sql/bin/SqlciMain.cpp
----------------------------------------------------------------------
diff --git a/core/sql/bin/SqlciMain.cpp b/core/sql/bin/SqlciMain.cpp
index f453b8a..081b7f9 100644
--- a/core/sql/bin/SqlciMain.cpp
+++ b/core/sql/bin/SqlciMain.cpp
@@ -87,7 +87,6 @@ DEFINE_DOVERS(sqlci)
 #endif
 
 #include "EHException.h"
-#include "MxciEHCallBack.h"
 
 #ifdef _DEBUG_RTS
 #include "ComQueue.h"

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/b952c0d5/core/sql/cli/CliDll.cpp
----------------------------------------------------------------------
diff --git a/core/sql/cli/CliDll.cpp b/core/sql/cli/CliDll.cpp
deleted file mode 100644
index f98e94c..0000000
--- a/core/sql/cli/CliDll.cpp
+++ /dev/null
@@ -1,36 +0,0 @@
-/* -*-C++-*-
- *****************************************************************************
- *
- * File:         CliDll.cpp
- * Description:  CLI DLL-related code for Windows NT - from Cli.cpp originally
- *               
- *               
- * Created:      7/19/97
- * Language:     C++
- *
- *
-// @@@ START COPYRIGHT @@@
-//
-// Licensed to the Apache Software Foundation (ASF) under one
-// or more contributor license agreements.  See the NOTICE file
-// distributed with this work for additional information
-// regarding copyright ownership.  The ASF licenses this file
-// to you under the Apache License, Version 2.0 (the
-// "License"); you may not use this file except in compliance
-// with the License.  You may obtain a copy of the License at
-//
-//   http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing,
-// software distributed under the License is distributed on an
-// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-// KIND, either express or implied.  See the License for the
-// specific language governing permissions and limitations
-// under the License.
-//
-// @@@ END COPYRIGHT @@@
- *
- *
- *****************************************************************************
- */
-

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/b952c0d5/core/sql/cli/CliExtern.cpp
----------------------------------------------------------------------
diff --git a/core/sql/cli/CliExtern.cpp b/core/sql/cli/CliExtern.cpp
index 4d3ed51..d04602b 100644
--- a/core/sql/cli/CliExtern.cpp
+++ b/core/sql/cli/CliExtern.cpp
@@ -75,7 +75,6 @@
 #include "memorymonitor.h"
 
 #include "dfs2rec.h"
-#include "ExMeas.h"
 #include "Statement.h"
 #include "ComSqlId.h"
 

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/b952c0d5/core/sql/cli/CliStubsStaticBuild.cpp
----------------------------------------------------------------------
diff --git a/core/sql/cli/CliStubsStaticBuild.cpp b/core/sql/cli/CliStubsStaticBuild.cpp
deleted file mode 100644
index c5be5ac..0000000
--- a/core/sql/cli/CliStubsStaticBuild.cpp
+++ /dev/null
@@ -1,23 +0,0 @@
-/**********************************************************************
-// @@@ START COPYRIGHT @@@
-//
-// Licensed to the Apache Software Foundation (ASF) under one
-// or more contributor license agreements.  See the NOTICE file
-// distributed with this work for additional information
-// regarding copyright ownership.  The ASF licenses this file
-// to you under the Apache License, Version 2.0 (the
-// "License"); you may not use this file except in compliance
-// with the License.  You may obtain a copy of the License at
-//
-//   http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing,
-// software distributed under the License is distributed on an
-// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-// KIND, either express or implied.  See the License for the
-// specific language governing permissions and limitations
-// under the License.
-//
-// @@@ END COPYRIGHT @@@
-**********************************************************************/
-

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/b952c0d5/core/sql/cli/Globals.cpp
----------------------------------------------------------------------
diff --git a/core/sql/cli/Globals.cpp b/core/sql/cli/Globals.cpp
index cb9c836..c62acfe 100644
--- a/core/sql/cli/Globals.cpp
+++ b/core/sql/cli/Globals.cpp
@@ -48,7 +48,6 @@
 #include "ex_stdh.h"
 #include "ex_frag_rt.h"
 #include "memorymonitor.h"
-#include "ExMeas.h"
 #include "ExStats.h"
 #include "ExUdrServer.h"
 #include "ExSqlComp.h"

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/b952c0d5/core/sql/cli/Globals.h
----------------------------------------------------------------------
diff --git a/core/sql/cli/Globals.h b/core/sql/cli/Globals.h
index b825fb9..22ca7f7 100644
--- a/core/sql/cli/Globals.h
+++ b/core/sql/cli/Globals.h
@@ -63,9 +63,6 @@
 #include <setjmp.h>
 
 #include "NAMemory.h"
-#ifndef BUILD_MUSE
-#include "ExMeas.h"
-#endif
 #include "sqlcli.h"
 #include "QuasiFileManager.h"
 #include "Ipc.h"

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/b952c0d5/core/sql/cli/Module.cpp
----------------------------------------------------------------------
diff --git a/core/sql/cli/Module.cpp b/core/sql/cli/Module.cpp
index f4c5781..d8b9e42 100644
--- a/core/sql/cli/Module.cpp
+++ b/core/sql/cli/Module.cpp
@@ -39,7 +39,6 @@
 // -----------------------------------------------------------------------
 
 #include "cli_stdh.h"
-#include "ExMeas.h"
 
 Module::Module(const char * module_name, Lng32 len, char * pathName, 
                Lng32 pathNameLen, NAHeap *heap)

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/b952c0d5/core/sql/cli/Statement.cpp
----------------------------------------------------------------------
diff --git a/core/sql/cli/Statement.cpp b/core/sql/cli/Statement.cpp
index 8246d9c..83910dd 100644
--- a/core/sql/cli/Statement.cpp
+++ b/core/sql/cli/Statement.cpp
@@ -45,7 +45,6 @@
 #include "ComTdb.h"
 #include "ex_tcb.h"
 #include "ex_root.h"
-#include "ExMeas.h"
 #include "ExStats.h"
 #include "ExSqlComp.h"
 #include "ex_transaction.h"

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/b952c0d5/core/sql/cli/VicKeyValuePair.h
----------------------------------------------------------------------
diff --git a/core/sql/cli/VicKeyValuePair.h b/core/sql/cli/VicKeyValuePair.h
deleted file mode 100644
index ade3632..0000000
--- a/core/sql/cli/VicKeyValuePair.h
+++ /dev/null
@@ -1,22 +0,0 @@
-/**********************************************************************
-// @@@ START COPYRIGHT @@@
-//
-// Licensed to the Apache Software Foundation (ASF) under one
-// or more contributor license agreements.  See the NOTICE file
-// distributed with this work for additional information
-// regarding copyright ownership.  The ASF licenses this file
-// to you under the Apache License, Version 2.0 (the
-// "License"); you may not use this file except in compliance
-// with the License.  You may obtain a copy of the License at
-//
-//   http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing,
-// software distributed under the License is distributed on an
-// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-// KIND, either express or implied.  See the License for the
-// specific language governing permissions and limitations
-// under the License.
-//
-// @@@ END COPYRIGHT @@@
-**********************************************************************/

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/b952c0d5/core/sql/cli/cli_stdh.h
----------------------------------------------------------------------
diff --git a/core/sql/cli/cli_stdh.h b/core/sql/cli/cli_stdh.h
index db5b670..0315c48 100644
--- a/core/sql/cli/cli_stdh.h
+++ b/core/sql/cli/cli_stdh.h
@@ -21,7 +21,7 @@
 #include "Platform.h"
 #include "SQLCLIdev.h"
 #include "ex_god.h"
-#include "exp_space.h"
+#include "ComSpace.h"
 #include "NAHeap.h"
 #include "NAMemory.h"
 #include "str.h"

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/b952c0d5/core/sql/cli/globalsrlversion.cpp
----------------------------------------------------------------------
diff --git a/core/sql/cli/globalsrlversion.cpp b/core/sql/cli/globalsrlversion.cpp
deleted file mode 100644
index f519696..0000000
--- a/core/sql/cli/globalsrlversion.cpp
+++ /dev/null
@@ -1,40 +0,0 @@
-/**********************************************************************
-// @@@ START COPYRIGHT @@@
-//
-// Licensed to the Apache Software Foundation (ASF) under one
-// or more contributor license agreements.  See the NOTICE file
-// distributed with this work for additional information
-// regarding copyright ownership.  The ASF licenses this file
-// to you under the Apache License, Version 2.0 (the
-// "License"); you may not use this file except in compliance
-// with the License.  You may obtain a copy of the License at
-//
-//   http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing,
-// software distributed under the License is distributed on an
-// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-// KIND, either express or implied.  See the License for the
-// specific language governing permissions and limitations
-// under the License.
-//
-// @@@ END COPYRIGHT @@@
-**********************************************************************/
-/* -*-C++-*-
-****************************************************************************
-*
-* File:         SRLVersion.cpp
-* RCS:          
-* Description:
-*
-* Created:      10/22/98
-* Modified:     
-* Language:     C++
-* Status:       $State: Exp $
-*
-*
-*
-****************************************************************************
-*/
-//#include "platform.h"
-

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/b952c0d5/core/sql/cli/globalstubs.cpp
----------------------------------------------------------------------
diff --git a/core/sql/cli/globalstubs.cpp b/core/sql/cli/globalstubs.cpp
deleted file mode 100644
index e224f47..0000000
--- a/core/sql/cli/globalstubs.cpp
+++ /dev/null
@@ -1,37 +0,0 @@
-/**********************************************************************
-// @@@ START COPYRIGHT @@@
-//
-// Licensed to the Apache Software Foundation (ASF) under one
-// or more contributor license agreements.  See the NOTICE file
-// distributed with this work for additional information
-// regarding copyright ownership.  The ASF licenses this file
-// to you under the Apache License, Version 2.0 (the
-// "License"); you may not use this file except in compliance
-// with the License.  You may obtain a copy of the License at
-//
-//   http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing,
-// software distributed under the License is distributed on an
-// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-// KIND, either express or implied.  See the License for the
-// specific language governing permissions and limitations
-// under the License.
-//
-// @@@ END COPYRIGHT @@@
-**********************************************************************/
-
-/* -*-C++-*-
- *****************************************************************************
- *
- * File:         Stubs.cpp
- * Description: contains stubs required for the export SRL
- *
- * Created:      10/19/98
- * Language:     C++
- * Status:       $State: Exp $
- *
- *
- *****************************************************************************
- */
-

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/b952c0d5/core/sql/cli/privsrlversion.cpp
----------------------------------------------------------------------
diff --git a/core/sql/cli/privsrlversion.cpp b/core/sql/cli/privsrlversion.cpp
deleted file mode 100644
index ac1006a..0000000
--- a/core/sql/cli/privsrlversion.cpp
+++ /dev/null
@@ -1,41 +0,0 @@
-/**********************************************************************
-// @@@ START COPYRIGHT @@@
-//
-// Licensed to the Apache Software Foundation (ASF) under one
-// or more contributor license agreements.  See the NOTICE file
-// distributed with this work for additional information
-// regarding copyright ownership.  The ASF licenses this file
-// to you under the Apache License, Version 2.0 (the
-// "License"); you may not use this file except in compliance
-// with the License.  You may obtain a copy of the License at
-//
-//   http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing,
-// software distributed under the License is distributed on an
-// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-// KIND, either express or implied.  See the License for the
-// specific language governing permissions and limitations
-// under the License.
-//
-// @@@ END COPYRIGHT @@@
-**********************************************************************/
-/* -*-C++-*-
-****************************************************************************
-*
-* File:         SRLVersion.cpp
-* RCS:          
-* Description:
-*
-* Created:      10/22/98
-* Modified:     
-* Language:     C++
-* Status:       $State: Exp $
-*
-*
-*
-****************************************************************************
-*/
-
-
-

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/b952c0d5/core/sql/cli/rtdu.cpp
----------------------------------------------------------------------
diff --git a/core/sql/cli/rtdu.cpp b/core/sql/cli/rtdu.cpp
deleted file mode 100644
index da1a5fa..0000000
--- a/core/sql/cli/rtdu.cpp
+++ /dev/null
@@ -1,37 +0,0 @@
-/**********************************************************************
-// @@@ START COPYRIGHT @@@
-//
-// Licensed to the Apache Software Foundation (ASF) under one
-// or more contributor license agreements.  See the NOTICE file
-// distributed with this work for additional information
-// regarding copyright ownership.  The ASF licenses this file
-// to you under the Apache License, Version 2.0 (the
-// "License"); you may not use this file except in compliance
-// with the License.  You may obtain a copy of the License at
-//
-//   http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing,
-// software distributed under the License is distributed on an
-// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-// KIND, either express or implied.  See the License for the
-// specific language governing permissions and limitations
-// under the License.
-//
-// @@@ END COPYRIGHT @@@
-**********************************************************************/
-/* -*-C++-*-
- *****************************************************************************
- *
- * File:         <file>
- * Description:  
- *               
- *               
- * Created:      7/10/95
- * Language:     C++
- *
- *
- *
- *
- *****************************************************************************
- */

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/b952c0d5/core/sql/cli/rtdu.h
----------------------------------------------------------------------
diff --git a/core/sql/cli/rtdu.h b/core/sql/cli/rtdu.h
deleted file mode 100644
index 607fc67..0000000
--- a/core/sql/cli/rtdu.h
+++ /dev/null
@@ -1,24 +0,0 @@
-/**********************************************************************
-// @@@ START COPYRIGHT @@@
-//
-// Licensed to the Apache Software Foundation (ASF) under one
-// or more contributor license agreements.  See the NOTICE file
-// distributed with this work for additional information
-// regarding copyright ownership.  The ASF licenses this file
-// to you under the Apache License, Version 2.0 (the
-// "License"); you may not use this file except in compliance
-// with the License.  You may obtain a copy of the License at
-//
-//   http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing,
-// software distributed under the License is distributed on an
-// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-// KIND, either express or implied.  See the License for the
-// specific language governing permissions and limitations
-// under the License.
-//
-// @@@ END COPYRIGHT @@@
-**********************************************************************/
-
-this file is obsolete and has been removed

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/b952c0d5/core/sql/cli/rtdu2.cpp
----------------------------------------------------------------------
diff --git a/core/sql/cli/rtdu2.cpp b/core/sql/cli/rtdu2.cpp
deleted file mode 100644
index da1a5fa..0000000
--- a/core/sql/cli/rtdu2.cpp
+++ /dev/null
@@ -1,37 +0,0 @@
-/**********************************************************************
-// @@@ START COPYRIGHT @@@
-//
-// Licensed to the Apache Software Foundation (ASF) under one
-// or more contributor license agreements.  See the NOTICE file
-// distributed with this work for additional information
-// regarding copyright ownership.  The ASF licenses this file
-// to you under the Apache License, Version 2.0 (the
-// "License"); you may not use this file except in compliance
-// with the License.  You may obtain a copy of the License at
-//
-//   http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing,
-// software distributed under the License is distributed on an
-// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-// KIND, either express or implied.  See the License for the
-// specific language governing permissions and limitations
-// under the License.
-//
-// @@@ END COPYRIGHT @@@
-**********************************************************************/
-/* -*-C++-*-
- *****************************************************************************
- *
- * File:         <file>
- * Description:  
- *               
- *               
- * Created:      7/10/95
- * Language:     C++
- *
- *
- *
- *
- *****************************************************************************
- */

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/b952c0d5/core/sql/cli/rtdu2.h
----------------------------------------------------------------------
diff --git a/core/sql/cli/rtdu2.h b/core/sql/cli/rtdu2.h
deleted file mode 100644
index d0197c0..0000000
--- a/core/sql/cli/rtdu2.h
+++ /dev/null
@@ -1,28 +0,0 @@
-/**********************************************************************
-// @@@ START COPYRIGHT @@@
-//
-// Licensed to the Apache Software Foundation (ASF) under one
-// or more contributor license agreements.  See the NOTICE file
-// distributed with this work for additional information
-// regarding copyright ownership.  The ASF licenses this file
-// to you under the Apache License, Version 2.0 (the
-// "License"); you may not use this file except in compliance
-// with the License.  You may obtain a copy of the License at
-//
-//   http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing,
-// software distributed under the License is distributed on an
-// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-// KIND, either express or implied.  See the License for the
-// specific language governing permissions and limitations
-// under the License.
-//
-// @@@ END COPYRIGHT @@@
-**********************************************************************/
-#ifndef RTDU2_H
-#define RTDU2_H
-
-this file is obsolete and has been removed
-	
-#endif

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/b952c0d5/core/sql/cli/sqlciSRLStubs.cpp
----------------------------------------------------------------------
diff --git a/core/sql/cli/sqlciSRLStubs.cpp b/core/sql/cli/sqlciSRLStubs.cpp
deleted file mode 100644
index 38ad282..0000000
--- a/core/sql/cli/sqlciSRLStubs.cpp
+++ /dev/null
@@ -1,32 +0,0 @@
-/**********************************************************************
-// @@@ START COPYRIGHT @@@
-//
-// Licensed to the Apache Software Foundation (ASF) under one
-// or more contributor license agreements.  See the NOTICE file
-// distributed with this work for additional information
-// regarding copyright ownership.  The ASF licenses this file
-// to you under the Apache License, Version 2.0 (the
-// "License"); you may not use this file except in compliance
-// with the License.  You may obtain a copy of the License at
-//
-//   http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing,
-// software distributed under the License is distributed on an
-// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-// KIND, either express or implied.  See the License for the
-// specific language governing permissions and limitations
-// under the License.
-//
-// @@@ END COPYRIGHT @@@
-**********************************************************************/
-
-/*
-#include "NAStringDef.h"
-
-
-#ifndef RW_NO_LOCALE
-
-
-#endif  // RW_NO_LOCALE
-*/

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/b952c0d5/core/sql/cli/test.cpp
----------------------------------------------------------------------
diff --git a/core/sql/cli/test.cpp b/core/sql/cli/test.cpp
deleted file mode 100644
index d706a41..0000000
--- a/core/sql/cli/test.cpp
+++ /dev/null
@@ -1,21 +0,0 @@
-// @@@ START COPYRIGHT @@@
-//
-// Licensed to the Apache Software Foundation (ASF) under one
-// or more contributor license agreements.  See the NOTICE file
-// distributed with this work for additional information
-// regarding copyright ownership.  The ASF licenses this file
-// to you under the Apache License, Version 2.0 (the
-// "License"); you may not use this file except in compliance
-// with the License.  You may obtain a copy of the License at
-//
-//   http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing,
-// software distributed under the License is distributed on an
-// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-// KIND, either express or implied.  See the License for the
-// specific language governing permissions and limitations
-// under the License.
-//
-// @@@ END COPYRIGHT @@@
-

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/b952c0d5/core/sql/comexe/FragmentDir.cpp
----------------------------------------------------------------------
diff --git a/core/sql/comexe/FragmentDir.cpp b/core/sql/comexe/FragmentDir.cpp
index 3d4df19..535546c 100644
--- a/core/sql/comexe/FragmentDir.cpp
+++ b/core/sql/comexe/FragmentDir.cpp
@@ -39,7 +39,7 @@
 
 #include "FragmentDir.h"
 //#include "Generator.h"
-#include "exp_space.h"
+#include "ComSpace.h"
 
 // -----------------------------------------------------------------------
 // forward declarations

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/b952c0d5/core/sql/common/NAHeap.h
----------------------------------------------------------------------
diff --git a/core/sql/common/NAHeap.h b/core/sql/common/NAHeap.h
index 7c00356..6a38511 100644
--- a/core/sql/common/NAHeap.h
+++ b/core/sql/common/NAHeap.h
@@ -52,7 +52,7 @@ class ostream;
 //    allocateMemory, deallocateMemory methods defined.
 //
 // -class NASpace: public CollHeap
-//    NASpace acts as a Space in exp_space.h
+//    NASpace acts as a Space in ComSpace.h
 //
 // -class NAMFHeap: public CollHeap
 //    NAMFHeap use malloc/free.

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/b952c0d5/core/sql/common/SqlExpDllDefines.h
----------------------------------------------------------------------
diff --git a/core/sql/common/SqlExpDllDefines.h b/core/sql/common/SqlExpDllDefines.h
deleted file mode 100644
index c5be5ac..0000000
--- a/core/sql/common/SqlExpDllDefines.h
+++ /dev/null
@@ -1,23 +0,0 @@
-/**********************************************************************
-// @@@ START COPYRIGHT @@@
-//
-// Licensed to the Apache Software Foundation (ASF) under one
-// or more contributor license agreements.  See the NOTICE file
-// distributed with this work for additional information
-// regarding copyright ownership.  The ASF licenses this file
-// to you under the Apache License, Version 2.0 (the
-// "License"); you may not use this file except in compliance
-// with the License.  You may obtain a copy of the License at
-//
-//   http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing,
-// software distributed under the License is distributed on an
-// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-// KIND, either express or implied.  See the License for the
-// specific language governing permissions and limitations
-// under the License.
-//
-// @@@ END COPYRIGHT @@@
-**********************************************************************/
-

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/b952c0d5/core/sql/common/SqlExportDllDefines.h
----------------------------------------------------------------------
diff --git a/core/sql/common/SqlExportDllDefines.h b/core/sql/common/SqlExportDllDefines.h
deleted file mode 100644
index 178ea35..0000000
--- a/core/sql/common/SqlExportDllDefines.h
+++ /dev/null
@@ -1,20 +0,0 @@
-// @@@ START COPYRIGHT @@@
-//
-// Licensed to the Apache Software Foundation (ASF) under one
-// or more contributor license agreements.  See the NOTICE file
-// distributed with this work for additional information
-// regarding copyright ownership.  The ASF licenses this file
-// to you under the Apache License, Version 2.0 (the
-// "License"); you may not use this file except in compliance
-// with the License.  You may obtain a copy of the License at
-//
-//   http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing,
-// software distributed under the License is distributed on an
-// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-// KIND, either express or implied.  See the License for the
-// specific language governing permissions and limitations
-// under the License.
-//
-// @@@ END COPYRIGHT @@@

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/b952c0d5/core/sql/executor/ExAll.cpp
----------------------------------------------------------------------
diff --git a/core/sql/executor/ExAll.cpp b/core/sql/executor/ExAll.cpp
index aae565b..ac34a06 100644
--- a/core/sql/executor/ExAll.cpp
+++ b/core/sql/executor/ExAll.cpp
@@ -72,7 +72,6 @@
 #include "ExExplain.cpp"
 #include "ExFirstN.cpp"	
 #include "ExIar.cpp"		
-#include "ExMeas.cpp"	
 #include "ExPack.cpp"		
 #include "ExPackedRows.cpp"
 #include "ExParLabOp.cpp"	

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/b952c0d5/core/sql/executor/ExExeUtilMisc.cpp
----------------------------------------------------------------------
diff --git a/core/sql/executor/ExExeUtilMisc.cpp b/core/sql/executor/ExExeUtilMisc.cpp
index dc9808a..7f4ba7a 100644
--- a/core/sql/executor/ExExeUtilMisc.cpp
+++ b/core/sql/executor/ExExeUtilMisc.cpp
@@ -55,7 +55,6 @@
 #include  "ComSmallDefs.h"
 //#include  "hdfs.h" //will replace with LOB interface
 #include <unistd.h>
-//#include  "catapirequest.h"
 
 //////////////////////////////////////////////////////////
 // classes defined in this file:

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/b952c0d5/core/sql/executor/ExMeas.cpp
----------------------------------------------------------------------
diff --git a/core/sql/executor/ExMeas.cpp b/core/sql/executor/ExMeas.cpp
deleted file mode 100644
index ade3632..0000000
--- a/core/sql/executor/ExMeas.cpp
+++ /dev/null
@@ -1,22 +0,0 @@
-/**********************************************************************
-// @@@ START COPYRIGHT @@@
-//
-// Licensed to the Apache Software Foundation (ASF) under one
-// or more contributor license agreements.  See the NOTICE file
-// distributed with this work for additional information
-// regarding copyright ownership.  The ASF licenses this file
-// to you under the Apache License, Version 2.0 (the
-// "License"); you may not use this file except in compliance
-// with the License.  You may obtain a copy of the License at
-//
-//   http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing,
-// software distributed under the License is distributed on an
-// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-// KIND, either express or implied.  See the License for the
-// specific language governing permissions and limitations
-// under the License.
-//
-// @@@ END COPYRIGHT @@@
-**********************************************************************/

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/b952c0d5/core/sql/executor/ExMeas.h
----------------------------------------------------------------------
diff --git a/core/sql/executor/ExMeas.h b/core/sql/executor/ExMeas.h
deleted file mode 100644
index ade3632..0000000
--- a/core/sql/executor/ExMeas.h
+++ /dev/null
@@ -1,22 +0,0 @@
-/**********************************************************************
-// @@@ START COPYRIGHT @@@
-//
-// Licensed to the Apache Software Foundation (ASF) under one
-// or more contributor license agreements.  See the NOTICE file
-// distributed with this work for additional information
-// regarding copyright ownership.  The ASF licenses this file
-// to you under the Apache License, Version 2.0 (the
-// "License"); you may not use this file except in compliance
-// with the License.  You may obtain a copy of the License at
-//
-//   http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing,
-// software distributed under the License is distributed on an
-// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-// KIND, either express or implied.  See the License for the
-// specific language governing permissions and limitations
-// under the License.
-//
-// @@@ END COPYRIGHT @@@
-**********************************************************************/

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/b952c0d5/core/sql/executor/ExStats.h
----------------------------------------------------------------------
diff --git a/core/sql/executor/ExStats.h b/core/sql/executor/ExStats.h
index 6dfee82..8c1dcbb 100644
--- a/core/sql/executor/ExStats.h
+++ b/core/sql/executor/ExStats.h
@@ -51,7 +51,6 @@
 #include "ssmpipc.h"
 #include "ComCextdecs.h"
 #include "ex_tcb.h"
-#include "ExMeas.h"
 #include "SQLCLIdev.h"
 #include "ExExeUtil.h"
 #include "ExpLOBstats.h"

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/b952c0d5/core/sql/executor/dmeasql.h
----------------------------------------------------------------------
diff --git a/core/sql/executor/dmeasql.h b/core/sql/executor/dmeasql.h
deleted file mode 100644
index ade3632..0000000
--- a/core/sql/executor/dmeasql.h
+++ /dev/null
@@ -1,22 +0,0 @@
-/**********************************************************************
-// @@@ START COPYRIGHT @@@
-//
-// Licensed to the Apache Software Foundation (ASF) under one
-// or more contributor license agreements.  See the NOTICE file
-// distributed with this work for additional information
-// regarding copyright ownership.  The ASF licenses this file
-// to you under the Apache License, Version 2.0 (the
-// "License"); you may not use this file except in compliance
-// with the License.  You may obtain a copy of the License at
-//
-//   http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing,
-// software distributed under the License is distributed on an
-// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-// KIND, either express or implied.  See the License for the
-// specific language governing permissions and limitations
-// under the License.
-//
-// @@@ END COPYRIGHT @@@
-**********************************************************************/

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/b952c0d5/core/sql/executor/ex_esp_frag_dir.cpp
----------------------------------------------------------------------
diff --git a/core/sql/executor/ex_esp_frag_dir.cpp b/core/sql/executor/ex_esp_frag_dir.cpp
index 5627fe2..96b6c92 100644
--- a/core/sql/executor/ex_esp_frag_dir.cpp
+++ b/core/sql/executor/ex_esp_frag_dir.cpp
@@ -48,7 +48,7 @@
 #include "ex_tcb.h"
 #include "ex_split_bottom.h"
 #include "ex_send_bottom.h"
-#include "exp_space.h"
+#include "ComSpace.h"
 #include "ComDiags.h"
 #include "LateBindInfo.h"
 #include "NAHeap.h"

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/b952c0d5/core/sql/executor/ex_globals.cpp
----------------------------------------------------------------------
diff --git a/core/sql/executor/ex_globals.cpp b/core/sql/executor/ex_globals.cpp
index add53ee..7554a9d 100644
--- a/core/sql/executor/ex_globals.cpp
+++ b/core/sql/executor/ex_globals.cpp
@@ -41,7 +41,6 @@
 #include "ComTdb.h"
 #include "ex_tcb.h"
 #include "ExStats.h"
-#include "ExMeas.h"
 #include "ex_globals.h"
 #include "Globals.h"
 #include "SqlStats.h"

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/b952c0d5/core/sql/executor/ex_stdh.h
----------------------------------------------------------------------
diff --git a/core/sql/executor/ex_stdh.h b/core/sql/executor/ex_stdh.h
index 72488ea..24389c5 100644
--- a/core/sql/executor/ex_stdh.h
+++ b/core/sql/executor/ex_stdh.h
@@ -59,7 +59,7 @@
 #include	"ExScheduler.h"
 #include        "ex_io_control.h"
 #include	"sql_buffer.h"
-#include        "exp_space.h"
+#include        "ComSpace.h"
 #include        "dfs2rec.h"
 
 #endif // EX_STDH_H

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/b952c0d5/core/sql/executor/rcb.h
----------------------------------------------------------------------
diff --git a/core/sql/executor/rcb.h b/core/sql/executor/rcb.h
deleted file mode 100644
index 178ea35..0000000
--- a/core/sql/executor/rcb.h
+++ /dev/null
@@ -1,20 +0,0 @@
-// @@@ START COPYRIGHT @@@
-//
-// Licensed to the Apache Software Foundation (ASF) under one
-// or more contributor license agreements.  See the NOTICE file
-// distributed with this work for additional information
-// regarding copyright ownership.  The ASF licenses this file
-// to you under the Apache License, Version 2.0 (the
-// "License"); you may not use this file except in compliance
-// with the License.  You may obtain a copy of the License at
-//
-//   http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing,
-// software distributed under the License is distributed on an
-// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-// KIND, either express or implied.  See the License for the
-// specific language governing permissions and limitations
-// under the License.
-//
-// @@@ END COPYRIGHT @@@

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/b952c0d5/core/sql/executor/stubs.cpp
----------------------------------------------------------------------
diff --git a/core/sql/executor/stubs.cpp b/core/sql/executor/stubs.cpp
deleted file mode 100644
index 0d0386d..0000000
--- a/core/sql/executor/stubs.cpp
+++ /dev/null
@@ -1,38 +0,0 @@
-/**********************************************************************
-// @@@ START COPYRIGHT @@@
-//
-// Licensed to the Apache Software Foundation (ASF) under one
-// or more contributor license agreements.  See the NOTICE file
-// distributed with this work for additional information
-// regarding copyright ownership.  The ASF licenses this file
-// to you under the Apache License, Version 2.0 (the
-// "License"); you may not use this file except in compliance
-// with the License.  You may obtain a copy of the License at
-//
-//   http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing,
-// software distributed under the License is distributed on an
-// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-// KIND, either express or implied.  See the License for the
-// specific language governing permissions and limitations
-// under the License.
-//
-// @@@ END COPYRIGHT @@@
-**********************************************************************/
-/* -*-C++-*-
- *****************************************************************************
- *
- * File:         <file>
- * Description:  
- *               
- *               
- * Created:      7/10/95
- * Language:     C++
- *
- *
- *
- *
- *****************************************************************************
- */
-

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/b952c0d5/core/sql/executor/stubs2.cpp
----------------------------------------------------------------------
diff --git a/core/sql/executor/stubs2.cpp b/core/sql/executor/stubs2.cpp
deleted file mode 100644
index 127422a..0000000
--- a/core/sql/executor/stubs2.cpp
+++ /dev/null
@@ -1,26 +0,0 @@
-/**********************************************************************
-// @@@ START COPYRIGHT @@@
-//
-// Licensed to the Apache Software Foundation (ASF) under one
-// or more contributor license agreements.  See the NOTICE file
-// distributed with this work for additional information
-// regarding copyright ownership.  The ASF licenses this file
-// to you under the Apache License, Version 2.0 (the
-// "License"); you may not use this file except in compliance
-// with the License.  You may obtain a copy of the License at
-//
-//   http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing,
-// software distributed under the License is distributed on an
-// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-// KIND, either express or implied.  See the License for the
-// specific language governing permissions and limitations
-// under the License.
-//
-// @@@ END COPYRIGHT @@@
-**********************************************************************/
-
-
-
-

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/b952c0d5/core/sql/executor/tempfile.cpp
----------------------------------------------------------------------
diff --git a/core/sql/executor/tempfile.cpp b/core/sql/executor/tempfile.cpp
deleted file mode 100644
index d868dd3..0000000
--- a/core/sql/executor/tempfile.cpp
+++ /dev/null
@@ -1,37 +0,0 @@
-/* -*-C++-*-
-******************************************************************************
-*
-* File:         tempfile.C
-* Description:  Methods temporary overflow files
-*
-*               
-*               
-* Created:      08/14/96
-* Language:     C++
-*
-*
-// @@@ START COPYRIGHT @@@
-//
-// Licensed to the Apache Software Foundation (ASF) under one
-// or more contributor license agreements.  See the NOTICE file
-// distributed with this work for additional information
-// regarding copyright ownership.  The ASF licenses this file
-// to you under the Apache License, Version 2.0 (the
-// "License"); you may not use this file except in compliance
-// with the License.  You may obtain a copy of the License at
-//
-//   http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing,
-// software distributed under the License is distributed on an
-// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-// KIND, either express or implied.  See the License for the
-// specific language governing permissions and limitations
-// under the License.
-//
-// @@@ END COPYRIGHT @@@
-*
-*
-******************************************************************************
-*/
-

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/b952c0d5/core/sql/executor/tempfile.h
----------------------------------------------------------------------
diff --git a/core/sql/executor/tempfile.h b/core/sql/executor/tempfile.h
deleted file mode 100644
index 72fdfae..0000000
--- a/core/sql/executor/tempfile.h
+++ /dev/null
@@ -1,37 +0,0 @@
-#ifndef TEMPFILE_H
-#define TEMPFILE_H
-/* -*-C++-*-
- *****************************************************************************
- *
- * File:         <file>
- * Description:  
- *               
- *               
- * Created:      8/14/96
- * Language:     C++
- *
- *
-// @@@ START COPYRIGHT @@@
-//
-// Licensed to the Apache Software Foundation (ASF) under one
-// or more contributor license agreements.  See the NOTICE file
-// distributed with this work for additional information
-// regarding copyright ownership.  The ASF licenses this file
-// to you under the Apache License, Version 2.0 (the
-// "License"); you may not use this file except in compliance
-// with the License.  You may obtain a copy of the License at
-//
-//   http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing,
-// software distributed under the License is distributed on an
-// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-// KIND, either express or implied.  See the License for the
-// specific language governing permissions and limitations
-// under the License.
-//
-// @@@ END COPYRIGHT @@@
- *
- *
- *****************************************************************************
- */

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/b952c0d5/core/sql/exp/ExpAtp.h
----------------------------------------------------------------------
diff --git a/core/sql/exp/ExpAtp.h b/core/sql/exp/ExpAtp.h
index 24ac649..2236dcd 100644
--- a/core/sql/exp/ExpAtp.h
+++ b/core/sql/exp/ExpAtp.h
@@ -38,7 +38,6 @@
 #ifndef EXP_ATP_H
 #define EXP_ATP_H
 
-#include "SqlExpDllDefines.h"
 // Local defines for assertions
 //
 //#define ExAtpAssert(a,b) ex_assert(a,b)

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/b952c0d5/core/sql/exp/ExpCriDesc.cpp
----------------------------------------------------------------------
diff --git a/core/sql/exp/ExpCriDesc.cpp b/core/sql/exp/ExpCriDesc.cpp
index 795263b..d982efc 100644
--- a/core/sql/exp/ExpCriDesc.cpp
+++ b/core/sql/exp/ExpCriDesc.cpp
@@ -39,7 +39,7 @@
 
 #include "ComPackDefs.h"
 #include "ExpCriDesc.h"
-#include "exp_space.h"
+#include "ComSpace.h"
 #include "exp_tuple_desc.h"
 #include <iostream>
 

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/b952c0d5/core/sql/exp/ExpCriDesc.h
----------------------------------------------------------------------
diff --git a/core/sql/exp/ExpCriDesc.h b/core/sql/exp/ExpCriDesc.h
index 951e9d7..ffb7859 100644
--- a/core/sql/exp/ExpCriDesc.h
+++ b/core/sql/exp/ExpCriDesc.h
@@ -41,7 +41,6 @@
 class ExpTupleDesc;
 class ex_cri_desc;
 
-#include "SqlExpDllDefines.h"
 #include "NAVersionedObject.h"
 #include "exp_tuple_desc.h"
 

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/b952c0d5/core/sql/exp/ExpDll.cpp
----------------------------------------------------------------------
diff --git a/core/sql/exp/ExpDll.cpp b/core/sql/exp/ExpDll.cpp
index 9e13620..7bca77a 100644
--- a/core/sql/exp/ExpDll.cpp
+++ b/core/sql/exp/ExpDll.cpp
@@ -36,9 +36,6 @@
 
 #include "Platform.h"
 
-
-#include "SqlExpDllDefines.h"
-
 #include <setjmp.h>
 
 THREAD_P jmp_buf ExportJmpBuf;

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/b952c0d5/core/sql/exp/ExpError.h
----------------------------------------------------------------------
diff --git a/core/sql/exp/ExpError.h b/core/sql/exp/ExpError.h
index 7b993de..d1d047b 100644
--- a/core/sql/exp/ExpError.h
+++ b/core/sql/exp/ExpError.h
@@ -37,7 +37,6 @@
 #ifndef EXP_ERROR_H
 #define EXP_ERROR_H
 
-#include "SqlExpDllDefines.h"
 #include <stdio.h>
 
 class ComDiagsArea;

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/b952c0d5/core/sql/exp/ExpLOB.h
----------------------------------------------------------------------
diff --git a/core/sql/exp/ExpLOB.h b/core/sql/exp/ExpLOB.h
index 850f6bc..58979a8 100644
--- a/core/sql/exp/ExpLOB.h
+++ b/core/sql/exp/ExpLOB.h
@@ -41,7 +41,6 @@
  */
 
 
-#include "SqlExpDllDefines.h"
 #include "exp_clause.h"
 #include "ExpLOBenums.h"
 

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/b952c0d5/core/sql/exp/ExpPCodeInstruction.h
----------------------------------------------------------------------
diff --git a/core/sql/exp/ExpPCodeInstruction.h b/core/sql/exp/ExpPCodeInstruction.h
index 2cf40e2..59a6153 100644
--- a/core/sql/exp/ExpPCodeInstruction.h
+++ b/core/sql/exp/ExpPCodeInstruction.h
@@ -68,7 +68,6 @@ typedef Int32 PCodeBinary;
 // Currently 1 on 32-bit platform and 2 on 64-bit platform
 #define PCODEBINARIES_PER_PTR sizeof(char*)/sizeof(PCodeBinary)
 
-#include "SqlExpDllDefines.h"
 // PCIType
 //
 // The PCIType class encapsulates and provides a uniform name space

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/b952c0d5/core/sql/exp/ExpPCodeList.h
----------------------------------------------------------------------
diff --git a/core/sql/exp/ExpPCodeList.h b/core/sql/exp/ExpPCodeList.h
index eb93f3f..5be0576 100644
--- a/core/sql/exp/ExpPCodeList.h
+++ b/core/sql/exp/ExpPCodeList.h
@@ -39,7 +39,6 @@
 #ifndef ExpPCodeList_h
 #define ExpPCodeList_h
 
-#include "SqlExpDllDefines.h"
 #include "ExpPCodeInstruction.h"
 
 // Forward External Declaractions

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/b952c0d5/core/sql/exp/ExpPCodeOptimizations.h
----------------------------------------------------------------------
diff --git a/core/sql/exp/ExpPCodeOptimizations.h b/core/sql/exp/ExpPCodeOptimizations.h
index 31ed8b9..8df61e9 100644
--- a/core/sql/exp/ExpPCodeOptimizations.h
+++ b/core/sql/exp/ExpPCodeOptimizations.h
@@ -66,7 +66,7 @@
 #include "exp_attrs.h"
 
 #include "Collections.h"
-#include "exp_space.h"
+#include "ComSpace.h"
 #include "Int64.h"
 #include "OperTypeEnum.h"
 #include "ExpAtp.h"

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/b952c0d5/core/sql/exp/ExpSeqGen.h
----------------------------------------------------------------------
diff --git a/core/sql/exp/ExpSeqGen.h b/core/sql/exp/ExpSeqGen.h
index cb1c264..3db3ab0 100644
--- a/core/sql/exp/ExpSeqGen.h
+++ b/core/sql/exp/ExpSeqGen.h
@@ -41,7 +41,6 @@
  */
 
 
-#include "SqlExpDllDefines.h"
 #include "SequenceGeneratorAttributes.h"
 #include "ComQueue.h"
 

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/b952c0d5/core/sql/exp/ExpSqlTupp.h
----------------------------------------------------------------------
diff --git a/core/sql/exp/ExpSqlTupp.h b/core/sql/exp/ExpSqlTupp.h
index ae749de..9fe0dc7 100644
--- a/core/sql/exp/ExpSqlTupp.h
+++ b/core/sql/exp/ExpSqlTupp.h
@@ -37,7 +37,6 @@
 #ifndef EXP_SQL_TUPP_H
 #define EXP_SQL_TUPP_H
 
-#include "SqlExpDllDefines.h"
 #include "BaseTypes.h"
 
 // Local defines for assertions

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/b952c0d5/core/sql/exp/exp_clause.h
----------------------------------------------------------------------
diff --git a/core/sql/exp/exp_clause.h b/core/sql/exp/exp_clause.h
index 24fec96..404dcb1 100644
--- a/core/sql/exp/exp_clause.h
+++ b/core/sql/exp/exp_clause.h
@@ -43,7 +43,7 @@
 #include "exp_attrs.h"
 
 #include "Collections.h"
-#include "exp_space.h"
+#include "ComSpace.h"
 #include "Int64.h"
 #include "OperTypeEnum.h"
 #include "ExpAtp.h"

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/b952c0d5/core/sql/exp/exp_clause_derived.h
----------------------------------------------------------------------
diff --git a/core/sql/exp/exp_clause_derived.h b/core/sql/exp/exp_clause_derived.h
index adfa2c6..45d577b 100644
--- a/core/sql/exp/exp_clause_derived.h
+++ b/core/sql/exp/exp_clause_derived.h
@@ -41,7 +41,6 @@
 #ifndef EXP_CLAUSE_DERIVED_H
 #define EXP_CLAUSE_DERIVED_H
 
-#include "SqlExpDllDefines.h"
 #include "exp_clause.h"
 #include "exp_like.h"
 #include <byteswap.h>

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/b952c0d5/core/sql/exp/exp_expr.h
----------------------------------------------------------------------
diff --git a/core/sql/exp/exp_expr.h b/core/sql/exp/exp_expr.h
index 9779fd5..477e855 100644
--- a/core/sql/exp/exp_expr.h
+++ b/core/sql/exp/exp_expr.h
@@ -41,7 +41,6 @@
 
 // -----------------------------------------------------------------------
 
-#include "SqlExpDllDefines.h"
 #include "NAVersionedObject.h" // for NAVersionedObject
 #include "ExpAtp.h"
 #include "ExpPCode.h"

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/b952c0d5/core/sql/exp/exp_space.cpp
----------------------------------------------------------------------
diff --git a/core/sql/exp/exp_space.cpp b/core/sql/exp/exp_space.cpp
deleted file mode 100644
index a50915e..0000000
--- a/core/sql/exp/exp_space.cpp
+++ /dev/null
@@ -1,358 +0,0 @@
-
-// RETIRED: REFERED TO ComSpace.cpp
-#if 0
-/* -*-C++-*-
- *****************************************************************************
- *
- * File:         <file>
- * Description:  
- *               
- * Created:      7/10/95
- * Language:     C++
- *
-// @@@ START COPYRIGHT @@@
-//
-// Licensed to the Apache Software Foundation (ASF) under one
-// or more contributor license agreements.  See the NOTICE file
-// distributed with this work for additional information
-// regarding copyright ownership.  The ASF licenses this file
-// to you under the Apache License, Version 2.0 (the
-// "License"); you may not use this file except in compliance
-// with the License.  You may obtain a copy of the License at
-//
-//   http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing,
-// software distributed under the License is distributed on an
-// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-// KIND, either express or implied.  See the License for the
-// specific language governing permissions and limitations
-// under the License.
-//
-// @@@ END COPYRIGHT @@@
- *
- *****************************************************************************
- */
-
-#include <limits.h>
-
-#include <stdlib.h>
-
-#include "NAAssert.h"
-#include "exp_space.h"
-#include "str.h"
-#include "dp2.h"
-
-
-Space::Space(SpaceType type)
-: type_(type)
-{
-  firstBlock_ = 
-    lastBlock_ = (Block *)0;
-
-  totalSize_ = 0;
-};
-
-
-Space::~Space()
-{
-  // free up all the blocks attached to this space pointer.
-  Block * currBlock = firstBlock_;
-  switch (type_)
-    {
-    case EXECUTOR_SPACE:
-      {
-	// later change it to deallocate from executor segment. TBD.
-	while (currBlock)
-	  {
-	    Block * nextBlock = currBlock->getNext();
-	    
-	    free(currBlock);
-	    currBlock = nextBlock;
-	  }
-      }
-      break;
-      
-    case SYSTEM_SPACE:
-      {
-	while (currBlock)
-	  {
-	    Block * nextBlock = currBlock->getNext();
-	    
-	    free(currBlock);
-	    currBlock = nextBlock;
-	  }
-      }
-      break;
-    }
-}
-
-Lng32 Space::defaultBlockSize(SpaceType type)
-{
-  Lng32 block_size;
-  
-  // use default size
-  switch (type)
-    {
-    case EXECUTOR_SPACE:
-      block_size = EXECUTOR_BLOCK_MAX_SIZE;
-      break;
-      
-    case SYSTEM_SPACE:
-      block_size = EXECUTOR_BLOCK_MAX_SIZE; //SYSTEM_BLOCK_MAX_SIZE;
-      break;
-    }
-  
-  return block_size;
-}
-
-
-
-Block * Space::allocateBlock(SpaceType type, Lng32 in_block_size)
-{
-  Block * block;
-  
-  char * block_ptr;
-  Lng32 block_size;
-  Lng32 data_size;
-  char * data_ptr;
-  
-  Lng32 needed_size = ((((sizeof(Block) + in_block_size) - 1)/8) + 1) * 8;
-  if (needed_size > defaultBlockSize(type))
-    block_size = needed_size;
-  else
-    block_size = defaultBlockSize(type);
-  
-      
-  switch (type)
-    {
-    case EXECUTOR_SPACE:
-      {
-	// allocate space from executor extended segment. TBD.
-	// For now, get it from system space.
-	block_ptr = (char *)malloc(block_size);
-	data_ptr = block_ptr + ((((sizeof(Block)-1)/8)+1)*8);
-	data_size = block_size - ((((sizeof(Block)-1)/8)+1)*8);
-      }
-      break;
-      
-    case SYSTEM_SPACE:
-      {
-	// allocate space from system heap.
-	block_ptr = (char *)malloc(block_size);
-	data_ptr = block_ptr + ((((sizeof(Block)-1)/8)+1)*8);
-	data_size = block_size - ((((sizeof(Block)-1)/8)+1)*8);
-	
-      }
-      break;
-    }
-  
-  block = (Block *)block_ptr;
-  
-  if(block) block->init(block_size, data_size, data_ptr);
-  
-  return block;  
-}
-
-
-char *Space::privateAllocateSpace(ULng32 size)
-{
-  if (size <= 0)
-    return 0;
-
-  if (!firstBlock_)
-    {
-      firstBlock_ = lastBlock_ = allocateBlock(type_, size);
-    }
-
-  Block * curr_block = firstBlock_;
-  
-  // see if space is available in any of the existing blocks.
-  char * sp = 0;
-  while ((curr_block) && (! (sp = curr_block->allocateMemory(size))))
-    {
-      curr_block = curr_block->getNext();
-    }
-  
-  if (!sp)
-    {
-      // space not found in any existing block.
-      // Allocate a new one and append it to the last block.
-      // The minimum space allocated in a block is max size for 'type'.
-      curr_block = allocateBlock(type_, size);
-      
-      lastBlock_->setNext(curr_block);
-      lastBlock_ = curr_block;
-      
-      sp = curr_block->allocateMemory(size);
-    }
-  
-  totalSize_ += size;
-  
-  return sp;
-}
-
-void * Space::allocateMemory(size_t size)
-{
-  return allocateAlignedSpace(size);
-}
-
-
-char *Space::allocateAlignedSpace(ULng32 size)
-{
-  if (size <= 0)
-    return 0;
-  
-  // return aligned space on an 8 byte boundary
-  return privateAllocateSpace((((size-1)/8)+1)*8);
-}
-
-// If countPrefixSize == 0, make a null-terminated string;
-// else,                    make a count-prefixed string (no null terminal).
-//
-char *Space::allocateAndCopyToAlignedSpace(const char* dp,
-					   size_t dlen,
-					   size_t countPrefixSize)
-{
-  size_t alen;
-  if (countPrefixSize == 0)
-    alen = dlen + 1;
-  else
-    alen = countPrefixSize + dlen;
-  char* rp = allocateAlignedSpace(alen);
-
-  switch (countPrefixSize) {
-    case 0:
-	break;
-    case sizeof(char):
-	assert(dlen <= UCHAR_MAX);	// NT_PORT ( bd 10/30/96 ) added missing semicolon
-	*(char *)rp = dlen;
-	break;
-    case sizeof(short):
-	assert(dlen <= USHRT_MAX);	// NT_PORT ( bd 10/30/96 ) added missing semicolon
-	*(short *)rp = dlen;
-	break;
-    case sizeof(Int32):
-	assert(dlen <= UINT_MAX);	// NT_PORT ( bd 10/30/96 ) added missing semicolon
-	*(Int32 *)rp = dlen;
-	break;
-    default:	
-	assert(0==1);
-  }
-  char* rdp = rp + countPrefixSize;
-  str_cpy_all(rdp, dp, dlen);
-  if (countPrefixSize == 0) rdp[dlen] = '\0';
-
-  return rp;
-} 	// allocateAndCopyToAlignedSpace()
-
-
-Lng32 Space::convertToOffset(void * ptr)
-{
-  Block * curr_block = firstBlock_;
-  
-  // find which block this pointer is allocated from.
-  short found = 0;
-  Lng32 prev_offset = 0;
-  while ((curr_block) && (! found))
-    {
-      if ((Lng32)((char *)ptr) >= (Lng32)(curr_block->getDataPtr()) &&
-	  (Lng32)((char *)ptr) < ((Lng32)(curr_block->getDataPtr()) + 
-				 curr_block->getAllocatedSize()))
-	return -((Lng32)((char *)ptr) - (Lng32)(curr_block->getDataPtr())
-		 + prev_offset);
-      
-      prev_offset += curr_block->getAllocatedSize();
-      
-      curr_block = curr_block->getNext();
-    }
-
-  // pointer not allocated from any of the existing blocks.
-  // Return it as is, it is either an offset already or a
-  // garbage pointer. The caller should handle error case.
-  return (Lng32)((char *)ptr);
-}
-
-
-Lng32 Space::allocAndCopy(void * from, ULng32 size)
-{
-  char * to = allocateAlignedSpace(size);
-  str_cpy_all(to, (char *)from, size);
-  return (convertToOffset(to));
-}
-
-
-#if 0 /* NOT CURRENTLY USED and does not compile for 64 bits */
-short Space::isOffset(void * ptr)
-{
-  if ((Lng32)ptr < 0)
-    return -1;
-  else
-    return 0;
-}
-#endif
-
-// moves all the Blocks into the output contiguous buffer.
-
-char * Space::makeContiguous(char * out_buf, ULng32 out_buflen)
-{
-  Block * curr_block = firstBlock_;
-  Lng32 curr_offset = 0;
-  while (curr_block)
-    {
-      // NT_PORT (BD 7/11/96) cast to unsigned long
-     if (out_buflen - curr_offset < (ULng32)curr_block->getAllocatedSize())
-		return 0;
-      
-      str_cpy_all(&out_buf[curr_offset],
-		  curr_block->getDataPtr(),
-		  curr_block->getAllocatedSize());
-
-      curr_offset += curr_block->getAllocatedSize();
-      curr_block = curr_block->getNext();
-    }
-  
-  return out_buf;
-};
-
-/////////////////////////////////////////////
-//
-// class Block
-//
-/////////////////////////////////////////////
-
-void Block::init(Lng32 block_size, Lng32 data_size, char * data_ptr)
-{  
-  dataPtr_ = data_ptr;
-
-  blockSize_ = block_size;
-  
-  freeSpaceSize_ =
-    maxSize_ = data_size;
-  
-  allocatedSize_ = 0;
-  
-  freeSpaceOffset_ = 0;
-  
-  nextBlock_ = (Block *)0;
-}
-  
-
-char *Block::allocateMemory(ULng32 size)
-{
-  // NT_PORT (BD 7/11/96) cast to long
-  if (freeSpaceSize_ < (Lng32) size)
-    return 0;
-  
-  freeSpaceSize_ -= size;
-  allocatedSize_ += size;
-  
-  char *s = &dataPtr_[freeSpaceOffset_];
-  
-  freeSpaceOffset_ += size;
-  
-  return s;
-}
-
-#endif
-

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/b952c0d5/core/sql/exp/exp_space.h
----------------------------------------------------------------------
diff --git a/core/sql/exp/exp_space.h b/core/sql/exp/exp_space.h
deleted file mode 100644
index 1c24c77..0000000
--- a/core/sql/exp/exp_space.h
+++ /dev/null
@@ -1,22 +0,0 @@
-// @@@ START COPYRIGHT @@@
-//
-// Licensed to the Apache Software Foundation (ASF) under one
-// or more contributor license agreements.  See the NOTICE file
-// distributed with this work for additional information
-// regarding copyright ownership.  The ASF licenses this file
-// to you under the Apache License, Version 2.0 (the
-// "License"); you may not use this file except in compliance
-// with the License.  You may obtain a copy of the License at
-//
-//   http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing,
-// software distributed under the License is distributed on an
-// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-// KIND, either express or implied.  See the License for the
-// specific language governing permissions and limitations
-// under the License.
-//
-// @@@ END COPYRIGHT @@@
-#include "SqlExpDllDefines.h"
-#include "ComSpace.h"

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/b952c0d5/core/sql/exp/exp_stdh.h
----------------------------------------------------------------------
diff --git a/core/sql/exp/exp_stdh.h b/core/sql/exp/exp_stdh.h
index 2c317cb..3ab0113 100644
--- a/core/sql/exp/exp_stdh.h
+++ b/core/sql/exp/exp_stdh.h
@@ -37,7 +37,6 @@
  *****************************************************************************
  */
 
-#include "SqlExpDllDefines.h"
 #include "Platform.h"
 
 #ifdef _DEBUG
@@ -48,7 +47,7 @@
 
 #include "ComPackDefs.h"
 #include "dfs2rec.h"
-#include "exp_space.h"
+#include "ComSpace.h"
 #include "str.h"
 #include "exp_expr.h"
 #include "exp_clause.h"

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/b952c0d5/core/sql/exp/exp_tuple_desc.h
----------------------------------------------------------------------
diff --git a/core/sql/exp/exp_tuple_desc.h b/core/sql/exp/exp_tuple_desc.h
index b9a75a5..04eacdf 100644
--- a/core/sql/exp/exp_tuple_desc.h
+++ b/core/sql/exp/exp_tuple_desc.h
@@ -38,7 +38,6 @@
  *****************************************************************************
  */
 
-#include "SqlExpDllDefines.h"
 #include "ExpAlignedFormat.h"
 
 // Forward external references

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/b952c0d5/core/sql/exp/srlversion.cpp
----------------------------------------------------------------------
diff --git a/core/sql/exp/srlversion.cpp b/core/sql/exp/srlversion.cpp
deleted file mode 100644
index 5225ca4..0000000
--- a/core/sql/exp/srlversion.cpp
+++ /dev/null
@@ -1,41 +0,0 @@
-/**********************************************************************
-// @@@ START COPYRIGHT @@@
-//
-// Licensed to the Apache Software Foundation (ASF) under one
-// or more contributor license agreements.  See the NOTICE file
-// distributed with this work for additional information
-// regarding copyright ownership.  The ASF licenses this file
-// to you under the Apache License, Version 2.0 (the
-// "License"); you may not use this file except in compliance
-// with the License.  You may obtain a copy of the License at
-//
-//   http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing,
-// software distributed under the License is distributed on an
-// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-// KIND, either express or implied.  See the License for the
-// specific language governing permissions and limitations
-// under the License.
-//
-// @@@ END COPYRIGHT @@@
-
-**********************************************************************/
-/* -*-C++-*-
-****************************************************************************
-*
-* File:         SRLVersion.cpp
-* RCS:          
-* Description:
-*
-* Created:      10/22/98
-* Modified:     
-* Language:     C++
-* Status:       $State: Exp $
-*
-*
-*
-****************************************************************************
-*/
-#include "platform.h"
-

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/b952c0d5/core/sql/export/stubs.cpp
----------------------------------------------------------------------
diff --git a/core/sql/export/stubs.cpp b/core/sql/export/stubs.cpp
deleted file mode 100644
index f6ef305..0000000
--- a/core/sql/export/stubs.cpp
+++ /dev/null
@@ -1,53 +0,0 @@
-/**********************************************************************
-// @@@ START COPYRIGHT @@@
-//
-// Licensed to the Apache Software Foundation (ASF) under one
-// or more contributor license agreements.  See the NOTICE file
-// distributed with this work for additional information
-// regarding copyright ownership.  The ASF licenses this file
-// to you under the Apache License, Version 2.0 (the
-// "License"); you may not use this file except in compliance
-// with the License.  You may obtain a copy of the License at
-//
-//   http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing,
-// software distributed under the License is distributed on an
-// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-// KIND, either express or implied.  See the License for the
-// specific language governing permissions and limitations
-// under the License.
-//
-// @@@ END COPYRIGHT @@@
-**********************************************************************/
-/* -*-C++-*-
- *****************************************************************************
- *
- * File:         Stubs.cpp
- * Description: contains stubs required for the export SRL
- *
- * Created:      10/19/98
- * Language:     C++
- * Status:       $State: Exp $
- *
- *
- *****************************************************************************
- */
-
-
-#include "Platform.h"  // 64-BIT
-
-extern "C"
-void SQL_EXEC_IsVolumeUseful_Internal__FCPCc(void){};
-
-extern "C"
-void SQL_EXEC_GetListOfVolumes_Internal__Fv(void){};
-
-void CmpAssertInternal(const char*, const char*, Int32){};
-
-extern "C"
-void contextHeap__9CmpCommonSFv(void){};
-
-extern "C"
-void init(void){};
-

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/b952c0d5/core/sql/generator/GenExpGenerator.h
----------------------------------------------------------------------
diff --git a/core/sql/generator/GenExpGenerator.h b/core/sql/generator/GenExpGenerator.h
index 2e7a051..09136ca 100644
--- a/core/sql/generator/GenExpGenerator.h
+++ b/core/sql/generator/GenExpGenerator.h
@@ -42,7 +42,7 @@
 #include "Generator.h"
 #include "exp_expr.h"
 #include "GenMapTable.h"
-#include "exp_space.h"
+#include "ComSpace.h"
 #include "exp_tuple_desc.h"
 #include "parser.h"
 #include "ComKeyRange.h"

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/b952c0d5/core/sql/generator/Generator.h
----------------------------------------------------------------------
diff --git a/core/sql/generator/Generator.h b/core/sql/generator/Generator.h
index 6764ac5..cc93f74 100644
--- a/core/sql/generator/Generator.h
+++ b/core/sql/generator/Generator.h
@@ -40,7 +40,7 @@
 
 #include "GenMapTable.h"
 #include "FragmentDir.h"
-#include "exp_space.h"
+#include "ComSpace.h"
 #include "exp_clause.h"
 #include "str.h"
 #include "Int64.h"

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/b952c0d5/core/sql/nskgmake/executor/Makefile
----------------------------------------------------------------------
diff --git a/core/sql/nskgmake/executor/Makefile b/core/sql/nskgmake/executor/Makefile
index dd23a6e..1b85950 100755
--- a/core/sql/nskgmake/executor/Makefile
+++ b/core/sql/nskgmake/executor/Makefile
@@ -70,7 +70,6 @@ CPPSRC := Allocator.cpp \
 	ExHbaseSelect.cpp \
 	ExHbaseIUD.cpp \
 	ExHbaseDDL.cpp \
-	ExMeas.cpp \
 	ExPack.cpp \
 	ExPackedRows.cpp \
 	ExProbeCache.cpp \
@@ -104,10 +103,7 @@ CPPSRC := Allocator.cpp \
 	SqlStats.cpp \
 	rts_msg.cpp \
 	sql_buffer.cpp \
-	stubs.cpp \
-	stubs2.cpp \
 	SwapSpace.cpp \
-	tempfile.cpp \
 	timeout_data.cpp \
 	TriggerEnable.cpp \
 	TupleSpace.cpp \

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/b952c0d5/core/sql/nskgmake/sqlcat/Makefile
----------------------------------------------------------------------
diff --git a/core/sql/nskgmake/sqlcat/Makefile b/core/sql/nskgmake/sqlcat/Makefile
index 74e4e58..3d3c909 100755
--- a/core/sql/nskgmake/sqlcat/Makefile
+++ b/core/sql/nskgmake/sqlcat/Makefile
@@ -21,8 +21,6 @@
 # @@@ END COPYRIGHT @@@
 #######################################################################
 
-CPPSRC := readRealArk.cpp \
-	  ReadTableDef.cpp \
-	  TrafDDLdesc.cpp \
+CPPSRC := TrafDDLdesc.cpp \
 	  vers_libsqlcat.cpp
 

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/b952c0d5/core/sql/nskgmake/sqlci/Makefile
----------------------------------------------------------------------
diff --git a/core/sql/nskgmake/sqlci/Makefile b/core/sql/nskgmake/sqlci/Makefile
index 767ebdc..44f2412 100755
--- a/core/sql/nskgmake/sqlci/Makefile
+++ b/core/sql/nskgmake/sqlci/Makefile
@@ -21,8 +21,7 @@
 # @@@ END COPYRIGHT @@@
 #######################################################################
 
-CPPSRC := SqlciMain.cpp \
-	MxciEHCallBack.cpp
+CPPSRC := SqlciMain.cpp 
 
 EARLY_DLLS:= -ljsig
 

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/b952c0d5/core/sql/nskgmake/sqlcilib/Makefile
----------------------------------------------------------------------
diff --git a/core/sql/nskgmake/sqlcilib/Makefile b/core/sql/nskgmake/sqlcilib/Makefile
index 6d9ce0b..3c6cc71 100755
--- a/core/sql/nskgmake/sqlcilib/Makefile
+++ b/core/sql/nskgmake/sqlcilib/Makefile
@@ -21,14 +21,11 @@
 # @@@ END COPYRIGHT @@@
 #######################################################################
 
-CPPSRC := CharSetConstants.cpp \
-	Define.cpp \
+CPPSRC := Define.cpp \
 	ExpConvMxcs.cpp \
 	Formatter.cpp \
-	immudefs.cpp \
 	InputStmt.cpp \
 	Log.cpp \
-	MsgCat.cpp \
 	Obey.cpp \
 	Param.cpp \
 	Prepare.cpp \
@@ -36,28 +33,18 @@ CPPSRC := CharSetConstants.cpp \
 	SqlciCmd.cpp \
 	SqlciEnv.cpp \
 	SqlciError.cpp \
-	SqlciHelp.cpp \
 	SqlciNode.cpp \
 	SqlciParser.cpp \
 	SqlciReset.cpp \
-	SqlciRWCmd.cpp \
-	SqlciCSCmd.cpp \
 	SqlciShow.cpp \
 	SqlciStats.cpp \
 	SqlciStmts.cpp \
-	SqlciUsage.cpp \
-	SqlciUtil.cpp \
 	SqlCmd.cpp \
-	UtilInt.cpp \
-	UtilMsg.cpp \
 	sqlclicmd.cpp
 
 
 YINC := tdm_sqlmxmsg_intl
 
-CPPSRC += SqlciRWSimulator.cpp \
-	SqlciCSSimulator.cpp
-
 DEFS += -DSQLCLI_LIB -DCLI_DLL -D_UNICODE -DCOPYRIGHT_VERSION_H=\"$(TRAFODION_VER)\" -DCOPYRIGHT_HEADER_H='"$(PRODUCT_COPYRIGHT_HEADER)"' -DPRODVER='"$(TRAFODION_VER_PROD)"'
 
 CPPSRC += vers_libsqlcilib.cpp

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/b952c0d5/core/sql/nskgmake/tdm_sqlcli/Makefile
----------------------------------------------------------------------
diff --git a/core/sql/nskgmake/tdm_sqlcli/Makefile b/core/sql/nskgmake/tdm_sqlcli/Makefile
index 251f995..554f840 100755
--- a/core/sql/nskgmake/tdm_sqlcli/Makefile
+++ b/core/sql/nskgmake/tdm_sqlcli/Makefile
@@ -21,8 +21,7 @@
 # @@@ END COPYRIGHT @@@
 #######################################################################
 
-CPPSRC := CliDll.cpp \
-	StoredProcInterface.cpp \
+CPPSRC := StoredProcInterface.cpp \
 	vers_libcli.cpp
 
 SRCPATH := cli catman smdio

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/b952c0d5/core/sql/nskgmake/tdm_sqlshare/Makefile
----------------------------------------------------------------------
diff --git a/core/sql/nskgmake/tdm_sqlshare/Makefile b/core/sql/nskgmake/tdm_sqlshare/Makefile
index bafb0f8..6d1ea7d 100755
--- a/core/sql/nskgmake/tdm_sqlshare/Makefile
+++ b/core/sql/nskgmake/tdm_sqlshare/Makefile
@@ -21,8 +21,7 @@
 # @@@ END COPYRIGHT @@@
 #######################################################################
 
-CPPSRC := catapirequest.cpp \
-	CatSQLShare.cpp
+CPPSRC := CatSQLShare.cpp
 
 SRCPATH := sqlshare
 

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/b952c0d5/core/sql/qmscommon/QRQueries.cpp
----------------------------------------------------------------------
diff --git a/core/sql/qmscommon/QRQueries.cpp b/core/sql/qmscommon/QRQueries.cpp
index 1d143ef..760da51 100644
--- a/core/sql/qmscommon/QRQueries.cpp
+++ b/core/sql/qmscommon/QRQueries.cpp
@@ -1974,7 +1974,6 @@ extern SQLMODULE_ID __SQL_mod_199222286715188012;
 #include "NAWinNT.h"
 #include "wstr.h"
 #include "csconvert.h"
-#include "catapirequest.h"
 
 // Disable warning 4390 
 #pragma warning ( disable : 4390 )
@@ -3265,6 +3264,7 @@ SQL_EXEC_ExecFetch(&__SQL_id0,(long)0,0)) != 0);}
 *********************************************************/
 Lng32 QRQueries::reDescribeMV(const NAString& mvName, NABoolean rePublish)
 {
+#ifdef __ignore
   /* EXEC SQL BEGIN DECLARE SECTION; */
     /* char  */ char catRequestText[MAX_UTF8_CMD_LEN_IN_BYTES_PLUS_1];
   /* EXEC SQL END DECLARE SECTION; */  
@@ -3300,6 +3300,8 @@ if ((SQLCODE = SQL_EXEC_ClearDiagnostics(&__SQL_id0))  != 0 ||(SQLCODE =
 SQL_EXEC_ExecFetch(&__SQL_id0,(long)0,0)) != 0);}
 
   return SQLCODE;
+#endif
+return 0;
 }
 
 #pragma warning ( default : 4390 )

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/b952c0d5/core/sql/sqlcat/ReadTableDef.cpp
----------------------------------------------------------------------
diff --git a/core/sql/sqlcat/ReadTableDef.cpp b/core/sql/sqlcat/ReadTableDef.cpp
deleted file mode 100644
index 4107dd2..0000000
--- a/core/sql/sqlcat/ReadTableDef.cpp
+++ /dev/null
@@ -1,39 +0,0 @@
-/**********************************************************************
-// @@@ START COPYRIGHT @@@
-//
-// Licensed to the Apache Software Foundation (ASF) under one
-// or more contributor license agreements.  See the NOTICE file
-// distributed with this work for additional information
-// regarding copyright ownership.  The ASF licenses this file
-// to you under the Apache License, Version 2.0 (the
-// "License"); you may not use this file except in compliance
-// with the License.  You may obtain a copy of the License at
-//
-//   http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing,
-// software distributed under the License is distributed on an
-// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-// KIND, either express or implied.  See the License for the
-// specific language governing permissions and limitations
-// under the License.
-//
-// @@@ END COPYRIGHT @@@
-**********************************************************************/
-/* -*-C++-*-
-******************************************************************************
-*
-* File:         ReadTableDef.cpp
-* Description:	
-*   This class and set of functions provide an interface between the 
-*   compiler and metadata.  It gets information from catman cache through
-*   the SOL layer and puts it into a desc structure.  The desc structure is
-*   returned to the compiler to be placed in the NATable structure.
-*
-* Created:	01/18/96
-* Language:     C++
-*
-*
-******************************************************************************
-*/
-

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/b952c0d5/core/sql/sqlcat/ReadTableDef.h
----------------------------------------------------------------------
diff --git a/core/sql/sqlcat/ReadTableDef.h b/core/sql/sqlcat/ReadTableDef.h
deleted file mode 100644
index 89e0dba..0000000
--- a/core/sql/sqlcat/ReadTableDef.h
+++ /dev/null
@@ -1,44 +0,0 @@
-/* -*-C++-*- */
-/**********************************************************************
-// @@@ START COPYRIGHT @@@
-//
-// Licensed to the Apache Software Foundation (ASF) under one
-// or more contributor license agreements.  See the NOTICE file
-// distributed with this work for additional information
-// regarding copyright ownership.  The ASF licenses this file
-// to you under the Apache License, Version 2.0 (the
-// "License"); you may not use this file except in compliance
-// with the License.  You may obtain a copy of the License at
-//
-//   http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing,
-// software distributed under the License is distributed on an
-// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-// KIND, either express or implied.  See the License for the
-// specific language governing permissions and limitations
-// under the License.
-//
-// @@@ END COPYRIGHT @@@
-**********************************************************************/
-/* -*-C++-*-
-******************************************************************************
-*
-* File:         ReadTableDef.h
-* Description:
-*   This class and set of functions provide an interface between the 
-*   compiler and metadata.  It gets information from catman cache through
-*   the SOL layer and puts it into a desc structure.  The desc structure is
-*   returned to the compiler to be placed in the NATable structure.
-*
-* Created:      01/18/96
-* Language:     C++
-*
-*
-******************************************************************************
-*/
-
-#ifndef __READTABLEDEF_H
-#define __READTABLEDEF_H
-
-#endif // READTABLEDEF_H

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/b952c0d5/core/sql/sqlcat/enum.h
----------------------------------------------------------------------
diff --git a/core/sql/sqlcat/enum.h b/core/sql/sqlcat/enum.h
deleted file mode 100644
index 178ea35..0000000
--- a/core/sql/sqlcat/enum.h
+++ /dev/null
@@ -1,20 +0,0 @@
-// @@@ START COPYRIGHT @@@
-//
-// Licensed to the Apache Software Foundation (ASF) under one
-// or more contributor license agreements.  See the NOTICE file
-// distributed with this work for additional information
-// regarding copyright ownership.  The ASF licenses this file
-// to you under the Apache License, Version 2.0 (the
-// "License"); you may not use this file except in compliance
-// with the License.  You may obtain a copy of the License at
-//
-//   http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing,
-// software distributed under the License is distributed on an
-// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-// KIND, either express or implied.  See the License for the
-// specific language governing permissions and limitations
-// under the License.
-//
-// @@@ END COPYRIGHT @@@

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/b952c0d5/core/sql/sqlcat/readRealArk.cpp
----------------------------------------------------------------------
diff --git a/core/sql/sqlcat/readRealArk.cpp b/core/sql/sqlcat/readRealArk.cpp
deleted file mode 100644
index 46e7744..0000000
--- a/core/sql/sqlcat/readRealArk.cpp
+++ /dev/null
@@ -1,34 +0,0 @@
-/* -*-C++-*-
-// @@@ START COPYRIGHT @@@
-//
-// Licensed to the Apache Software Foundation (ASF) under one
-// or more contributor license agreements.  See the NOTICE file
-// distributed with this work for additional information
-// regarding copyright ownership.  The ASF licenses this file
-// to you under the Apache License, Version 2.0 (the
-// "License"); you may not use this file except in compliance
-// with the License.  You may obtain a copy of the License at
-//
-//   http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing,
-// software distributed under the License is distributed on an
-// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-// KIND, either express or implied.  See the License for the
-// specific language governing permissions and limitations
-// under the License.
-//
-// @@@ END COPYRIGHT @@@
- *****************************************************************************
- *
- * File:         readRealArk.C
- * Description:  This module converts SOL based meta-data to TrafDesc
- *               based meta-data.
- *
- * Created:      11/20/96
- * Language:     C++
- *
- *
- *
- *****************************************************************************
- */

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/b952c0d5/core/sql/sqlcat/readRealArk.h
----------------------------------------------------------------------
diff --git a/core/sql/sqlcat/readRealArk.h b/core/sql/sqlcat/readRealArk.h
deleted file mode 100644
index b64a043..0000000
--- a/core/sql/sqlcat/readRealArk.h
+++ /dev/null
@@ -1,23 +0,0 @@
-/**********************************************************************
-// @@@ START COPYRIGHT @@@
-//
-// Licensed to the Apache Software Foundation (ASF) under one
-// or more contributor license agreements.  See the NOTICE file
-// distributed with this work for additional information
-// regarding copyright ownership.  The ASF licenses this file
-// to you under the Apache License, Version 2.0 (the
-// "License"); you may not use this file except in compliance
-// with the License.  You may obtain a copy of the License at
-//
-//   http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing,
-// software distributed under the License is distributed on an
-// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-// KIND, either express or implied.  See the License for the
-// specific language governing permissions and limitations
-// under the License.
-//
-// @@@ END COPYRIGHT @@@
-//
-**********************************************************************/


[3/9] incubator-trafodion git commit: code cleanup, commit #1

Posted by an...@apache.org.
http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/b952c0d5/core/sql/sqlci/SqlciEnv.cpp
----------------------------------------------------------------------
diff --git a/core/sql/sqlci/SqlciEnv.cpp b/core/sql/sqlci/SqlciEnv.cpp
index a071f27..84bb9ba 100644
--- a/core/sql/sqlci/SqlciEnv.cpp
+++ b/core/sql/sqlci/SqlciEnv.cpp
@@ -58,8 +58,6 @@
 #include "sqlcmd.h"
 #include "SQLCLIdev.h"
 #include "InputStmt.h"
-#include "SqlciRWCmd.h"
-#include "SqlciCSCmd.h"
 #include "CmpCommon.h"
 #include "ComDiags.h"
 #include "copyright.h"
@@ -202,7 +200,6 @@ BOOL CtrlHandler(DWORD ctrlType) {
 // The signal interrupt handler.  When break is hit, this function
 // will be called.
 
-#pragma nowarn(770)   // warning elimination 
 void interruptHandler (Int32 signalType)
 {
    void (*intHandler_addr) (Int32);
@@ -276,7 +273,6 @@ SqlciEnv::SqlciEnv(short serv_type, NABoolean macl_rw_flag)
   prepared_stmts = new SqlciList<PrepStmt>;
   param_list = new SqlciList<Param>;
   pattern_list = new SqlciList<Param>;
-  define_list = new SqlciList<Define>;
   envvar_list = new SqlciList<Envvar>;
   cursorList_ = new SqlciList<CursorStmt>;
   sqlci_stats = new SqlciStats();
@@ -301,9 +297,6 @@ SqlciEnv::SqlciEnv(short serv_type, NABoolean macl_rw_flag)
 
   userNameFromCommandLine_ = "";
 
-  report_env = new SqlciRWEnv(); // initialize the report writer environment variable
-  cs_env = new SqlciCSEnv(); // initialize the macl environment variable.
-
   // A break flag macl_rw_flag was added to the constructor in order for the SqlciEnv
   // constructor not to call the MACL & Report Writer Constructors
   // when the SqlciEnv constructor is called after a break key is hit.
@@ -367,7 +360,6 @@ SqlciEnv::~SqlciEnv()
   delete param_list;
   delete pattern_list;
   delete cursorList_;
-  delete define_list;
   delete envvar_list;
   delete sqlci_stats;
   sqlci_stmts = 0;
@@ -592,21 +584,11 @@ static void SqlciEnv_prologue_to_run(SqlciEnv *sqlciEnv)
   // Protect our startup CQDs and SET SCHEMA (from any SQL_MXCI_INITIALIZATION)
   // from being RESET.  User may still manually alter them, of course.
   //
-
-
-
-
   SqlCmd::executeQuery("CONTROL QUERY DEFAULT * RESET RESET;", sqlciEnv);
 
-
-
-
   // tell CLI that datetime & interval values are to be input/output in internal format.
   SqlCmd::executeQuery("SET SESSION DEFAULT INTERNAL_FORMAT_IO 'ON';", sqlciEnv);
 
-  // get the defaults
-  Define::getDefaults(sqlciEnv->defaultSubvol());
-
   // get sqlmx_terminal_charset if environment variable exists
   const char *termCS = getenv("SQLMX_TERMINAL_CHARSET");
   if (termCS) {
@@ -795,9 +777,7 @@ Int32 SqlciEnv::executeCommands(InputStmt *& input_stmt)
 	     if (!isInteractiveSession())
 	       get_logfile()->WriteAll(command);
 	     else if (get_logfile()->IsOpen())
-#pragma nowarn(1506)   // warning elimination 
 	       get_logfile()->Write(command, strlen(command));
-#pragma warn(1506)  // warning elimination 
 	     sqlci_parser(&command[2], &command[2], &sqlci_node,this);
 
 	     if (sqlci_node)
@@ -879,9 +859,7 @@ Int32 SqlciEnv::executeCommands(InputStmt *& input_stmt)
 
 	    sprintf(buf, "total opens = %d, total closes = %d", total_opens, total_closes);
 
-#pragma nowarn(1506)   // warning elimination 
 	    get_logfile()->WriteAll(buf, strlen(buf));
-#pragma warn(1506)  // warning elimination 
 	}
 
 	// Delete the stmt if not one of those we saved on the history list
@@ -1022,52 +1000,6 @@ void SqlciEnv::updateDefaultCatAndSch()
   resetSpecialError();
 }
 
-/////////////////////////////////////////
-// Processing of Report Writer class.
-// the constructor and destructor are 
-// defined here.  Set the Report Writer 
-// mode and Select In Progress mode to be
-// FALSE at this time.  Also instantiate
-// the Interface executor here.
-/////////////////////////////////////////
-
-SqlciRWEnv::SqlciRWEnv() 
-{ 
-  rwEnv_ = NULL;
-  rwSelect_ = FALSE;
-  rwExe_ = new SqlciRWInterfaceExecutor();
-  // Any memory required by RW should be derived from 
-  // system heap only. RW should not do any memory
-  // allocation or deallocation on its own.  All memory
-  // must be got by calling methods on this pointer 
-  // provided by MXCI.
-  heap_ = new NAHeap((char *) "reportwriter_heap",
-                     NAMemory::DERIVED_FROM_SYS_HEAP); 
-}
-
-SqlciRWEnv::~SqlciRWEnv() 
-{
-}
-
-/////////////////////////////////////////
-// Processing of MACL class.
-// the constructor and destructor are 
-// defined here.  Set the Report Writer 
-// mode and Select In Progress mode to be
-// FALSE at this time.  Also instantiate
-// the Interface executor here.
-/////////////////////////////////////////
-
-SqlciCSEnv::SqlciCSEnv() 
-{ 
-  csEnv_ = NULL;
-  csExe_ = new SqlciCSInterfaceExecutor();
-}
-
-SqlciCSEnv::~SqlciCSEnv() 
-{
-}
-
 // This is the command which will show the user
 // which mode they are in.
 
@@ -1079,14 +1011,6 @@ void SqlciEnv::showMode(ModeType mode_)
             cout << "The current mode is SQL mode." << endl;	    
             break;
 
-	case REPORT_:
-	    cout << "The current mode is REPORT WRITER mode." << endl;
-	    break;
-        
-       case MXCS_:
-           cout << "The current mode is MXCS mode." << endl;
-           break;
-
 	default:
 
 	    break;
@@ -1193,9 +1117,7 @@ short Env::process(SqlciEnv *sqlci_env)
   log->WriteAllWithoutEOL("MESSAGEFILE VRSN   ");
   char vmsgcode[10];
   sprintf(vmsgcode, "%d", SQLERRORS_MSGFILE_VERSION_INFO);
-#pragma nowarn(1506)   // warning elimination 
   Error vmsg(vmsgcode, strlen(vmsgcode), Error::ENVCMD_);
-#pragma warn(1506)  // warning elimination 
   vmsg.process(sqlci_env);
 
   ComAnsiNamePart defaultCat;

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/b952c0d5/core/sql/sqlci/SqlciEnv.h
----------------------------------------------------------------------
diff --git a/core/sql/sqlci/SqlciEnv.h b/core/sql/sqlci/SqlciEnv.h
index 8f922e9..a9fceb6 100644
--- a/core/sql/sqlci/SqlciEnv.h
+++ b/core/sql/sqlci/SqlciEnv.h
@@ -57,18 +57,12 @@
 #include "Define.h"
 #include "Param.h"
 #include "Prepare.h"
-#include "CSInterface.h"
 
 // forward references
 class SqlciStats;
-class SqlciRWEnv;
-class SqlciRWInterfaceExecutor;
-class SqlciCSEnv;
-class SqlciCSInterfaceExecutor;
 class ComSchemaName;
 class ComAnsiNamePart;
 
-#pragma nowarn(1506)   // warning elimination 
 class Logfile {
 
 private:
@@ -114,44 +108,6 @@ public:
   NABoolean noDisplay() { return flags_ & NO_DISPLAY; };
   void setNoDisplay(NABoolean v);
 };
-#pragma warn(1506)  // warning elimination 
-
-
-// SqlciRWEnv class.  
-class SqlciRWEnv {
-
-private:			
-	NABoolean       rwSelect_;
-	void *		rwEnv_; // Pointer to ReportWriter's env.  This is a handle to their env.
-	SqlciRWInterfaceExecutor * rwExe_;
-	NAHeap		*heap_;
-
-public:
-	SqlciRWEnv();
-	~SqlciRWEnv();
-	NABoolean           isSelectInProgress()		{ return rwSelect_; }
-	void                setSelectInProgress(NABoolean val)  { rwSelect_ = val; }
-	void*               &rwEnv()				{ return rwEnv_; }
-	SqlciRWInterfaceExecutor *rwExe()			{ return rwExe_; }   
-	NAHeap                   *rwHeap()			{ return heap_;  }
-};
-
-
-// SqlciCSEnv class.
-class SqlciCSEnv {
-
-private:
-  void * csEnv_; // Pointer to their MACL environment.  This is a handle to their env.
-  SqlciCSInterfaceExecutor *csExe_;
-
-public:
-  SqlciCSEnv();
-  ~SqlciCSEnv();
-  void* &csEnv()                      { return csEnv_; }
-  SqlciCSInterfaceExecutor *csExe()   { return csExe_; }
-
-};
-
 
 class SqlciEnv
 {
@@ -169,12 +125,9 @@ private:
   SqlciList<PrepStmt> *prepared_stmts;
   SqlciList<Param>    *param_list;
   SqlciList<Param>    *pattern_list;
-  SqlciList<Define>   *define_list;
   SqlciList<Envvar>   *envvar_list;
   SqlciList<CursorStmt> *cursorList_;
   SqlciStats          *sqlci_stats;
-  SqlciRWEnv          *report_env; //Pointer to ReportWriter's Environement.
-  SqlciCSEnv          *cs_env;  // Pointer to MACL's Environment.
   ULng32	      list_count;
 
   CharInfo::CharSet terminal_charset_;
@@ -226,7 +179,7 @@ private:
 public:
   enum {MAX_LISTCOUNT = UINT_MAX };
   enum {MAX_FRAGMENT_LEN_OVERFLOW = 900};
-  enum ModeType { SQL_, REPORT_, MXCS_, DISPLAY_ }; // Modes in which MXCI can exist.
+  enum ModeType { SQL_, DISPLAY_ }; // Modes in which MXCI can exist.
 
   ModeType mode;
 
@@ -272,15 +225,10 @@ public:
   SqlciList<PrepStmt> *get_prep_stmts()   	{ return prepared_stmts; }
   SqlciList<Param>    *get_paramlist()    	{ return param_list; }
   SqlciList<Param>    *get_patternlist()        { return pattern_list; }
-  SqlciList<Define>   *get_definelist()   	{ return define_list; }
   SqlciList<Envvar>   *get_envvarlist()   	{ return envvar_list; }
   SqlciList<CursorStmt> *getCursorList()        { return cursorList_; }
   SqlciStats          *getStats()         	{ return sqlci_stats; }
-  SqlciRWEnv          *sqlciRWEnv()	        { return report_env; }
-  SqlciCSEnv          *sqlciCSEnv()             { return cs_env; }
-  NABoolean           isReportWriterMode()      { if (mode == REPORT_) return TRUE; else return FALSE;};
   void                setMode(ModeType mode_)   { mode = mode_; }
-  NABoolean           isMXCSMode() { if (mode == MXCS_) return TRUE; else return FALSE;};
   void                showMode(ModeType mode_) ;
   ModeType            getMode()                 { return mode;}
   void                setListCount(ULng32 num = MAX_LISTCOUNT) { list_count = num; }

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/b952c0d5/core/sql/sqlci/SqlciError.cpp
----------------------------------------------------------------------
diff --git a/core/sql/sqlci/SqlciError.cpp b/core/sql/sqlci/SqlciError.cpp
index 3903582..fb734f1 100644
--- a/core/sql/sqlci/SqlciError.cpp
+++ b/core/sql/sqlci/SqlciError.cpp
@@ -103,13 +103,9 @@ void SqlciError ( short errorCode, ...)
    while ((Param=va_arg(ap, ErrorParam *)) != (ErrorParam *) 0)
      {
        if (Param->Param_type() == STRING_TYPE) 
-#pragma nowarn(1506)   // warning elimination 
 	 Condition->setOptionalString(cur_string_p++, Param->Str_Param());
-#pragma warn(1506)  // warning elimination 
        else
-#pragma nowarn(1506)   // warning elimination 
 	 Condition->setOptionalInteger(cur_int_p++, Param->Int_Param());
-#pragma warn(1506)  // warning elimination 
      }
 
    sqlci_DA.acceptNewCondition();
@@ -132,13 +128,9 @@ void SqlciError2 ( Int32 errorCode, ...)
    while ((Param=va_arg(ap, ErrorParam *)) != (ErrorParam *) 0)
      {
        if ((Param->Param_type() == STRING_TYPE) && Param->Str_Param() ) 
-#pragma nowarn(1506)   // warning elimination 
 	 Condition->setOptionalString(cur_string_p++, Param->Str_Param());
-#pragma warn(1506)  // warning elimination 
        if ((Param->Param_type() == INT_TYPE) && Param->Int_Param() != -1)
-#pragma nowarn(1506)   // warning elimination 
 	 Condition->setOptionalInteger(cur_int_p++, Param->Int_Param());
-#pragma warn(1506)  // warning elimination 
      }
 
    sqlci_DA.acceptNewCondition();
@@ -161,13 +153,9 @@ void SqlciWarning ( short errorCode, ...)
    while ((Param=va_arg(ap, ErrorParam *)) != (ErrorParam *) 0)
      {
        if (Param->Param_type() == STRING_TYPE) 
-#pragma nowarn(1506)   // warning elimination 
 	 Condition->setOptionalString(cur_string_p++, Param->Str_Param());
-#pragma warn(1506)  // warning elimination 
        else
-#pragma nowarn(1506)   // warning elimination 
 	 Condition->setOptionalInteger(cur_int_p++, Param->Int_Param());
-#pragma warn(1506)  // warning elimination 
      }
 
    sqlci_DA.acceptNewCondition();

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/b952c0d5/core/sql/sqlci/SqlciError.h
----------------------------------------------------------------------
diff --git a/core/sql/sqlci/SqlciError.h b/core/sql/sqlci/SqlciError.h
index cb299e8..6a2de15 100644
--- a/core/sql/sqlci/SqlciError.h
+++ b/core/sql/sqlci/SqlciError.h
@@ -155,11 +155,7 @@
 #define SQLCI_RW_DETAIL_ALIAS_NOT_ALLOWED 15547
 #define SQLCI_RW_RIGHT_MARGIN_EXCEEDS   15548
 #define SQLCI_RW_NONNUMERIC_CHARACTER   15549
-#pragma warning( disable : 4005 )  // warning elimination
-#pragma nowarn(140)   // warning elimination 
 #define SQLCI_RW_INVALID_FORMATTING     15550
-#pragma warn(140)  // warning elimination 
-#pragma warning( default : 4005 )  // warning elimination
 #define SQLCI_RW_DIVISION_BY_ZERO       15551
 #define SQLCI_RW_INVALID_DELIMITED_IDENTIFIER 15552
 #define SQLCI_RW_UNABLE_TO_RESET        15575

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/b952c0d5/core/sql/sqlci/SqlciHelp.cpp
----------------------------------------------------------------------
diff --git a/core/sql/sqlci/SqlciHelp.cpp b/core/sql/sqlci/SqlciHelp.cpp
deleted file mode 100644
index 67dd105..0000000
--- a/core/sql/sqlci/SqlciHelp.cpp
+++ /dev/null
@@ -1,244 +0,0 @@
-/**********************************************************************
-// @@@ START COPYRIGHT @@@
-//
-// Licensed to the Apache Software Foundation (ASF) under one
-// or more contributor license agreements.  See the NOTICE file
-// distributed with this work for additional information
-// regarding copyright ownership.  The ASF licenses this file
-// to you under the Apache License, Version 2.0 (the
-// "License"); you may not use this file except in compliance
-// with the License.  You may obtain a copy of the License at
-//
-//   http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing,
-// software distributed under the License is distributed on an
-// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-// KIND, either express or implied.  See the License for the
-// specific language governing permissions and limitations
-// under the License.
-//
-// @@@ END COPYRIGHT @@@
-//
-**********************************************************************/
-/* -*-C++-*-
- *****************************************************************************
- *
- * File:         SqlciHelp.C
- * RCS:          $Id: SqlciHelp.cpp,v 1.2 1997/04/23 00:30:55  Exp $
- * Description:  
- *               
- *               
- * Created:      2/23/96
- * Modified:     $ $Date: 1997/04/23 00:30:55 $ (GMT)
- * Language:     C++
- * Status:       $State: Exp $
- *
- *
- *
- *
- *****************************************************************************
- */
-
-// -----------------------------------------------------------------------
-// Change history:
-// 
-// $Log: SqlciHelp.cpp,v $
-// Revision 1.2  1997/04/23 00:30:55
-// Merge of MDAM/Costing changes into SDK thread
-//
-// Revision 1.1.1.1.2.1  1997/04/11 23:24:47
-// Checking in partially resolved conflicts from merge with MDAM/Costing
-// thread. Final fixes, if needed, will follow later.
-//
-// Revision 1.4.4.1  1997/04/10 18:33:08
-// *** empty log message ***
-//
-// Revision 1.1.1.1  1997/03/28 01:39:44
-// These are the source files from SourceSafe.
-//
-// 
-// 6     1/22/97 11:04p 
-// Merged UNIX and NT versions.
-// 
-// 4     1/14/97 4:55a 
-// Merged UNIX and  NT versions.
-// Revision 1.4  1996/10/11 23:32:30
-// Modified the functions for error generation to use ComDiags.
-//
-// Revision 1.3  1996/05/31 21:16:10
-// no change
-//
-// Revision 1.2  1996/04/05 20:08:03
-// Included the standard banner with RCS strings.
-// 
-
-#include <iostream>
-#include <string.h>
-#include <ctype.h>
-#include <stdlib.h>
-
-#include "SqlciCmd.h"
-#include "immudefs.h"
-#include "SqlciError.h"
-#include "Platform.h"
-
-Help::Help(char * argument_, Lng32 arglen_, help_type type_)
-                 : SqlciCmd(SqlciCmd::HELP_TYPE, argument_, arglen_)
-{
-  type = type_;
-};
-
-short Help::process(SqlciEnv * sqlci_env)
-{
-  // help is not yet supported from MXCI.
-  SqlciError (SQLCI_HELP_NOT_FOUND, (ErrorParam *) 0);
-  return 0;
-
-#pragma nowarn(269)   // warning elimination 
-  char * topic_name = get_argument();
-#pragma warn(269)  // warning elimination 
-  short  topic_len ;
-
-  short open_err ;
-  short read_err ;
-
-  short fnum ;
-
-  char  fname[36] ; // Maximum filename length, including terminating null
-  char  pnum[9] ;
-  char * alt_msgfile;
-
-  short symbol = 0 ;
-  short lang = 0 ;
-
-  enum  { msg_max_len = 200 } ;
-  char  help_msg[msg_max_len] ;
-  short help_msg_len ;
-  short more_lines ;
-  char  p1, p2, p3, p4, p5 ;
-  short done = 0 ;
-
-  struct IMMUkey_def key ;
-
-
-  strcpy (pnum, "T9197X00");
-  
-  alt_msgfile = getenv("SQLMSGFILE");
-
-  if (alt_msgfile)
-    strcpy (fname, alt_msgfile);
-  else
-    strcpy (fname, "$SYSTEM.SYSTEM.SQLMSG");
-
-#pragma nowarn(1506)   // warning elimination 
-  topic_len = strlen(topic_name) ;
-#pragma warn(1506)  // warning elimination 
-
-  if (topic_len >= len_HelpTopic)
-    {
-      SqlciError (SQLCI_LONG_HELP_TOPIC, (ErrorParam *) 0);
-      return 0 ;
-    }
-
-  open_err = IMMU_OPEN_(fname, (short)strlen(fname), &fnum, pnum,
-                        &symbol, &lang);
-
-  if (open_err)
-    {
-      SqlciError (SQLCI_HELP_FOPEN_ERROR,
-		  new ErrorParam (open_err),
-		  new ErrorParam (&fname[0]) ,
-		  (ErrorParam *) 0
-		  );
-      return 0;
-    }
-
-  // Build the key for message file 
-  strcpy (key.IMMUkey_product_number, "T9197X00");
-  strcpy (key.IMMUkey_record_type, "HL");
-  key.IMMUkey_key_field1 = 0 ;
-  key.IMMUkey_key_field2 = 1 ; // more 
-  
-  memset (key.IMMUkey_key_field3, ' ', sizeof(key.IMMUkey_key_field3));
-
-  for (Int32 i=0; i < topic_len; i++)
-#pragma nowarn(1506)   // warning elimination 
-    topic_name[i] = tolower(topic_name[i]);
-#pragma warn(1506)  // warning elimination 
-  memcpy (key.IMMUkey_key_field3, topic_name, topic_len) ;
-
-  key.IMMUkey_key_field3[topic_len] = '^' ;
-
-  switch (type)
-    {
-      case SYNTAX_  : memcpy (&key.IMMUkey_key_field3[topic_len+1], "syntax", 6); 
-                      break;
-      case EXAMPLE_ : memcpy (&key.IMMUkey_key_field3[topic_len+1], "example", 7);
-		      break;
-      case DETAIL_  : memcpy (&key.IMMUkey_key_field3[topic_len+1], "detail", 6);
-		      break;
-    }
-
-  // The key is complete. Read the records now 
-  
-  done = 0 ;
-  while (!done)
-    {
-      read_err = IMMU_READ_FORMAT_ (fnum, &key, &help_msg[0], msg_max_len,
-				    &help_msg_len, symbol, &more_lines,
-				    &p1, &p2, &p3, &p4, &p5) ;
-
-      if (read_err)
-	{
-	  if (read_err == 11) 
-	    SqlciError (SQLCI_HELP_NOT_FOUND, (ErrorParam *) 0);
-	  else
-	    SqlciError (SQLCI_HELP_READ_ERROR,
-			new ErrorParam (read_err),
-			new ErrorParam (&fname[0]),
-			(ErrorParam *) 0
-			);
-	  done = -1;
-	}
-      else
-	{
-	  if (help_msg_len == 0)
-	    {
-	      cout << "\n" ;
-	    } 
-	  else
-	    {
-	      help_msg[help_msg_len] = (char) 0 ;
-	      cout << help_msg << "\n" ;
-	    }
-
-	  if (!more_lines) done = -1;
-	}
-    }
-
-  IMMU_CLOSE_ (fnum);
-
-  cout << "Help Command : \n" ;
-  cout << "  Topic : " << topic_name << "\n" ; 
-  cout << "  Len   : " << strlen(topic_name) << "\n" ;
-  cout << "  Type  : " ;
-  switch (type)
-    {
-      case SYNTAX_  : cout << "Syntax\n" ; 
-                      break;
-      case EXAMPLE_ : cout << "Example\n" ;
-		      break;
-      case DETAIL_  : cout << "Detail\n" ;
-		      break;
-      default       : cout << "UNKNOWN type\n" ;
-		      break;
-    }
-
-  cout << "\n" ;
-  
-  return 0 ;
-
-};
-
-

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/b952c0d5/core/sql/sqlci/SqlciNode.cpp
----------------------------------------------------------------------
diff --git a/core/sql/sqlci/SqlciNode.cpp b/core/sql/sqlci/SqlciNode.cpp
index 0577f49..082a8db 100644
--- a/core/sql/sqlci/SqlciNode.cpp
+++ b/core/sql/sqlci/SqlciNode.cpp
@@ -62,33 +62,3 @@ short SqlciNode::process(SqlciEnv * sqlci_env)
   cerr << "Error: virtual function process must be redefined. \n";
   return -1;
 };
-
-
-// The purpose of these functions is that every class which is
-// derived from SqlciNode has to implement these functions.  So
-// certain commands will be allowed  in SIP and certain commands
-// wonte be allowed in RW mode. For those classes these fucntions
-// will return TRUE and FALSE respectively. 
-
-NABoolean SqlciNode::isAllowedInSIP()
-{
-	cerr << "Error: virtual function isAllowedInSIP must be redefined. \n";
-	return FALSE;
-};
-
-// All commanda will be allowed in RWmode execpte those which are
-// exclusive to SIP  like CANCEL, LIST ALL, LIST FIRST, LIST NEXT.
-// So the default behaviour is TRUE and for those commands alone it will be 
-// FALSE.
-
-NABoolean SqlciNode::isAllowedInRWMode()
-{
-	cerr << "Error: virtual function isAllowedInRWMode must be redefined. \n";
-	return TRUE;
-};
-
-NABoolean SqlciNode::isAllowedInCSMode()
-{
-  	cerr << "Error: virtual function isAllowedInCSMode must be redefined. \n";
-	return TRUE;
-}

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/b952c0d5/core/sql/sqlci/SqlciNode.h
----------------------------------------------------------------------
diff --git a/core/sql/sqlci/SqlciNode.h b/core/sql/sqlci/SqlciNode.h
index 274b32d..7c30ab2 100644
--- a/core/sql/sqlci/SqlciNode.h
+++ b/core/sql/sqlci/SqlciNode.h
@@ -63,16 +63,6 @@ public:
   virtual ~SqlciNode();
   virtual short process(SqlciEnv * sqlci_env);
 
-  // These are new functions to allow certain
-  // commands to be accepted in the Report Writer 
-  // mode and in the SelectInProgress mode.  These 
-  // functions are virtual functions which has 
-  // to be implemented by all classes that derive
-  // from SqlciNode.
-  virtual NABoolean isAllowedInSIP();
-  virtual NABoolean isAllowedInRWMode();
-  virtual NABoolean isAllowedInCSMode();
-
   void set_next(SqlciNode * next_)	{next = next_;}
   SqlciNode * get_next() const		{return next;}
 

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/b952c0d5/core/sql/sqlci/SqlciParser.cpp
----------------------------------------------------------------------
diff --git a/core/sql/sqlci/SqlciParser.cpp b/core/sql/sqlci/SqlciParser.cpp
index 8cf14c2..c8153f3 100644
--- a/core/sql/sqlci/SqlciParser.cpp
+++ b/core/sql/sqlci/SqlciParser.cpp
@@ -47,8 +47,6 @@
 #include "ComDiags.h"
 #include "str.h"
 #include "SqlciParseGlobals.h"
-#include "SqlciRWCmd.h"
-#include "SqlciCSCmd.h"
 #include "SqlciError.h"
 #include "sqlcmd.h"
 
@@ -73,9 +71,7 @@ static Int32 sqlci_parser_subproc(char *instr, char *origstr, SqlciNode ** node,
   if (origstr)
     {
       // remove trailing blanks
-#pragma nowarn(1506)   // warning elimination 
       Lng32 j = strlen(origstr) - 1;
-#pragma warn(1506)  // warning elimination 
       while ((j >= 0) && (origstr[j] == ' '))
 	j--;
       origstr[j+1] = 0;
@@ -182,44 +178,7 @@ Int32 sqlci_parser_syntax_error_cleanup(char *instr, SqlciEnv *sqlci_env)
 
 Int32 sqlci_parser_handle_report_writer(SqlciEnv *sqlci_env, Lng32 retval)
 {
-  // if success in parsing so far and we have a valid SqlciParseTree which
-  // is a SqlciNode then you check for RW mode or MACL/MXCS mode.
-  if (!retval) 
-    {
-      if ( (sqlci_env->sqlciRWEnv()->isSelectInProgress()) &&
-	   !(SqlciParseTree->isAllowedInSIP())
-	   )
-	{
-	  SqlciError (SQLCI_RW_SELECT_IN_PROGRESS,
-		      (ErrorParam *) 0 );
-	  delete SqlciParseTree;
-	  SqlciParseTree = NULL;
-	  return 0;
-	}
-      else if ( !(sqlci_env->sqlciRWEnv()->isSelectInProgress()) &&
-		!(SqlciParseTree->isAllowedInRWMode())
-		)
-	{
-	  SqlciError (SQLCI_RW_ALLOWED_ONLY_DURING_SIP,
-		      (ErrorParam *) 0 );
-	  delete SqlciParseTree;
-	  SqlciParseTree = NULL;
-	  return 0;
-	}
-      else if ((sqlci_env->isMXCSMode()) && !(SqlciParseTree->isAllowedInCSMode()))
-      {
-	  delete SqlciParseTree;
-        SqlciParseTree = (SqlciNode *)new SqlciCSQueryCmd(SqlciParse_OriginalStr,
-                               (Lng32)strlen(SqlciParse_OriginalStr));
-	assert(SqlciParseTree->isSqlciNode());
-        return 1;
-
-      }
-      else
-	return 1;
-    }
-  else
-    return 1;
+  return 0;
 }
 
 Int32 sqlci_parser_handle_error(SqlciNode **node, Lng32 retval)
@@ -228,26 +187,7 @@ Int32 sqlci_parser_handle_error(SqlciNode **node, Lng32 retval)
   
   if (retval && syntaxError_)
     {	
-      if (SqlciEnvGlobal->isReportWriterMode())
-	{
-	  SqlciParseTree = (SqlciNode *)new SqlciRWQueryCmd(SqlciParse_OriginalStr,
-			(Lng32)strlen(SqlciParse_OriginalStr));
-	  assert(SqlciParseTree->isSqlciNode());
-	  *node = SqlciParseTree;	
-	  sqlci_DA.clear(); // clear the diagonistics
-	  return 0;
-	}
-      else if (SqlciEnvGlobal->isMXCSMode())
-      {
-        SqlciParseTree = (SqlciNode *)new SqlciCSQueryCmd(SqlciParse_OriginalStr,
-                               (Lng32)strlen(SqlciParse_OriginalStr));
-	  assert(SqlciParseTree->isSqlciNode());
-	  *node = SqlciParseTree;	
-	  sqlci_DA.clear(); // clear the diagonistics
-	  return 0;
-      }
-      else
-	return retval;
+      return retval;
     }
   else
     return retval;

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/b952c0d5/core/sql/sqlci/SqlciRWCmd.cpp
----------------------------------------------------------------------
diff --git a/core/sql/sqlci/SqlciRWCmd.cpp b/core/sql/sqlci/SqlciRWCmd.cpp
deleted file mode 100644
index 2df93b7..0000000
--- a/core/sql/sqlci/SqlciRWCmd.cpp
+++ /dev/null
@@ -1,1172 +0,0 @@
-/**********************************************************************
-// @@@ START COPYRIGHT @@@
-//
-// Licensed to the Apache Software Foundation (ASF) under one
-// or more contributor license agreements.  See the NOTICE file
-// distributed with this work for additional information
-// regarding copyright ownership.  The ASF licenses this file
-// to you under the Apache License, Version 2.0 (the
-// "License"); you may not use this file except in compliance
-// with the License.  You may obtain a copy of the License at
-//
-//   http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing,
-// software distributed under the License is distributed on an
-// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-// KIND, either express or implied.  See the License for the
-// specific language governing permissions and limitations
-// under the License.
-//
-// @@@ END COPYRIGHT @@@
-//
-**********************************************************************/
-/* -*-C++-*-
- *****************************************************************************
- *
- * File:         SqlciRWCmd.cpp
- * Description:  Methods to process commands that interact with SQL/CLI and RW.
- *               
- *               
- * Created:      6/6/2003
- * Language:     C++
- * Status:       
- *
- *
- *
- *
- *****************************************************************************
- */
-
-#include "Platform.h"
-#include "SQLTypeDefs.h"
-#include "SqlciRWCmd.h"
-#include "SqlciError.h"
-#include "sqlcmd.h"
-#include "SqlciEnv.h"
-#include "Formatter.h"
-#include "exp_clause_derived.h"
-#include "exp_datetime.h"
-#include "unicode_char_set.h"
-#include "RWInterface.h"
-
-extern SqlciEnv * global_sqlci_env; // global sqlci_env for break key handling purposes.
-void ReportWriterError ( ErrorValue *e )
-{
-#pragma nowarn(1506)  // warning elimination
-  //Note: when C++ compiler bug is fixed, use constructor/destructor to
-  //manage memory allocation/deallocation automatically
-
-  ErrorParam *ep1 = new ErrorParam (e->charparam1_);
-  ErrorParam *ep2 = new ErrorParam (e->charparam2_); 
-  ErrorParam *ep3 = new ErrorParam (e->charparam3_); 
-  ErrorParam *ep4 = new ErrorParam (e->intparam1_); 
-  ErrorParam *ep5 = new ErrorParam (e->intparam2_); 
-  ErrorParam *ep6 = new ErrorParam (e->intparam3_);
-
-  SqlciError2 (e->errorCode_,
-       ep1,
-       ep2,
-       ep3,
-       ep4,
-       ep5,
-       ep6,
-        (ErrorParam *) 0);
-
-  delete ep1;
-  delete ep2;
-  delete ep3;
-  delete ep4;
-  delete ep5;
-  delete ep6;
-#pragma warn(1506)  // warning elimination
-}
-
-void SetError ( ErrorValue *e, Lng32 errorCode)
-{
-    e->errorCode_ = errorCode;
-    e->charparam1_= NULL;
-    e->charparam2_= NULL;
-    e->charparam3_= NULL;
-    e->intparam1_= -1;
-    e->intparam2_= -1;
-    e->intparam3_= -1;
-}
-///////////////////////////////////////////////////////////////////////
-//
-// This is the base class for RW commands.
-// This class is not constructed by the parser.
-//
-///////////////////////////////////////////////////////////////////////
-
-SqlciRWCmd::SqlciRWCmd(const report_cmd_type cmd_type_)
-                  : SqlciNode(SqlciNode::REPORT_CMD_TYPE),
-                    cmd_type(cmd_type_)
-{
-};
-
-SqlciRWCmd::~SqlciRWCmd()
-{
-};
-
-///////////////////////////////////////////////////////////////////
-// this class is created by sqlci parser when a LIST command
-// ("LIST FIRST <N>", ...etc) is seen.
-//
-// The class is constructed with the list type and the number of
-// rows specified in it.
-//
-// ListType values:
-// List First:  FIRST_
-// List Next:   NEXT_
-// List All:    ALL_
-// Cancel:      END_
-//
-// numRows: number of rows specified in the List command.
-//          -1, if 'list all' is specified.
-//
-//////////////////////////////////////////////////////////////////
-SqlciRWListCmd::SqlciRWListCmd(ListType type, Lng32 listCount, NABoolean listCountSet)
-     : SqlciRWCmd(LIST_TYPE),
-       type_(type), listCount_(listCount),
-       listCountSet_(listCountSet)
-{
-}
-
-SqlciRWListCmd::~SqlciRWListCmd()
-{
-}
-
-short SqlciRWListCmd::process(SqlciEnv * sqlci_env)
-{
-  short rc = 0;
-
-  SqlciRWInterfaceExecutor::ExecutionState state = SqlciRWInterfaceExecutor::INITIAL_;
-  switch (type_)
-    {
-    case FIRST_:
-      state = SqlciRWInterfaceExecutor::LIST_FIRST_;
-      if (sqlci_env->getListCount() != SqlciEnv::MAX_LISTCOUNT
-          && !listCountSet_)
-#pragma nowarn(1506)   // warning elimination 
-        listCount_ = sqlci_env->getListCount();
-#pragma warn(1506)  // warning elimination 
-      else if (listCountSet_ == FALSE)
-        listCount_ = 0;
-      break;
-
-    case NEXT_:
-      state = SqlciRWInterfaceExecutor::LIST_NEXT_;
-      if (sqlci_env->getListCount() != SqlciEnv::MAX_LISTCOUNT
-        && !listCountSet_)
-#pragma nowarn(1506)   // warning elimination 
-        listCount_ = sqlci_env->getListCount();
-#pragma warn(1506)  // warning elimination 
-      else if (listCountSet_ == FALSE)
-        listCount_ = 0;
-
-      if (sqlci_env->sqlciRWEnv()->rwExe()->resetListFlag())
-	{
-	  // display warning indicating that reset was done.
-	  ErrorValue err;
-	  err.errorCode_ = SQLCI_RW_RESET_LIST;
-          err.charparam1_= NULL;
-          err.charparam2_= NULL;
-          err.charparam3_= NULL;
-          err.intparam1_= -1;
-          err.intparam2_= -1;
-          err.intparam3_= -1;
-	  ReportWriterError(&err);
-
-	  // and reset the list to start at the beginning.
-	  state = SqlciRWInterfaceExecutor::LIST_FIRST_;
-	}
-      break;
-
-    case ALL_:
-      state = SqlciRWInterfaceExecutor::LIST_ALL_;
-      sqlci_env->sqlciRWEnv()->setSelectInProgress(FALSE); 
-      break;
-
-    }
-
-  sqlci_env->sqlciRWEnv()->rwExe()->setResetListFlag(FALSE);
-
-  sqlci_env->sqlciRWEnv()->rwExe()->setState(state);
-  
-  sqlci_env->sqlciRWEnv()->rwExe()->setListCount(listCount_);
-
-  rc = sqlci_env->sqlciRWEnv()->rwExe()->process(sqlci_env);
-
-  return rc;
-}
-
-//////////////////////////////////////////////////////////////////////////////
-//
-// This class is constructed by the parser when a CANCEL is seen.
-// This cancels any select in progress command, then gets out of RW
-// prompt and into mxci prompt.
-//
-//////////////////////////////////////////////////////////////////////////////
-SqlciRWCancelCmd::SqlciRWCancelCmd()
-     : SqlciRWCmd(CANCEL_TYPE)
-{
-}
-
-SqlciRWCancelCmd::~SqlciRWCancelCmd()
-{
-}
-
-short SqlciRWCancelCmd::process(SqlciEnv * sqlci_env)
-{
-  short rc = 0;
-
-  sqlci_env->sqlciRWEnv()->rwExe()->setState(SqlciRWInterfaceExecutor::CANCEL_);
-  
-  rc = sqlci_env->sqlciRWEnv()->rwExe()->process(sqlci_env);
-  sqlci_env->sqlciRWEnv()->setSelectInProgress(FALSE); 
-  return rc;
-}
-
-
-//////////////////////////////////////////////////////////////////////////////
-//
-// This class is constructed by the parser when a report writer query is seen.
-// These are the queries which are to be passed to RW without any
-// interpretation by sqlci.
-//
-//////////////////////////////////////////////////////////////////////////////
-SqlciRWQueryCmd::SqlciRWQueryCmd(char * rwCmd, Lng32 rwCmdLen)
-     : SqlciRWCmd(RW_QUERY_TYPE)
-{
-  rwCmdLen_ = rwCmdLen;
-  if (rwCmd)
-    {
-      rwCmd_ = new char[strlen(rwCmd)+1];
-      strcpy(rwCmd_, rwCmd);
-    }
-  else
-    rwCmd_ = 0;
-}
-
-SqlciRWQueryCmd::~SqlciRWQueryCmd()
-{
-  if (rwCmd_)
-    delete rwCmd_;
-}
-
-short SqlciRWQueryCmd::process(SqlciEnv * sqlci_env)
-{
-  short rc = 0;
-
-  sqlci_env->sqlciRWEnv()->rwExe()->setRWCmd(rwCmd_, rwCmdLen_);
-
-  sqlci_env->sqlciRWEnv()->rwExe()->setState(SqlciRWInterfaceExecutor::SEND_QUERY_TO_RW_);
-
-  rc = sqlci_env->sqlciRWEnv()->rwExe()->process(sqlci_env);
-
-  return rc;
-}
-
-////////////////////////////////////////////////////////////////////
-//
-// This class is constructed by parser when a RW Select command is
-// seen. This is the select query that follows a 'set list_count'
-// command.
-//
-////////////////////////////////////////////////////////////////////
-SqlciRWSelectCmd::SqlciRWSelectCmd(char * selectCmd)
-     : SqlciRWCmd(SELECT_TYPE)
-{
-  if (selectCmd)
-    {
-      selectCmd_ = new char[strlen(selectCmd)+1];
-      strcpy(selectCmd_, selectCmd);
-    }
-  else
-    selectCmd_ = 0;
-}
-
-SqlciRWSelectCmd::~SqlciRWSelectCmd()
-{
-  if (selectCmd_)
-    delete selectCmd_;
-}
-
-short SqlciRWSelectCmd::process(SqlciEnv * sqlci_env)
-{
-  short rc = 0;
-
-  sqlci_env->sqlciRWEnv()->rwExe()->setSelectCmd(selectCmd_);
-
-  sqlci_env->sqlciRWEnv()->rwExe()->setState(SqlciRWInterfaceExecutor::PREPARE_);
-
-  sqlci_env->sqlciRWEnv()->rwExe()->setResetListFlag(FALSE);
-
-  rc = sqlci_env->sqlciRWEnv()->rwExe()->process(sqlci_env);
-  return rc;
-}
-
-////////////////////////////////////////////////////////////////////
-//
-// This class is constructed by parser when a RW execute command is
-// seen. This is the execute of a prepared select query that follows 
-// a 'set list_count' command.
-//
-////////////////////////////////////////////////////////////////////
-SqlciRWExecuteCmd::SqlciRWExecuteCmd(char * stmtName, char * usingParamStr)
-     : SqlciRWCmd(EXECUTE_TYPE)
-{
-  if (stmtName)
-    {
-      stmtName_ = new char[strlen(stmtName)+1];
-      strcpy(stmtName_, stmtName);
-    }
-  else
-    stmtName_ = 0;
-
-  if (usingParamStr)
-    {
-      usingParamStr_ = new char[strlen(usingParamStr) + 1];
-      strcpy(usingParamStr_, usingParamStr);
-    }
-  else
-    {
-      usingParamStr_ = NULL;
-    }
-}
-
-SqlciRWExecuteCmd::~SqlciRWExecuteCmd()
-{
-  if (stmtName_)
-    delete stmtName_;
-
-  if (usingParamStr_)
-    delete usingParamStr_;
-}
-
-short SqlciRWInterfaceExecutor::setUsingParamInfo(char * usingParamStr)
-{
-  short rc = 0;
-
-  numUsingParams_ = 0;
-  if (usingParamStr)
-    {
-      if (! usingParams_)
-	usingParams_ = new char * [MAX_NUM_UNNAMED_PARAMS];
-
-      for (Int32 i = numUsingParams_; i > 0; )
-	delete usingParams_[--i];
-
-      rc = (short)Execute::storeParams(usingParamStr, numUsingParams_,
-				       usingParams_);
-    }
-
-  return rc;
-}
-
-short SqlciRWExecuteCmd::process(SqlciEnv * sqlci_env)
-{
-  short rc = 0;
-
-  PrepStmt * prepStmt = sqlci_env->get_prep_stmts()->get(stmtName_);
-  if (! prepStmt)
-    {
-      sqlci_env->diagsArea() << DgSqlCode(-SQLCI_STMT_NOT_FOUND)
-			     << DgString0(stmtName_);
-
-      return 0;
-    }
-
-  sqlci_env->sqlciRWEnv()->rwExe()->setExecutePrepStmt(prepStmt);
-  sqlci_env->sqlciRWEnv()->rwExe()->setExecuteCmd(stmtName_);
-
-  if (usingParamStr_)
-    {
-      rc = 
-	sqlci_env->sqlciRWEnv()->rwExe()->setUsingParamInfo(usingParamStr_);
-      if (rc)
-	return 0;
-    }
-
-  sqlci_env->sqlciRWEnv()->rwExe()->setState(SqlciRWInterfaceExecutor::SELECT_STARTED_);
-
-  sqlci_env->sqlciRWEnv()->rwExe()->setResetListFlag(FALSE);
-
-  rc = sqlci_env->sqlciRWEnv()->rwExe()->process(sqlci_env);
-  sqlci_env->sqlciRWEnv()->setSelectInProgress(TRUE);
-
-  return rc;
-}
-
-////////////////////////////////////////////////////////////////////////
-//
-// This class is the execution engine to process the RW select command.
-// It contains all the methods and other information that is needed to
-// interact with RW (mxci calling RW) when a select command is processed.
-//
-// It is constructed during SqlciRWSelectCmd::process and is 'alive'
-// as long as that 'select is in progress'. The globals RWEnv points to this
-// class.
-//
-////////////////////////////////////////////////////////////////////////
-
-SqlciRWInterfaceExecutor::SqlciRWInterfaceExecutor()
-     : selectCmd_(NULL),
-       executeStmtName_(NULL),
-       usingParams_(NULL), numUsingParams_(0),
-       rwCmd_(NULL), rwCmdLen_(0),
-       inputRow_(NULL), inputRowLen_(0),
-       outputRow_(NULL), outputRowLen_(0),
-       listCount_(0), currCount_(0),
-       cursorOpened_(FALSE),
-       prepStmt_(NULL),
-       flags_(0),
-       state_(INITIAL_)
-{
-}
-
-void SqlciRWInterfaceExecutor::setSelectCmd(char * selectCmd)
-{
-  if (selectCmd_)
-    delete selectCmd_;
-  selectCmd_ = NULL;
-
-  if (executeStmtName_)
-    delete executeStmtName_;
-  executeStmtName_ = NULL;
-
-  if (selectCmd)
-    {
-      selectCmd_ = new char[strlen(selectCmd)+1];
-      strcpy(selectCmd_, selectCmd);
-    }
-  else
-    selectCmd_ = 0;
-  
-  state_ = INITIAL_;
-}
-
-void SqlciRWInterfaceExecutor::setExecuteCmd(char * executeStmtName)
-{
-  if (selectCmd_)
-    delete selectCmd_;
-  selectCmd_ = NULL;
-
-  if (executeStmtName_)
-    delete executeStmtName_;
-
-  if (executeStmtName)
-    {
-      executeStmtName_ = new char[strlen(executeStmtName)+1];
-      strcpy(executeStmtName_, executeStmtName);
-    }
-  else
-    executeStmtName_ = 0;
-  
-  state_ = INITIAL_;
-}
-
-void SqlciRWInterfaceExecutor::setRWCmd(char * rwCmd, Lng32 rwCmdLen)
-{
-  if (rwCmd_)
-    delete rwCmd_;
-
-  rwCmdLen_ = rwCmdLen;
-  
-  if (rwCmd)
-    {
-      rwCmd_ = new char[strlen(rwCmd)+1];
-      strcpy(rwCmd_, rwCmd);
-    }
-  else
-    rwCmd_ = 0;
-}
-
-SqlciRWInterfaceExecutor::~SqlciRWInterfaceExecutor()
-{
-  if (selectCmd_)
-    delete selectCmd_;
-
-  if (executeStmtName_)
-    delete executeStmtName_;
-}
-
-//////////////////////////////////////////////////////////////////////////
-// Returns the next state of the state machine based on the retcode
-// and the nextState.
-// 'retcode' is of type RetStatus in RWInterface.h.
-//
-// If retcode is ERROR, then next state of error is returned.
-// If the nextState sent in is different than the current state, state_,
-// then it overrides the retcode state and is returned.
-// Otherwise, the state based on retcode is returned.
-//
-//////////////////////////////////////////////////////////////////////////
-SqlciRWInterfaceExecutor::ExecutionState SqlciRWInterfaceExecutor::getNextState(
-     Lng32 retcode,
-     SqlciRWInterfaceExecutor::ExecutionState nextState)
-{
-  ExecutionState state;
-
-  if (retcode == ERR)
-    state = RW_ERROR_;
-  else if (state_ != nextState)
-    state = nextState;
-  else
-    {
-      switch (retcode)
-	{
-	case SEND_QUERY:
-	  state = GET_INPUT_FROM_SQLCI_;
-	  break;
-	  
-	case SEND_INPUT_ROW:
-	  state = FETCH_;
-	  break;
-	  
-	case GET_OUTPUT_ROW:
-	  state = GET_OUTPUT_ROW_FROM_RW_;
-	  break;
-	  
-	case DONE:
-	  state = CLOSE_;
-	  break;
-
-	case RESET_LIST:
-	  state = RESET_LIST_;
-	  break;
-
-	default:
-	  state = state_;
-	  break;
-	  
-	}
-    }
-
-  return state;
-}
-
-Lng32 SqlciRWInterfaceExecutor::printOutputRow(SqlciEnv * sqlci_env,
-					      char * outputBuf,
-					      Lng32 outputBufLen)
-{
-  Logfile *log = sqlci_env->get_logfile();
-
-  log->WriteAll(outputBuf, outputBufLen, 0);
-
-  return 0;
-}
-
-static NABoolean isSqlError(Lng32 sqlRetcode)
-{
-  if (sqlRetcode < 0)
-    return TRUE;
-  else
-    return FALSE;
-}
-
-short SqlciRWInterfaceExecutor::open(SqlciEnv * sqlci_env)
-{
-  short rc;
-
-#ifdef _DEBUG
-      if (getenv("SHOW_RW_STATE"))
-	{
-	  char buf[40];
-	  strcpy(buf, "OPEN_");
-	  cout << "State " << buf << endl;
-	}
-#endif
-
-  // close cursor. TBD: add SqlCmd::close() call to do this.
-  // Ignore error, stmt may already be closed.
-  SQL_EXEC_CloseStmt(prepStmt_->getStmt());
-  SQL_EXEC_ClearDiagnostics(prepStmt_->getStmt());
-  
-  // open the stmt
-  rc = SqlCmd::doExec(sqlci_env,
-		      prepStmt_->getStmt(),
-		      prepStmt_,
-		      numUsingParams_,
-		      usingParams_);
-
-  currCount_ = 0;
-
-  cursorOpened_ = TRUE;
-
-  return rc;
-}
-
-void SqlciRWInterfaceExecutor::Close(SqlciEnv *sqlci_env)
-{
-  if (prepStmt_)
-    SQL_EXEC_CloseStmt(prepStmt_->getStmt());
-
-  SQL_EXEC_ClearDiagnostics(NULL);
-	
-  // Deallocate, if selectCmd. This call also
-  // deallocates the passed prepStmt_.
-  if ((selectCmd_) &&(prepStmt_))
-  {
-    SqlCmd::deallocate(sqlci_env, prepStmt_);
-    prepStmt_ = NULL;
-    // make sure that this is reset so we dont deallocate
-    // it again in interrupt handler if the break key is hit.
-    global_sqlci_env->resetDeallocateStmt(); 
-  }
-
-  cursorOpened_ = FALSE;
-
-}
-
-short SqlciRWInterfaceExecutor::process(SqlciEnv * sqlci_env)
-{
-  short retcode = 0;
-  Lng32 sqlRetcode = 0;
-  Lng32 rwRetcode = 0;
-
-  NABoolean done = FALSE;
-
-// 64-bit: no more report writer
-  assert(0);
-
-  return retcode;
-}
-
-/////////////////////////////////////////////////////////////////////
-// These methods are called by RW to extract information about
-// an input row.
-/////////////////////////////////////////////////////////////////////
-Lng32 MXCI_RW_getMaxColumns (void *sqlciEnv, Lng32 &max, ErrorValue* &e)
-{
-  SqlciEnv * sqlci_env = (SqlciEnv *)sqlciEnv;
-  
-  PrepStmt * prepStmt = sqlci_env->sqlciRWEnv()->rwExe()->prepStmt();
-  if (! prepStmt)
-  {
-    // populate 'e', stmt doesn't exist. TBD.
-    if (e == NULL)
-    {
-      e = new ErrorValue;
-    }
-    SetError(e, -SQLCI_STMT_NOT_FOUND);
-    ReportWriterError(e);
-    return ERR;
-  }
-
-  max = prepStmt->numOutputEntries();
-
-  return SUCCESS;
-}
-
-//////////////////////////////////////////////////////////////////////
-Lng32 MXCI_RW_getColInfo (void *sqlciEnv, Lng32 column, 
-			 AttributeDetails* &entry, ErrorValue* &e)
-{
-  SqlciEnv * sqlci_env = (SqlciEnv *)sqlciEnv;
-
-  PrepStmt * prepStmt = sqlci_env->sqlciRWEnv()->rwExe()->prepStmt();
-
-  if (! prepStmt)
-  {
-    if (e == NULL)
-    {
-      e = new ErrorValue;
-    }
-    SetError(e, -SQLCI_STMT_NOT_FOUND);
-    ReportWriterError(e);
-    return ERR;
-  }
-   
-
-  if ((column <= 0) ||
-      (column > prepStmt->numOutputEntries()))
-  {
-    if (e == NULL)
-    {
-      e = new ErrorValue;
-    }
-    SetError(e, -SQLCI_WRONG_COLUMN_VALUE);
-    ReportWriterError(e);
-    return ERR;
-    
-  }
-
-  if (entry == NULL)
-  {
-      // allocate entry here. 
-      // How will this get deallocated? TBD.
-      entry = new AttributeDetails;
-  }
-
-  PrepEntry * outputEntry = prepStmt->outputEntries()[column-1];
-
-  entry->dataType_ = outputEntry->datatype();
-  entry->length_ = outputEntry->length();
-  entry->precision_ = outputEntry->precision();
-  entry->scale_ = outputEntry->scale();
-  entry->nullable_ = outputEntry->nullFlag();
-  entry->headingLen_ = outputEntry->headingLen();
-  entry->heading_ = outputEntry->heading();
-  entry->output_ = outputEntry->outputName();
-  entry->outputLen_ = outputEntry->outputNameLen();
-  entry->tableName_ = outputEntry->tableName();
-  entry->tableLen_ = outputEntry->tableLen();
-
-  
-  entry->displayLen_ = Formatter::display_length(entry->dataType_,
-						 entry->length_,
-						 entry->precision_,
-						 entry->scale_,
-                                                 outputEntry->charsetEnum(),
-                                                 0,
-                                                 (SqlciEnv *) sqlciEnv,
-                                                 NULL);
-
-  if (entry->dataType_ == REC_DATETIME)
-    {
-      entry->dateTimeCode_ = outputEntry->precision();
-      entry->precision_ = 0; // not used for datetime
-    }
-  else if (entry->dataType_ >= REC_MIN_INTERVAL && 
-	   entry->dataType_ <= REC_MAX_INTERVAL) 
-    {
-      entry->leadPrecision_ = outputEntry->precision();
-    }
-  else if (DFS2REC::isAnyCharacter(entry->dataType_))
-    {
-      entry->charSet_ = outputEntry->charset();
-	  
-      entry->collation_ = 0; //TBD
-    }
-
-  return SUCCESS;
-}
-
-//////////////////////////////////////////////////////////////////////////
-#pragma nowarn(770)  // warning elimination
-Lng32 MXCI_RW_getColAddr (void *sqlciEnv, Lng32 column, char *input_row, 
-                          Lng32 len, char* &ptr, ErrorValue* &e)
-{
-  Lng32 retcode = 0;
-
-  SqlciEnv * sqlci_env = (SqlciEnv *)sqlciEnv;
-
-  PrepStmt * prepStmt = sqlci_env->sqlciRWEnv()->rwExe()->prepStmt();
-  if (! prepStmt)
-    // populate 'e', stmt doesn't exist. TBD.
-  {
-    if (e == NULL)
-    {
-      e = new ErrorValue;
-    }
-    SetError(e, -SQLCI_STMT_NOT_FOUND);
-    ReportWriterError(e);
-    return ERR;
-    
-  }
-
-  if ((column <= 0) ||
-      (column > prepStmt->numOutputEntries()))
-    // populate 'e', incorrect column value. TBD.
-  {
-    if (e == NULL)
-    {
-      e = new ErrorValue;
-    }
-    SetError(e, -SQLCI_WRONG_COLUMN_VALUE);
-    ReportWriterError(e);
-    return ERR;
-  }
-
-  PrepEntry * outputEntry = prepStmt->outputEntries()[column-1];
-  SQLDESC_ID * output_desc = prepStmt->getOutputDesc();
-
-  // the address of the data row.
-  // Should be the same as the 'input_row' address passed in.
-  char * outputData = prepStmt->outputData();
-  if (outputData != input_row)
-    return ERR;
-
-  Long data_addr = 0;
-  Long ind_data_addr = 0;
-  
-  retcode = SQL_EXEC_GetDescItem(output_desc, column,
-				 SQLDESC_VAR_PTR,
-				 &data_addr, 0, 0, 0, 0);
- 
-  retcode = SQL_EXEC_GetDescItem(output_desc, column,
-				 SQLDESC_IND_PTR,
-				 &ind_data_addr, 0, 0, 0, 0);
-  if (outputEntry->nullFlag())
-    data_addr = ind_data_addr;
-
-  ptr = (char*)data_addr;
-
-  return SUCCESS;
-}
-#pragma warn(770)  // warning elimination
-
-//////////////////////////////////////////////////////////////////////////
-// This method formats the input datetime value to the specified datetime
-// format.
-// The input value is in external (string) format.
-//////////////////////////////////////////////////////////////////////////
-#pragma nowarn(770)  // warning elimination
-Lng32 MXCI_RW_convertToDateFormat(void * sqlciEnv, 
-				 char* srcPtr, AttributeDetails* srcEntry,
-				 char *tgtPtr, AttributeDetails* tgtEntry, 
-				 DateTimeFormat format, ErrorValue* &e)
-{
-  Lng32 rc;
-
-  Int32 dtFormat;
-  switch (format)
-    {
-    case DEFAULT:
-      dtFormat = ExpDatetime::DATETIME_FORMAT_DEFAULT; break;
-    case USA:
-      dtFormat = ExpDatetime::DATETIME_FORMAT_USA; break;
-    case EUROPEAN:
-      dtFormat = ExpDatetime::DATETIME_FORMAT_EUROPEAN; break;
-    default:
-      assert(0);
-      return ERR;
-    }
-
-  rc =  ExpDatetime::convAsciiDatetimeToASCII(srcPtr,
-					      srcEntry->dateTimeCode_,
-					      srcEntry->scale_,
-					      srcEntry->length_,
-					      tgtPtr,
-					      tgtEntry->length_,
-					      format,
-					      NULL,
-					      NULL);
-  if (rc)
-    {
-      if (e == NULL)
-	{
-	  e = new ErrorValue;
-	}
-      SetError(e, SQLCI_CONV_RESULT_FAILED);
-      ReportWriterError(e);
-      return ERR;
-    }
-  else
-    return SUCCESS;
-}
-#pragma warn(770)  // warning elimination
-
-/////////////////////////////////////////////////////////////////////////////////////
-Lng32 MXCI_RW_allocateHeap (void* sqlciEnv, Lng32 len, char* &ptr)
-{
-
-  SqlciEnv * sqlci_env = (SqlciEnv *)sqlciEnv;
-  
-  NAHeap *h = sqlci_env->sqlciRWEnv()->rwHeap();
-  void *p = NULL;
-
-  if (h)
-    p = h->allocateMemory(len, TRUE);
- 
-  if (p)
-  {
-    ptr = (char *)p;
-    return SUCCESS;
-  }
-  else
-    return ERR;
-}
-
-///////////////////////////////////////////////////////////////////////////////////////
-
-Lng32 MXCI_RW_deallocateHeap (void* sqlciEnv, Lng32 len, char* ptr)
-{
-
-  SqlciEnv * sqlci_env = (SqlciEnv *)sqlciEnv;
-  
-  if (len != 0)
-  {
-    sqlci_env->sqlciRWEnv()->rwHeap()->deallocateMemory((void*)ptr);
-    return SUCCESS;
-  }
-  else
-    return ERR;
-}
-
-
-////////////////////////////////////////////////////////////////////////////////////////
-
-Lng32 MXCI_RW_unicodeConvertToUpper (void *sqlciEnv, char *input_char, Lng32 num_of_input_bytes,
-     char *output_char, Lng32& num_of_output_bytes, ErrorValue* &e)
-{
-  //SqlciEnv * sqlci_env = (SqlciEnv *)sqlciEnv;
-  
-  Lng32 length_bytes = num_of_input_bytes;
-  
-  NAWchar* target = (NAWchar*)output_char;
-  NAWchar* source = (NAWchar*)input_char;
-  Int32 wc_len = length_bytes/2;
-  Int32 actual_len = 0;
-  NAWchar* tmpWCP = NULL;
-  Int32 maxWideChars = num_of_output_bytes / 2;
-
-  if ((((Long)input_char % 2) != 0) || (((Long)output_char % 2) != 0))
-  {
-    if (e == NULL)
-    {
-      e = new ErrorValue;
-    }
-    SetError(e, -SQLCI_RW_BUFFER_UNEVEN_BOUNDARY);
-    ReportWriterError(e);
-    return ERR;
-  }
-
-  // the logic in this code is from w:/exp/exp_function_upper_unicode.cpp 
-  // in the eval funciton.  Whenever that code changes this has to 
-  // change and vice versa.
-
-  for (Int32 i = 0; i < wc_len ; i++)
-  {
-    tmpWCP = unicode_char_set::to_upper_full(source[i]);
-    if (tmpWCP)
-    {
-      if (actual_len + ((tmpWCP[2] ==0) ? 2 : 3) > maxWideChars)
-      {
-        if (e == NULL)
-        {
-          e = new ErrorValue;
-        }
-        SetError(e, -SQLCI_RW_STRING_OVERFLOW);
-        ReportWriterError(e);
-        return ERR;
-      }// end of if
-
-      target[actual_len++] = tmpWCP[0];
-      target[actual_len++] = tmpWCP[1];
-
-      if (tmpWCP[2] != (NAWchar)0)
-        target[actual_len++] = tmpWCP[2];
-    }
-    else
-    {
-      if (actual_len >= maxWideChars)
-      {
-        if (e == NULL)
-        {
-          e = new ErrorValue;
-        }
-        SetError(e, -SQLCI_RW_STRING_OVERFLOW);
-        ReportWriterError(e);
-        return ERR;
-      }
-      target[actual_len++] = unicode_char_set::to_upper(source[i]);
-    }// end of else
-  } // end of for
-
-  num_of_output_bytes = (actual_len * 2);
-  return SUCCESS;
-}
-
-////////////////////////////////////////////////////////////////////////////////////
-
-Lng32 MXCI_RW_unicodeConvertToLower(void *sqlciEnv, char *input_char, Lng32 num_of_input_bytes,
-char *output_char, Lng32& num_of_output_bytes, ErrorValue* &e)
-{
- // SqlciEnv * sqlci_env = (SqlciEnv *)sqlciEnv;
-
-  Lng32 len1 = num_of_input_bytes;
-  Lng32 buffer_size = num_of_output_bytes/2 ;
-  num_of_output_bytes = len1;
-
-  NAWchar* target = (NAWchar*)output_char;
-  NAWchar* source = (NAWchar*)input_char;
-  Int32 wc_len = len1/2;
-
-  // the logic in this code is from w:/exp/exp_function_lower_unicode.cpp 
-  // in the eval funciton.  Whenever that code changes this has to 
-  // change and vice versa.
-
-  for (Int32 i = 0; i < wc_len; i++)
-  {
-    if (i >= buffer_size)
-    {
-      if (e == NULL)
-      {
-        e = new ErrorValue;
-      }
-      SetError(e,-SQLCI_RW_STRING_OVERFLOW);
-      ReportWriterError(e);
-      return ERR;
-    }
-    target[i] = unicode_char_set::to_lower(source[i]);
-  }
-  return SUCCESS;
-}
-
-/////////////////////////////////////////////////////////////////////////////
-/////////////////////////////////////////////////////////////////////////////
-Lng32 MXCI_RW_convDoIt (void *sqlciEnv, char* srcPtr, AttributeDetails* srcEntry,
-  char *tgtPtr, AttributeDetails* tgtEntry, short formatting, ErrorValue* &e)
-{
-  Lng32 retcode = 0;
-  ULng32 convFlags = 0;
-
-  if (formatting)
-    {
-      // if formatting, blankpad target before doing the conversion.
-      str_pad (tgtPtr,tgtEntry->displayLen_,' ');
-
-      // the formatted target will be left blank padded (blanks to the left).
-      convFlags |= CONV_LEFT_PAD;
-    }
-  else
-    convFlags = 0;
-
-
-  // SqlciEnv * sqlci_env = (SqlciEnv *)sqlciEnv;
-
-  // Check for nullability.  The logic for this code
-  // is in w:/exp/exp_conv.cpp::processNulls function
-
-  //  Source is nullable 
-  if (srcEntry->nullable_)  
-    {
-      //if data is null - if source data is acutally null
-      if ((srcPtr[0] != '\0') || (srcPtr[1] != '\0')) 
-        {
-          if (formatting)
-            {
-	      //if Target is not nullable
-	      if (!(tgtEntry->nullable_)  )
-		{
-		  tgtPtr[0] = '?';
-		  return SUCCESS;  // Conversion has taken place.
-		}
-	      else 
-		{
-		  if (e == NULL)
-		    {
-		      e = new ErrorValue;
-		    }
-		  SetError(e, -SQLCI_RW_INVALID_FORMATTING);
-		  ReportWriterError(e);
-		  return ERR;
-		}
-            } // end of formatting
-          else // if not formatting
-            {
-	      // source is nullable , source is null and target is nullable
-	      if (tgtEntry->nullable_)
-		{
-		  str_pad (tgtPtr,2,'\377');
-		  return SUCCESS;  // Conversion has taken place.
-		}
-	      else
-                {
-                  if (e == NULL)
-		    {
-		      e = new ErrorValue;
-		    }
-                  SetError(e, -SQLCI_CONV_NULL_TO_NOT_NULL);
-                  ReportWriterError(e);
-                  return ERR;
-                }
-            }// end of else of if not formatting
-          
-        }// end of source data is null
-      
-      // source is nullable but the source data is not null
-      else 
-        {
-          srcPtr = (char*)srcPtr + 2; // skip the null indicator bytes
-	  
-        } // end of else if source is nullable but source data is not null
-      
-      //if source is not null and target is nullable
-      // set null indicator in target if needed.
-      
-      if (tgtEntry->nullable_  )
-	{
-	  str_pad (tgtPtr,2,'\0');    // indicate that tgt is not null. Move the ptr by 2 bytes.
-	  tgtPtr = (char*)tgtPtr + 2;
-	}
-      
-    } // end of source is nullable
-
-  char * VCLen = NULL;
-  short VCLenSize = 0;
-  if (DFS2REC::isAnyVarChar(tgtEntry->dataType_))
-    {
-      VCLen = tgtPtr;
-      VCLenSize = 2;
-      tgtPtr = (char*)tgtPtr + VCLenSize;
-    }
-  
-  
-  // If the datatype is of time INTERVAL or of type DATETIME, then
-  // Set the datatype to _SQLDT_ASCII_F (char)
-  // Set the length to the display length.
-  // Set the precision to 0.
-  // Set the scale to 0.
-  
-  Lng32 length_;
-  Lng32 dataType_;
-  Lng32 precision_;
-  Lng32 scale_;
-  
-  if ( srcEntry->dataType_ == _SQLDT_DATETIME  || 
-       ( srcEntry->dataType_ >= _SQLDT_INT_Y_Y && srcEntry->dataType_ <= _SQLDT_INT_D_F)
-       )
-    {
-      length_ = srcEntry->displayLen_ ;
-      dataType_ = 0;
-      precision_ = 0;
-      scale_ = 0;
-    }
-  else
-    {
-      length_ = srcEntry->length_;
-      dataType_ = srcEntry->dataType_;
-      precision_ = srcEntry->precision_;
-      scale_ = srcEntry->scale_;
-    }
-  
-
-#pragma warning (disable : 4244)   //warning elimination
-#pragma nowarn(1506)   // warning elimination 
-  retcode = convDoIt(srcPtr,
-		     length_,
-		     dataType_,
-		     precision_,
-		     scale_,
-		     tgtPtr,
-		     tgtEntry->length_,
-		     tgtEntry->dataType_, 
-		     tgtEntry->precision_,
-		     tgtEntry->scale_,
-		     VCLen,			//varCharLen
-		     VCLenSize,		//varCharLenSize = 2
-		     0,			//heap
-		     0,		//diagsarea
-		     CONV_UNKNOWN,
-		     0,
-		     convFlags);
-#pragma warn(1506)  // warning elimination 
-#pragma warning (default : 4244)   //warning elimination
-  
-  
-  if (retcode)
-    {
-      return ERR;
-    }
-  else
-    return SUCCESS;
-  
-}
-
-
-
-

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/b952c0d5/core/sql/sqlci/SqlciRWCmd.h
----------------------------------------------------------------------
diff --git a/core/sql/sqlci/SqlciRWCmd.h b/core/sql/sqlci/SqlciRWCmd.h
deleted file mode 100644
index b719205..0000000
--- a/core/sql/sqlci/SqlciRWCmd.h
+++ /dev/null
@@ -1,299 +0,0 @@
-/**********************************************************************
-// @@@ START COPYRIGHT @@@
-//
-// Licensed to the Apache Software Foundation (ASF) under one
-// or more contributor license agreements.  See the NOTICE file
-// distributed with this work for additional information
-// regarding copyright ownership.  The ASF licenses this file
-// to you under the Apache License, Version 2.0 (the
-// "License"); you may not use this file except in compliance
-// with the License.  You may obtain a copy of the License at
-//
-//   http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing,
-// software distributed under the License is distributed on an
-// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-// KIND, either express or implied.  See the License for the
-// specific language governing permissions and limitations
-// under the License.
-//
-// @@@ END COPYRIGHT @@@
-//
-**********************************************************************/
-#ifndef SQLCI_RW_CMD_H
-#define SQLCI_RW_CMD_H
-
-/* -*-C++-*-
- *****************************************************************************
- *
- * File:         SqlciRWCmd.h
- * Description:  Methods to process commands that interact with SQL/CLI and RW.
- *               
- *               
- * Created:      6/6/2003
- * Language:     C++
- * Status:       
- *
- *
- *
- *
- *****************************************************************************
- */
-
-#include "SqlciNode.h"
-#include "RWInterface.h"
-#include "SqlciEnv.h"
-#include "SqlciError.h"
-
-// forward declarations to reduce header file recompilations.
-class PrepStmt;
-
-//////////////////////////////////////////
-// THis method handles error for report writer
-// interface related mehods.
-///////////////////////////////////////////
-void ReportWriterError ( ErrorValue *e); 
-void SetError ( ErrorValue *e, Lng32 errorCode);
-
-///////////////////////////////////////////////////////////////////////
-//
-// This is the base class for RW commands.
-// This class is not constructed by the parser.
-//
-///////////////////////////////////////////////////////////////////////
-
-class SqlciRWCmd : public SqlciNode {
-public:
-  enum report_cmd_type {
-        LIST_TYPE,CANCEL_TYPE, SELECT_TYPE, EXECUTE_TYPE, RW_QUERY_TYPE
-  };
-  SqlciRWCmd (report_cmd_type cmd_type_);
-  ~SqlciRWCmd();
-  NABoolean isAllowedInSIP() { return TRUE;};
-  NABoolean isAllowedInRWMode() { return FALSE; };
-  NABoolean isAllowedInCSMode() { return FALSE; };
-
-
-private:
-  report_cmd_type cmd_type;
-
-};
-
-///////////////////////////////////////////////////////////////////
-// this class is created by sqlci parser when a LIST command
-// ("LIST FIRST <N>", ...etc) is seen.
-//
-// The class is constructed with the list type and the number of
-// rows specified in it.
-//
-// ListType values:
-// List First:  FIRST_
-// List Next:   NEXT_
-// List All:    ALL_
-//
-// numRows: number of rows specified in the List command.
-//          -1, if 'list all' is specified.
-//
-//////////////////////////////////////////////////////////////////
-class SqlciRWListCmd : public SqlciRWCmd
-{
-public:
-  enum ListType
-  {
-    FIRST_, NEXT_, ALL_
-  };
-
-  SqlciRWListCmd(ListType type, Lng32 listCount, NABoolean listCountSet);
-  ~SqlciRWListCmd();
-  short process(SqlciEnv * sqlci_env);
-
-private:
-  ListType type_;
-  Lng32 listCount_;
-  NABoolean listCountSet_;
-};
-
-//////////////////////////////////////////////////////////////////////////////
-//
-// This class is constructed by the parser when a CANCEL is seen.
-// This cancels any select in progress command, then gets out of RW
-// prompt and into mxci prompt.
-//
-//////////////////////////////////////////////////////////////////////////////
-class SqlciRWCancelCmd : public SqlciRWCmd
-{
-public:
-  SqlciRWCancelCmd();
-  ~SqlciRWCancelCmd();
-  short process(SqlciEnv * sqlci_env);
-
-};
-
-
-//////////////////////////////////////////////////////////////////////////////
-//
-// This class is constructed by the parser when a report writer query is seen.
-// These are the queries which are to be passed to RW without any
-// interpretation by sqlci.
-//
-//////////////////////////////////////////////////////////////////////////////
-class SqlciRWQueryCmd : public SqlciRWCmd
-{
-public:
-  SqlciRWQueryCmd(char * rwCmd, Lng32 rwCmdLen_);
-  ~SqlciRWQueryCmd();
-  short process(SqlciEnv * sqlci_env);
-  NABoolean isAllowedInRWMode() { return TRUE; };
-
-private:
-  char * rwCmd_;
-  Lng32   rwCmdLen_;
-};
-
-////////////////////////////////////////////////////////////////////
-//
-// This class is constructed by parser when a RW Select command is
-// seen. This is the select query that follows a 'set list_count'
-// command.
-//
-////////////////////////////////////////////////////////////////////
-class SqlciRWSelectCmd : public SqlciRWCmd
-{
-public:
-  SqlciRWSelectCmd(char * selectCmd);
-  ~SqlciRWSelectCmd();
-  short process(SqlciEnv * sqlci_env);
-  NABoolean isAllowedInRWMode() { return TRUE; };
-
-private:
-  char * selectCmd_;
-};
-
-////////////////////////////////////////////////////////////////////
-//
-// This class is constructed by parser when a RW execute command is
-// seen. This is the execute of a prepared select query that follows 
-// a 'set list_count' command.
-//
-////////////////////////////////////////////////////////////////////
-class SqlciRWExecuteCmd : public SqlciRWCmd
-{
-public:
-  SqlciRWExecuteCmd(char * stmtName, char * usingParamStr);
-  ~SqlciRWExecuteCmd();
-  short process(SqlciEnv * sqlci_env);
-  NABoolean isAllowedInRWMode() { return TRUE; };
-
-private:
-  char * stmtName_;
-
-  char * usingParamStr_;
-  char ** usingParams_; // [MAX_NUM_UNNAMED_PARAMS];
-  short numUsingParams_;
-};
-
-////////////////////////////////////////////////////////////////////////
-//
-// This class is the execution engine to process the RW select command.
-// It contains all the methods and other information that is needed to
-// interact with RW (mxci calling RW) when a select command is processed.
-//
-// It is constructed during SqlciRWSelectCmd::process and is 'alive'
-// as long as that 'select is in progress'. The globals RWEnv points to this
-// class.
-//
-////////////////////////////////////////////////////////////////////////
-
-class SqlciRWInterfaceExecutor
-{
-public:
-  enum ExecutionState
-  {
-    INITIAL_,
-    PREPARE_, OPEN_AND_FETCH_, OPEN_AND_EXIT_, FETCH_, CLOSE_,
-    SELECT_STARTED_,
-    LIST_FIRST_, LIST_NEXT_, LIST_ALL_, RESET_LIST_,
-    GET_INPUT_FROM_SQLCI_, SEND_QUERY_TO_RW_,
-    SEND_FETCHED_ROW_TO_RW_, GET_OUTPUT_ROW_FROM_RW_,
-    PRINT_OUTPUT_,
-    CANCEL_,
-    LIST_ENDED_, SELECT_ENDED_,
-    SQL_ERROR_, RW_ERROR_, 
-    EXIT_
-  };
-
-  SqlciRWInterfaceExecutor();
-
-  ~SqlciRWInterfaceExecutor();
-
-  short process(SqlciEnv * sqlci_env);
-
-  void setState(ExecutionState state) { state_ = state; };
-
-  void setListCount(Lng32 listCount) 
-  { 
-    listCount_ = listCount; 
-    currCount_ = -1;
-  };
-
-  void setSelectCmd(char * selectCmd);
-  void setExecuteCmd(char * executeStmtName);
-  void setExecutePrepStmt(PrepStmt * prepStmt)
-  {
-    prepStmt_ = prepStmt;
-  }
-
-  short setUsingParamInfo(char * usingParamStr);
-  void setRWCmd(char * rwCmd, Lng32 rwCmdLen);
-
-  ExecutionState getNextState(Lng32 retcode, ExecutionState nextState);
-
-  Lng32 printOutputRow(SqlciEnv * sqlci_env, char * outputBuf, Lng32 outputBufLen);
-
-  PrepStmt * prepStmt() { return prepStmt_; };
-  void Close(SqlciEnv * sqlci_env); // Closes the prepStmt and deallocates/
-  
-  NABoolean resetListFlag() { return (flags_ & RESET_LIST_FLAG) != 0; }
-  void setResetListFlag(NABoolean v)
-  { (v ? flags_ |= RESET_LIST_FLAG : flags_ &= ~RESET_LIST_FLAG); }
-
-private:
-  enum {
-    RESET_LIST_FLAG = 0x0001
-  };
-
-  char * selectCmd_;
-
-  char * executeStmtName_;
-  char ** usingParams_;
-  short numUsingParams_;
-
-  char * rwCmd_;
-  Lng32   rwCmdLen_;
-
-  char * inputRow_;
-  Lng32   inputRowLen_;
-
-  char * outputRow_;
-  Lng32   outputRowLen_;
-
-  Lng32 listCount_;
-  Lng32 currCount_;
-
-  NABoolean cursorOpened_;
-
-  PrepStmt * prepStmt_;
-
-  ULng32 flags_;
-
-  ExecutionState state_;
-
-  // private methods
-  short open(SqlciEnv* sqlci_env);
-
-};
-
-
-#endif
-

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/b952c0d5/core/sql/sqlci/SqlciRWSimulator.cpp
----------------------------------------------------------------------
diff --git a/core/sql/sqlci/SqlciRWSimulator.cpp b/core/sql/sqlci/SqlciRWSimulator.cpp
deleted file mode 100644
index 37b8498..0000000
--- a/core/sql/sqlci/SqlciRWSimulator.cpp
+++ /dev/null
@@ -1,375 +0,0 @@
-/**********************************************************************
-// @@@ START COPYRIGHT @@@
-//
-// Licensed to the Apache Software Foundation (ASF) under one
-// or more contributor license agreements.  See the NOTICE file
-// distributed with this work for additional information
-// regarding copyright ownership.  The ASF licenses this file
-// to you under the Apache License, Version 2.0 (the
-// "License"); you may not use this file except in compliance
-// with the License.  You may obtain a copy of the License at
-//
-//   http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing,
-// software distributed under the License is distributed on an
-// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-// KIND, either express or implied.  See the License for the
-// specific language governing permissions and limitations
-// under the License.
-//
-// @@@ END COPYRIGHT @@@
-//
-**********************************************************************/
-/* -*-C++-*-
- *****************************************************************************
- *
- * File:         SqlciRWSimulator.cpp
- * Description:  Methods to implement RW_MXCI commands until the real code
- *               from RW is available.
- *               
- *               
- * Created:      6/6/2003
- * Language:     C++
- * Status:       
- *
- *
- *
- *
- *****************************************************************************
- */
-
-#include <stdlib.h>
-#include <string.h>
-#include <wchar.h>
-
-#include "sqlcmd.h"
-#include "SqlciRWCmd.h"
-#include "RWInterface.h"
-#include "Formatter.h"
-
-
-
-class ReportWriterEnv
-{
-public:
-  ReportWriterEnv();
-  ~ReportWriterEnv();
-
-  char* &headingRow() { return headingRow_; };
-  char* &footingRow() { return footingRow_; };
-  char* &underline() { return underline_; };
-  char* &inputRow() { return inputRow_; };
-
-  Lng32 &headingRowNum() { return headingRowNum_; }
-  Lng32 &footingRowNum() { return footingRowNum_; }
-private:
-  char * headingRow_;
-  char * underline_;
-  char * inputRow_;
-
-  Lng32 headingRowNum_;
-
-  char * footingRow_;
-  Lng32 footingRowNum_;
-};
-
-ReportWriterEnv::ReportWriterEnv()
-     : headingRow_(NULL), underline_(NULL),
-       headingRowNum_(-1),
-       footingRow_(NULL), footingRowNum_(-1)
-{
-}
-
-ReportWriterEnv::~ReportWriterEnv()
-{
-  if (headingRow_)
-    delete headingRow_;
-
-  if (footingRow_)
-    delete footingRow_;
-
-  if (underline_)
-    delete underline_;
-}
-
-Lng32 RW_MXCI_Constructor (void* &RWEnv, void *SqlciEnv)
-{
-  ReportWriterEnv * rwEnv = new ReportWriterEnv();
-
-  RWEnv = rwEnv;
-
-  return 0;
-}
-
-Lng32 RW_MXCI_Destructor (void* &RWEnv, void *sqlciEnv)
-{
-  SqlciEnv * sqlci_env = (SqlciEnv *)sqlciEnv;
-  delete (ReportWriterEnv *)RWEnv;
-
-  return SUCCESS;
-}
-
-Lng32 RW_MXCI_sendQuery (void* &RWEnv, void *sqlciEnv, char *query, Lng32 len)
-{
-  ReportWriterEnv * rwEnv = (ReportWriterEnv *)RWEnv;
-  SqlciEnv * sqlci_env = (SqlciEnv *)sqlciEnv;
-
-  if (strncmp(query, "rw reset_list", 13) == 0)
-    return RESET_LIST;
-  else
-    return SEND_QUERY;
-}
-
-Lng32 RW_MXCI_sendInputRow (void* &RWEnv, void* sqlciEnv, char *input_row, Lng32 len)
-{
-  ReportWriterEnv * rwEnv = (ReportWriterEnv *)RWEnv;
-  SqlciEnv * sqlci_env = (SqlciEnv *)sqlciEnv;
-
-  rwEnv->inputRow() = input_row;
-
-  return GET_OUTPUT_ROW;
-}
-
-static Lng32 RWformatRow(void* &RWEnv,
-			void *sqlciEnv, char* &output_row, Lng32 &len)
-{
-  ReportWriterEnv * rwEnv = (ReportWriterEnv *)RWEnv;
-
-  Lng32 max;
-  ErrorValue *e = NULL;
-
-  char * buf;
-  char * tgt;
-  Lng32 error = MXCI_RW_allocateHeap (sqlciEnv, 200, buf);
-  Lng32 error1 = MXCI_RW_allocateHeap (sqlciEnv, 600, tgt);
-
-  if (error)
-    return ERR;
- 
-  MXCI_RW_getMaxColumns (sqlciEnv, max, e);
-
-  Lng32 curpos = 0;
-  AttributeDetails * entry = NULL; 
-
-  for (short column=1; column <= max; column++)
-  {
-      MXCI_RW_getColInfo(sqlciEnv, column, 
-			 entry, e);
-      
-      char * ptr = NULL;
-      MXCI_RW_getColAddr (sqlciEnv, column, rwEnv->inputRow(),
-                          len, ptr, e);
-
-      char dateFmtBuf[30];
-      if (getenv("RW_DATEFORMAT") &&
-	  entry->dataType_ == 192)
-	{
-	  char * d = getenv("RW_DATEFORMAT");
-	  DateTimeFormat dt = EUROPEAN;
-	  if (strcmp(d, "DEFAULT") == 0)
-	    dt = DEFAULT;
-	  else if (strcmp(d, "USA") == 0)
-	    dt = USA;
-	  else if (strcmp(d, "EUROPEAN") == 0)
-	    dt = EUROPEAN;
-	    
-	  error = MXCI_RW_convertToDateFormat(sqlciEnv, ptr, entry,
-					      dateFmtBuf, entry,
-					      dt,
-					      e);
-	  ptr = dateFmtBuf;
-	}
-
-      Formatter::buffer_it((SqlciEnv *)sqlciEnv, ptr,
-			   entry->dataType_,
-			   entry->length_,
-			   entry->precision_,
-			   entry->scale_,
-			   NULL,
-			   entry->displayLen_,
-			   entry->displayLen_,
-			   entry->nullable_,
-			   &buf[curpos], &curpos,
-			   column < max,	//separatorNeeded
-			   TRUE);               //checkShowNonPrinting
-
-
-    }
-   
-  /*//Unicode test case # 1
-  NAWchar Buf1[50];
-  Buf1[0]=0x00F8; // from 11_lt2u.h
-  Buf1[1]=0x0042; // regular ascii character
-  long input_len1 = 4 ; // 2 * 2 = 4 ; 2 bytes per wide char
-  NAWchar out_buf1[6];
-  long out_len1 = 6;
-  long retcode = MXCI_RW_unicodeConvertToUpper(sqlciEnv,(char*)Buf1,input_len1, (char*)out_buf1, out_len1, e);
-
-  // Unicode test case # 2
-  NAWchar *Buf2 = L"ABCD EFG";
-  long input_len2 = wcslen(Buf2);
-  NAWchar out_buf2[100];
-  long out_len2 = 100;
-  long retcode2 = MXCI_RW_unicodeConvertToUpper(sqlciEnv,(char*)Buf2,input_len2, (char*)out_buf2, out_len2, e);
-
-  // Unicode test case # 3
-  NAWchar Buf3[50];
-  Buf3[0]=0x00D8; // from 11_ut2l.h
-  Buf3[1]=0x0042; // regular ascii character
-  long input_len3 = 4 ; // 2 * 2 = 4 ; 2 bytes per wide char
-  NAWchar out_buf3[6];
-  long out_len3 = 6;
-  long retcode3 = MXCI_RW_unicodeConvertToLower(sqlciEnv,(char*)Buf3,input_len3, (char*)out_buf3, out_len3, e);
-
-  // Unicode test case # 4
-  NAWchar *Buf4 = L"ABCD EFG";
-  long input_len4 = wcslen(Buf2);
-  NAWchar out_buf4[100];
-  long out_len4 = 100;
-  long retcode4 = MXCI_RW_unicodeConvertToLower(sqlciEnv,(char*)Buf4,input_len4, (char*)out_buf4, out_len4, e);
-  */
-
-  /* // ConvDoIt test case
-  AttributeDetails *srcEntry = new AttributeDetails;
-  AttributeDetails *tgtEntry = new AttributeDetails;
-  char srcPtr[20] = "FAN";
-  char tgtPtr[20] ;
-  ErrorValue *err = NULL;
-
-  srcEntry->nullable_= 1;
-  srcEntry->dataType_= 0;
-  srcEntry->precision_=0;
-  srcEntry->scale_=0;
-  tgtEntry->nullable_=1;
-  tgtEntry->dataType_=0;
-  tgtEntry->precision_=0;
-  tgtEntry->scale_=0;
-  short formatting = 0;
-
-  long retcode = MXCI_RW_convDoIt(sqlciEnv, srcPtr, srcEntry, tgtPtr, tgtEntry, formatting, err);
-
-  */
-
-
-
-  buf[curpos] = 0;
-
-  output_row = buf; // memory leak here but who cares, this is a simulator.
-  len = curpos;
-  if (e)
-    { 
-      delete e;
-      e = NULL;
-    }
-
-  return 0;
-}
-
-Lng32 RW_MXCI_getOutputRow (void* &RWEnv, void *sqlciEnv, char* &output_row, Lng32 &len)
-{
-  SqlciEnv * sqlci_env = (SqlciEnv *)sqlciEnv;
-  ReportWriterEnv * rwEnv = (ReportWriterEnv *)RWEnv;
-
-  if (rwEnv->headingRowNum() == 0)
-    {
-      output_row = rwEnv->headingRow();
-      len = strlen(rwEnv->headingRow());
-      rwEnv->headingRowNum()++;
-
-      return GET_OUTPUT_ROW;
-    }
-  else if (rwEnv->headingRowNum() == 1)
-    {
-      output_row = rwEnv->underline();
-      len = strlen(rwEnv->underline());
-		
-      rwEnv->headingRowNum() = -1;
-
-      return SEND_INPUT_ROW;
-    }
-  else if (rwEnv->footingRowNum() == 0)
-    {
-      output_row = rwEnv->footingRow();
-      len = strlen(rwEnv->footingRow());
-		
-      rwEnv->footingRowNum() = -1;
-
-      return DONE;
-    }
-
-  /*
-  PrepStmt * prepStmt = sqlci_env->sqlciRWEnv()->rwExe()->prepStmt();
-  SqlCmd::displayRow(sqlci_env, prepStmt);
-  output_row = prepStmt->outputBuf();
-  len = prepStmt->outputBuflen();
-  */
-  RWformatRow(RWEnv, sqlciEnv, output_row, len);
-  
-
-  return SEND_INPUT_ROW;
-}
-
-Lng32 RW_MXCI_sendSelectStatus (void* &RWEnv, void *sqlciEnv, Lng32 num_rows, SelectStatus status)
-{
-  Lng32 retcode = 0;
-
-  ReportWriterEnv * rwEnv = (ReportWriterEnv *)RWEnv;
-  SqlciEnv * sqlci_env = (SqlciEnv *)sqlciEnv;
-  ErrorValue * e = NULL;
-
-  if (getenv("RW_SEND_SELECT_STATUS_ERR"))
-    {
-      return ERR;
-    }
-
-  if ((status == LIST_FIRST_STARTED) ||
-      (status == LIST_ALL_STARTED))
-    {
-      // compute heading
-      PrepStmt * prepStmt = sqlci_env->sqlciRWEnv()->rwExe()->prepStmt();
-
-      Lng32 output_buflen = prepStmt->outputBuflen();
-      rwEnv->headingRow() = new char[output_buflen + 1];
-      rwEnv->underline() = new char[output_buflen + 1];
-      
-      retcode = 
-	SqlCmd::getHeadingInfo(sqlci_env, prepStmt, 
-			       rwEnv->headingRow(), rwEnv->underline()); 
-
-      rwEnv->headingRowNum() = 0;
-
-      return GET_OUTPUT_ROW;
-    }
-
-
-  if (status == LIST_ENDED)
-    return SEND_QUERY;
-  else if (status == SELECT_ENDED)
-    return DONE;
-  else if (status == SELECT_CANCELLED)
-    {
-      rwEnv->footingRow() = new char[78];
-      strcpy(rwEnv->footingRow(), "Report Cancelled!");
-      rwEnv->footingRowNum() = 0;
-      return GET_OUTPUT_ROW;
-    }
-  else
-    return SEND_INPUT_ROW;
-}
-
-Lng32 RW_MXCI_getErrorInfo (void* &RWEnv, void *sqlciEnv, ErrorValue *e)
-{
-  e->errorCode_ = 666;
-
-  return SUCCESS;
-}
-
-Lng32 RW_MXCI_sendOutputDevice (void* &RWEnv, void *sqlciEnv, OutputDevice device)
-{
-  if (device == LOG_FILE || device == SCREEN)
-    return SUCCESS;
-  else 
-    return ERR;
-}
-

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/b952c0d5/core/sql/sqlci/SqlciReset.cpp
----------------------------------------------------------------------
diff --git a/core/sql/sqlci/SqlciReset.cpp b/core/sql/sqlci/SqlciReset.cpp
index c12858b..e7e127e 100644
--- a/core/sql/sqlci/SqlciReset.cpp
+++ b/core/sql/sqlci/SqlciReset.cpp
@@ -93,47 +93,6 @@ short Reset::reset_control(SqlciEnv * sqlci_env)
   return 0;
 }
 
-short Reset::reset_define(SqlciEnv * sqlci_env)
-{
-  if (!get_argument())
-    {
-      /* RESET all defines */
-      Define * define = sqlci_env->get_definelist()->getFirst();
-      while (define)
-	{
-	  define->reset(sqlci_env);
-	  sqlci_env->get_definelist()->remove(define->getName());
-	  define = sqlci_env->get_definelist()->getNext();
-	}
-    }
-  else
-    {
-      // DEFINEs are case insensitive (currently).
-      // Upcase the argument.
-      char * define_name = new char[strlen(get_argument())+1];
-      
-      // NT_PORT 7/10/96 (LS) changed k definition from int to size_t
-      //
-      for (size_t k=0; k < strlen(get_argument()); k++)
-	{
-#pragma nowarn(1506)   // warning elimination 
-	  define_name[k] = toupper((get_argument())[k]);
-#pragma warn(1506)  // warning elimination 
-	}
-      define_name[strlen(get_argument())] = 0;
- 
-      Define * define = sqlci_env->get_definelist()->get(define_name);
-      if (define)
-	{
-	  define->reset(sqlci_env);
-	  sqlci_env->get_definelist()->remove(define_name);
-	}
-      delete define_name;
-    }
-  
-  return 0;
-}
-
 short Reset::reset_param(SqlciEnv * sqlci_env)
 {
   if (!get_argument())
@@ -197,10 +156,6 @@ short Reset::process(SqlciEnv * sqlci_env)
       retcode = reset_control(sqlci_env);
       break;
 
-    case DEFINE_:
-      retcode = reset_define(sqlci_env);
-      break;
-
     case PARAM_:
       retcode = reset_param(sqlci_env);
       break;

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/b952c0d5/core/sql/sqlci/SqlciShow.cpp
----------------------------------------------------------------------
diff --git a/core/sql/sqlci/SqlciShow.cpp b/core/sql/sqlci/SqlciShow.cpp
index 6833b18..bbb7703 100644
--- a/core/sql/sqlci/SqlciShow.cpp
+++ b/core/sql/sqlci/SqlciShow.cpp
@@ -83,23 +83,6 @@ short Show::show_cursor(SqlciEnv * sqlci_env)
   return 0;
 }
 
-short Show::show_define(SqlciEnv * sqlci_env)
-{
-  char buff[4000];
-
-
-  Define * define = sqlci_env->get_definelist()->getFirst();
-  
-  while (define)
-    {
-      sprintf(buff, "%s\t%s", define->getName(), define->getValue());
-      sqlci_env->get_logfile()->WriteAll(buff);
-      define = sqlci_env->get_definelist()->getNext(); 
-    }
-
-  return 0;
-}
-
 short Show::show_param(SqlciEnv * sqlci_env)
 {
   char buff[250];
@@ -189,10 +172,6 @@ short Show::process(SqlciEnv * sqlci_env)
       retcode = show_cursor(sqlci_env);
       break;
 
-    case DEFINE_:
-      retcode = show_define(sqlci_env);
-      break;
-
     case PARAM_:
       retcode = show_param(sqlci_env);
       break;

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/b952c0d5/core/sql/sqlci/SqlciStmts.cpp
----------------------------------------------------------------------
diff --git a/core/sql/sqlci/SqlciStmts.cpp b/core/sql/sqlci/SqlciStmts.cpp
index bf314f8..67eaddf 100644
--- a/core/sql/sqlci/SqlciStmts.cpp
+++ b/core/sql/sqlci/SqlciStmts.cpp
@@ -325,9 +325,7 @@ short FCRepeat::process(SqlciEnv * sqlci_env)
   // ignore if "!" is in an obey file, or stdin redirected from a file
   // (should we display an informative error message?)
   if (!sqlci_env->isInteractiveNow())
-#pragma nowarn(1506)   // warning elimination 
     return retval;
-#pragma warn(1506)  // warning elimination 
 
   InputStmt * input_stmt = 0;
 
@@ -385,9 +383,7 @@ short FCRepeat::process(SqlciEnv * sqlci_env)
       SqlciError(SQLCI_NO_STMT_MATCH, (ErrorParam *) 0);
     }
   
-#pragma nowarn(1506)   // warning elimination 
   return retval;
-#pragma warn(1506)  // warning elimination 
 }
 
 
@@ -405,9 +401,7 @@ short FixCommand::process(SqlciEnv * sqlci_env)
   // ignore if FC is in an obey file, or stdin redirected from a file
   // (should we display an informative error message?)
   if (!sqlci_env->isInteractiveNow())
-#pragma nowarn(1506)   // warning elimination 
     return retval;
-#pragma warn(1506)  // warning elimination 
 
   InputStmt *input_stmt = 0, *stmt = 0;
 
@@ -556,8 +550,6 @@ short FixCommand::process(SqlciEnv * sqlci_env)
       SqlciError(SQLCI_NO_STMT_MATCH, (ErrorParam *) 0);
     }
 
-#pragma nowarn(1506)   // warning elimination 
   return retval;
-#pragma warn(1506)  // warning elimination 
 } // end FixCommand::process
 


[2/9] incubator-trafodion git commit: code cleanup, commit #1

Posted by an...@apache.org.
http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/b952c0d5/core/sql/sqlci/SqlciUsage.cpp
----------------------------------------------------------------------
diff --git a/core/sql/sqlci/SqlciUsage.cpp b/core/sql/sqlci/SqlciUsage.cpp
deleted file mode 100644
index 9eff6ea..0000000
--- a/core/sql/sqlci/SqlciUsage.cpp
+++ /dev/null
@@ -1,889 +0,0 @@
-/********************************************************************  
-//
-// @@@ START COPYRIGHT @@@
-//
-// Licensed to the Apache Software Foundation (ASF) under one
-// or more contributor license agreements.  See the NOTICE file
-// distributed with this work for additional information
-// regarding copyright ownership.  The ASF licenses this file
-// to you under the Apache License, Version 2.0 (the
-// "License"); you may not use this file except in compliance
-// with the License.  You may obtain a copy of the License at
-//
-//   http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing,
-// software distributed under the License is distributed on an
-// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-// KIND, either express or implied.  See the License for the
-// specific language governing permissions and limitations
-// under the License.
-//
-// @@@ END COPYRIGHT @@@
-********************************************************************/
-
-/* -*-C++-*-
- *****************************************************************************
- *
- * File:         SqlciUsage.cpp
- * Description:  Methods to return table and module usage info.
- *               
- *               
- * Created:      1/15/2003
- * Language:     C++
- * Status:       
- *
- *
- *
- *
- *****************************************************************************
- */
-
-#include <stdio.h>
-#include <iostream>
-#include <stdlib.h>
-#include <unistd.h>
-#define ACCESS access
-#define RW_ACCESS 6
-#include <errno.h>
-#include "Platform.h"
-#include "ComCextdecs.h"
-#include "str.h"
-#include "NAString.h"
-#include "sqlcmd.h"
-#include "SqlciError.h"
-
-
-extern volatile Int32 breakReceived;
-
-Usage::Usage(char * module_dir, char * module, char * table,
-	     NABoolean noe)
-     : SqlCmd(SqlCmd::USAGE_TYPE, NULL),
-       moduleDir_(NULL), module_(NULL), table_(NULL),
-       noe_(noe)
-{
-
-  if (module_dir)
-    {
-      moduleDir_ = new char[strlen(module_dir)+1];
-      strcpy(moduleDir_, module_dir);
-    }
-  else
-    {
-      moduleDir_ = new char[strlen("c:/tdm_sqlmodules")+1];
-      strcpy(moduleDir_, "c:/tdm_sqlmodules");
-    }
-
-  if (module)
-    {
-      module_ = new char[strlen(module)+1];
-      strcpy(module_, module);
-    }
-  else
-    {
-      module_ = new char[strlen("*") + 1];
-      strcpy(module_, "*");
-    }
-
-  if (table)
-    {
-      table_ = new char[strlen(table)+1];
-      strcpy(table_, table);
-    }
-  else
-    {
-      table_ = NULL;
-    }
-}
-
-Usage::~Usage()
-{
-  delete moduleDir_;
-  delete module_;
-  delete table_;
-}
-
-class ErrorModule
-{
-public:
-  ErrorModule(const char * modName, Int32 error);
-  ~ErrorModule();
-
-  char * getModName() { return modName_; }
-  Int32    getError()   { return error_;}
-
-private:
-  char * modName_;
-  Int32  error_;
-};
-
-ErrorModule::ErrorModule(const char * modName, Int32 error)
-     : error_(error)
-{
-  modName_ = new char[strlen(modName) + 1];
-  strcpy(modName_, modName);
-}
-
-ErrorModule::~ErrorModule()
-{
-  delete modName_;
-}
-
-#pragma nowarn(1313)  // warning elimination
-static const char * moduleUsageQuery[] =
-{
-  " select distinct  ",
-  "   case ",
-
-  "               when operator = 'FILE_SCAN' ",
-  "               then 'Table: ' || substring(description FROM position('scan_type: file_scan ' IN description) + 21  ",
-  "                    FOR (position(' ' IN substring(description FROM position('scan_type: file_scan ' IN description) + 21))   ",
-  "                         ))  ",
-
-  "               when operator = 'INDEX_SCAN'  ",
-  "               then 'Index: ' || substring(description FROM position('scan_type: index_scan ' IN description) + 22  ",
-  "                    FOR (position(' ' IN substring(description FROM position('scan_type: index_scan ' IN description) + 22))   ",
-  "                         ))  ",
-
-  "               when operator = 'FILE_SCAN_UNIQUE'  ",
-  "               then 'Table: ' || substring(description FROM position('scan_type: file_scan_unique ' IN description) + 28  ",
-  "                    FOR (position(' ' IN substring(description FROM position('scan_type: file_scan_unique ' IN description) + 28))   ",
-  "                         ))  ",
-
-  "               when operator = 'INDEX_SCAN_UNIQUE'  ",
-  "               then 'Index: ' || substring(description FROM position('scan_type: index_scan_unique ' IN description) + 29  ",
-  "                    FOR (position(' ' IN substring(description FROM position('scan_type: index_scan_unique ' IN description) + 29))   ",
-  "                         ))  ",
-
-  "               when operator = 'UNIQUE_UPDATE'  ",
-  "               then ",
-  "                 case ",
-  "                   when position('iud_type: index_' IN description) > 0 ",
-  "                     then 'Index: ' || substring(description from position('iud_type: index_unique_update ' IN description) + 30 ",
-  "                          FOR (position(' ' IN substring(description FROM position('iud_type: index_unique_update ' IN description) + 30))))   ",
-
-  "                     else 'Table: ' || substring(description from position('iud_type: unique_update ' IN description) + 24 ",
-  "                    FOR (position(' ' IN substring(description FROM position('iud_type: unique_update ' IN description) + 24))))   ",
-  "                 end ",
-
-  "               when operator = 'CURSOR_UPDATE'  ",
-  "               then ",
-  "                 case ",
-  "                   when position('iud_type: index_' IN description) > 0 ",
-  "                     then 'Index: ' || substring(description from position('iud_type: index_cursor_update ' IN description) + 30 ",
-  "                          FOR (position(' ' IN substring(description FROM position('iud_type: index_cursor_update ' IN description) + 30))))   ",
-
-  "                     else 'Table: ' || substring(description from position('iud_type: cursor_update ' IN description) + 24 ",
-  "                    FOR (position(' ' IN substring(description FROM position('iud_type: cursor_update ' IN description) + 24))))   ",
-  "                 end ",
-
-  "               when operator = 'SUBSET_UPDATE'  ",
-  "               then ",
-  "                 case ",
-  "                   when position('iud_type: index_' IN description) > 0 ",
-  "                     then 'Index: ' || substring(description from position('iud_type: index_subset_update ' IN description) + 30 ",
-  "                          FOR (position(' ' IN substring(description FROM position('iud_type: index_subset_update ' IN description) + 30))))   ",
-
-  "                     else 'Table: ' || substring(description from position('iud_type: subset_update ' IN description) + 24 ",
-  "                    FOR (position(' ' IN substring(description FROM position('iud_type: subset_update ' IN description) + 24))))   ",
-  "                 end ",
-
-  "               when operator = 'UNIQUE_DELETE'  ",
-  "               then ",
-  "                 case ",
-  "                   when position('iud_type: index_' IN description) > 0 ",
-  "                     then 'Index: ' || substring(description from position('iud_type: index_unique_delete ' IN description) + 30 ",
-  "                          FOR (position(' ' IN substring(description FROM position('iud_type: index_unique_delete ' IN description) + 30))))   ",
-
-  "                     else 'Table: ' || substring(description from position('iud_type: unique_delete ' IN description) + 24 ",
-  "                    FOR (position(' ' IN substring(description FROM position('iud_type: unique_delete ' IN description) + 24))))   ",
-  "                 end ",
-
-  "               when operator = 'CURSOR_DELETE'  ",
-  "               then ",
-  "                 case ",
-  "                   when position('iud_type: index_' IN description) > 0 ",
-  "                     then 'Index: ' || substring(description from position('iud_type: index_cursor_delete ' IN description) + 30 ",
-  "                          FOR (position(' ' IN substring(description FROM position('iud_type: index_cursor_delete ' IN description) + 30))))   ",
-
-  "                     else 'Table: ' || substring(description from position('iud_type: cursor_delete ' IN description) + 24 ",
-  "                    FOR (position(' ' IN substring(description FROM position('iud_type: cursor_delete ' IN description) + 24))))   ",
-  "                 end ",
-
-  "               when operator = 'SUBSET_DELETE'  ",
-  "               then ",
-  "                 case ",
-  "                   when position('iud_type: index_' IN description) > 0 ",
-  "                     then 'Index: ' || substring(description from position('iud_type: index_subset_delete ' IN description) + 30 ",
-  "                          FOR (position(' ' IN substring(description FROM position('iud_type: index_subset_delete ' IN description) + 30))))   ",
-
-  "                     else 'Table: ' || substring(description from position('iud_type: subset_delete ' IN description) + 24 ",
-  "                    FOR (position(' ' IN substring(description FROM position('iud_type: subset_delete ' IN description) + 24))))   ",
-  "                 end ",
-
-  "               when operator = 'INSERT'  ",
-  "               then ",
-  "                 case ",
-  "                   when position('iud_type: index_' IN description) > 0 ",
-  "                     then 'Index: ' || substring(description from position('iud_type: index_insert ' IN description) + 23 ",
-  "                          FOR (position(' ' IN substring(description FROM position('iud_type: index_insert ' IN description) + 23))))   ",
-
-  "                     else 'Table: ' || substring(description from position('iud_type: insert ' IN description) + 17 ",
-  "                    FOR (position(' ' IN substring(description FROM position('iud_type: insert ' IN description) + 17))))   ",
-  "                 end ",
-
-  "  end ",
-  " from table(explain('%s', '%%')) ",
-  "   where operator in ('FILE_SCAN', 'FILE_SCAN_UNIQUE', ",
-  "                      'INDEX_SCAN', 'INDEX_SCAN_UNIQUE', ",
-  "                      'UNIQUE_UPDATE', 'CURSOR_UPDATE', 'SUBSET_UPDATE', ",
-  "                      'UNIQUE_DELETE', 'CURSOR_DELETE', 'SUBSET_DELETE', ",
-  "                      'INSERT') ",                  
-  " order by 1;"
-};
-
-static const char * tableUsageQuery[] =
-{
-  " select [first 1] operator ",
-
-  " from table(explain('%s', '%%')) ",
-  " where ",
-  " (  ",
-  "  operator in ('INDEX_SCAN', 'INDEX_SCAN_UNIQUE') ",
-  "  and ",
-
-  "  (  ",
-  "   case ",
-  "               when operator = 'INDEX_SCAN'  ",
-  "               then substring(description FROM position('scan_type: index_scan ' IN description) + 22  ",
-  "                    FOR (position(' ' IN substring(description FROM position('scan_type: index_scan ' IN description) + 22))   ",
-  "                         ))  ",
-
-  "               when operator = 'INDEX_SCAN_UNIQUE'  ",
-  "               then substring(description FROM position('scan_type: index_scan_unique ' IN description) + 29  ",
-  "                    FOR (position(' ' IN substring(description FROM position('scan_type: index_scan_unique ' IN description) + 29))   ",
-  "                         ))  ",
-  "   end ",
-  "  LIKE '%s(%%' ",
-
-  "   or ",
-
-  "   case ",
-  "               when operator = 'INDEX_SCAN'  ",
-  "               then substring(description FROM position('scan_type: index_scan ' IN description) + 22  ",
-  "                    FOR (position(' ' IN substring(description FROM position('scan_type: index_scan ' IN description) + 22))   ",
-  "                         ))  ",
-
-  "               when operator = 'INDEX_SCAN_UNIQUE'  ",
-  "               then substring(description FROM position('scan_type: index_scan_unique ' IN description) + 29  ",
-  "                    FOR (position(' ' IN substring(description FROM position('scan_type: index_scan_unique ' IN description) + 29))   ",
-  "                         ))  ",
-  "   end ",
-  "  LIKE '%%(%s)%%' ",
-  "   )  ",
-  "  )  ",
-
-  " or ",
-
-  "      (  ",
-  "         operator in ('FILE_SCAN', 'FILE_SCAN_UNIQUE', ",
-  "                      'UNIQUE_UPDATE', 'CURSOR_UPDATE', 'SUBSET_UPDATE', ",
-  "                      'UNIQUE_DELETE', 'CURSOR_DELETE', 'SUBSET_DELETE', ",
-  "                      'INSERT') ",                  
-
-  "  and ",
-
-  "   case ",
-
-  "               when operator = 'FILE_SCAN' ",
-  "               then substring(description FROM position('scan_type: file_scan ' IN description) + 21  ",
-  "                    FOR (position(' ' IN substring(description FROM position('scan_type: file_scan ' IN description) + 21))   ",
-  "                         ))  ",
-
-  "               when operator = 'FILE_SCAN_UNIQUE'  ",
-  "               then substring(description FROM position('scan_type: file_scan_unique ' IN description) + 28  ",
-  "                    FOR (position(' ' IN substring(description FROM position('scan_type: file_scan_unique ' IN description) + 28))   ",
-  "                         ))  ",
-
-  "               when operator = 'UNIQUE_UPDATE'  ",
-  "               then ",
-  "                 case ",
-  "                   when position('iud_type: index_' IN description) > 0 ",
-  "                     then substring(description from position('iud_type: index_unique_update ' IN description) + 30 ",
-  "                          FOR (position(' ' IN substring(description FROM position('iud_type: index_unique_update ' IN description) + 30))))   ",
-
-  "                     else substring(description from position('iud_type: unique_update ' IN description) + 24 ",
-  "                    FOR (position(' ' IN substring(description FROM position('iud_type: unique_update ' IN description) + 24))))   ",
-  "                 end ",
-
-  "               when operator = 'CURSOR_UPDATE'  ",
-  "               then ",
-  "                 case ",
-  "                   when position('iud_type: index_' IN description) > 0 ",
-  "                     then substring(description from position('iud_type: index_cursor_update ' IN description) + 30 ",
-  "                          FOR (position(' ' IN substring(description FROM position('iud_type: index_cursor_update ' IN description) + 30))))   ",
-
-  "                     else substring(description from position('iud_type: cursor_update ' IN description) + 24 ",
-  "                    FOR (position(' ' IN substring(description FROM position('iud_type: cursor_update ' IN description) + 24))))   ",
-  "                 end ",
-
-  "               when operator = 'SUBSET_UPDATE'  ",
-  "               then ",
-  "                 case ",
-  "                   when position('iud_type: index_' IN description) > 0 ",
-  "                     then substring(description from position('iud_type: index_subset_update ' IN description) + 30 ",
-  "                          FOR (position(' ' IN substring(description FROM position('iud_type: index_subset_update ' IN description) + 30))))   ",
-
-  "                     else substring(description from position('iud_type: subset_update ' IN description) + 24 ",
-  "                    FOR (position(' ' IN substring(description FROM position('iud_type: subset_update ' IN description) + 24))))   ",
-  "                 end ",
-
-  "               when operator = 'UNIQUE_DELETE'  ",
-  "               then ",
-  "                 case ",
-  "                   when position('iud_type: index_' IN description) > 0 ",
-  "                     then substring(description from position('iud_type: index_unique_delete ' IN description) + 30 ",
-  "                          FOR (position(' ' IN substring(description FROM position('iud_type: index_unique_delete ' IN description) + 30))))   ",
-
-  "                     else substring(description from position('iud_type: unique_delete ' IN description) + 24 ",
-  "                    FOR (position(' ' IN substring(description FROM position('iud_type: unique_delete ' IN description) + 24))))   ",
-  "                 end ",
-
-  "               when operator = 'CURSOR_DELETE'  ",
-  "               then ",
-  "                 case ",
-  "                   when position('iud_type: index_' IN description) > 0 ",
-  "                     then substring(description from position('iud_type: index_cursor_delete ' IN description) + 30 ",
-  "                          FOR (position(' ' IN substring(description FROM position('iud_type: index_cursor_delete ' IN description) + 30))))   ",
-
-  "                     else substring(description from position('iud_type: cursor_delete ' IN description) + 24 ",
-  "                    FOR (position(' ' IN substring(description FROM position('iud_type: cursor_delete ' IN description) + 24))))   ",
-  "                 end ",
-
-  "               when operator = 'SUBSET_DELETE'  ",
-  "               then ",
-  "                 case ",
-  "                   when position('iud_type: index_' IN description) > 0 ",
-  "                     then substring(description from position('iud_type: index_subset_delete ' IN description) + 30 ",
-  "                          FOR (position(' ' IN substring(description FROM position('iud_type: index_subset_delete ' IN description) + 30))))   ",
-
-  "                     else substring(description from position('iud_type: subset_delete ' IN description) + 24 ",
-  "                    FOR (position(' ' IN substring(description FROM position('iud_type: subset_delete ' IN description) + 24))))   ",
-  "                 end ",
-
-  "               when operator = 'INSERT'  ",
-  "               then ",
-  "                 case ",
-  "                   when position('iud_type: index_' IN description) > 0 ",
-  "                     then substring(description from position('iud_type: index_insert ' IN description) + 23 ",
-  "                          FOR (position(' ' IN substring(description FROM position('iud_type: index_insert ' IN description) + 23))))   ",
-
-  "                     else substring(description from position('iud_type: insert ' IN description) + 17 ",
-  "                    FOR (position(' ' IN substring(description FROM position('iud_type: insert ' IN description) + 17))))   ",
-  "                 end ",
-  "  end ",
-
-  "  =  '%s' ",
-  "    )  ",
-
-  " ;"
-};
-#pragma warn(1313)  // warning elimination
-
-short Usage::process(SqlciEnv * sqlci_env)
-{
-  short retcode = 0;
-  Lng32 error = 0;
-
-  NAString cmd;
-
-  // a temporary file where the modules will be listed.
-  // The filename will be of the form:  __mxci_usage__<juliantimestamp>
-  // This temp file will be created in /tmp, if it exists. If not, then
-  // it will be created in moduleDir_. If it cannot be written and read
-  // in one of these two dirs, an error will be returned.
-
-  NAString tempFile;
-  // check for RW access in /tmp dir.
-  tempFile = "/tmp";
-  Int32 rc = ACCESS(tempFile, RW_ACCESS);
-  if (rc == -1)
-    {
-      // now try module dir
-      tempFile = moduleDir_;
-      rc = ACCESS(tempFile, RW_ACCESS);
-      ErrorParam ep_tmp("/tmp");
-      ErrorParam ep_md(tempFile);
-      if (rc == -1)
-	{
-	  SqlciError (2087,
-		      &ep_tmp,
-		      (ErrorParam *) 0
-		      );
-	  SqlciError (2087,
-		      &ep_md,
-		      (ErrorParam *) 0
-		      );
-	  return 0;
-	}
-    }
-
-  Int64 ts = NA_JulianTimestamp();
-  char tsBuf[100];
-  convertInt64ToAscii(ts, tsBuf);
-
-  //  tempFile = NAString(moduleDir_) + "/" + "__mxci_usage__" + tsBuf;
-  tempFile = tempFile + "/" + "__mxci_usage__" + tsBuf;
-  
-  // remove the temporary file, if it exists
-  cmd = "rm -f " + tempFile;
-  system(cmd);
-
-  // insert a backslash in front of any '$', single or double quote.
-  // We are not handling any quoted double/single quotes.
-  char * tempModule = new char[strlen(module_) * 2 + 1];
-  UInt32 i = 0;
-  Int32 j = 0;
-  while (i < strlen(module_))
-    {
-      if ((module_[i] == '"') ||
-	  (module_[i] == '\'') ||
-	  (module_[i] == '$'))
-	{
-	  tempModule[j++] = '\\';
-	}
-      tempModule[j++] = module_[i++];
-    }
-  tempModule[j] = 0;
-
-  // 'ls' the modules.
-  NAString module(tempModule);
-  NAString modDir;
-  NABoolean modDirContainsWildcard = FALSE;
-    {
-      modDir = moduleDir_;
-      if (modDir.contains('*'))
-	modDirContainsWildcard = TRUE;
-    }
-
-  if ((module == "*") || (module == "*.*") || (module == "*.*.*"))
-  {
-    if (modDirContainsWildcard) 
-      cmd = "find " + modDir + " -type f > " + tempFile;
-    else
-      cmd = "ls " + modDir + " > " + tempFile;
-  }
-  else
-  {
-    if (modDirContainsWildcard)
-      cmd = "find " + modDir + " -type f -name \"" + module + "\" > " + tempFile;
-	    
-    else
-      cmd = "ls " + modDir + "/" + module + " > " + tempFile;
-  }  
-
-  system(cmd);
-
-  // read each module name from the temp file and process it.
-  FILE * file_stream = fopen(tempFile, "r");
-  if (! file_stream)
-    {
-      SqlciError (SQLCI_OBEY_FOPEN_ERROR,
-		  new ErrorParam (errno),
-		  new ErrorParam (tempFile),
-		  (ErrorParam *) 0
-		  );
-      return 0;
-    }
-  
-  char buf[2000];
-  char * ok;
-
-  char outBuf[200];
-
-  Logfile *log = sqlci_env->get_logfile();
-
-  SqlciList<ErrorModule> * errModList = new SqlciList<ErrorModule>;
-
-  Int32 maxModNameLen = 0;
-  NABoolean displayObjectName = TRUE;
-
-  NABoolean done = FALSE;
-  NABoolean usageInfoFound = FALSE;
-  while (NOT done)
-    {
-      ok  = fgets(buf, 2000, file_stream);
-      if (feof(file_stream))
-	{
-	  done = TRUE;
-	  continue;
-	}
-
-      if (! ok)
-	{
-	  SqlciError (SQLCI_OBEY_FOPEN_ERROR,
-		      new ErrorParam (errno),
-		      new ErrorParam (tempFile),
-		      (ErrorParam *) 0
-		      );
-	  delete errModList;
-	  return 0;
-	}
-
-      // nuke the EOL character.
-      buf[strlen(buf)-1]=0;
-		//soln:10-050829-0917
-      NAString modName;
-
-      // if module parameter is omitted, then the names are displayed with
-      // "ls <dir>" command. This command will NOT prepend the dir name.
-      // So no need to skip the dirname out of the name returned in 'buf'.
-      if ((module == '*') || (module == "*.*") || (module == "*.*.*") ||
-	  (modDirContainsWildcard))
- 	modName = buf;
-      else
-	modName = &buf[strlen(moduleDir_) + 1];
-
-      // do not read files of length 0 or any file which starts with
-      // "__mxci_usage__". The latter are internal temp files.
-      if ((strlen(buf) <= 0) || 
-	  (strncmp(modName.data(), "__mxci_usage__", strlen("__mxci_usage__") == 0)))
-	continue;
-	  //soln:10-050829-0917 Begin
-	  // if the modName is not a 3-part name, skip this file. It is
-      // not a module name.
-      size_t pos = 0;
-      Int32 noOfDots = 0;
-      while (pos != NA_NPOS)
-	{
-	  pos = modName.index(".", pos);
-	  if (pos != NA_NPOS)
-	    {
-	      noOfDots++;
-	      pos++;
-	    }
-	}
-
-      if (noOfDots != 2)
-	continue;
-
-      // create a new context in which the embedded statement will be
-      // loaded and DUO'ed from.
-      SQLCTX_HANDLE ctxtHandle;
-      error = SQL_EXEC_CreateContext(&ctxtHandle,
-				       NULL, // char *sqlAuthId
-				       0     // Int32 suppressAutoXact
-				       );
-      if (error)
-	{
-	  HandleCLIError(error, sqlci_env);
-	  
-	  return 0;
-	}
-
-      SQLCTX_HANDLE prevCtxtHandle;
-      error = SQL_EXEC_SwitchContext(ctxtHandle, &prevCtxtHandle);
-      if (error)
-	{
-	  HandleCLIError(error, sqlci_env);
-	  
-	  return 0;
-	}
-//soln:10-050829-0917 End
-
-      Int32 usage_query_size = 0;
-      Int32 usage_qry_array_size = 0;
-      if (table_)
-	usage_qry_array_size =
-	  sizeof(tableUsageQuery) / sizeof(char*);
-      else
-	usage_qry_array_size =
-	  sizeof(moduleUsageQuery) / sizeof(char*);
-
-      const char ** usageQuery = NULL;
-      if (table_)
-	usageQuery = tableUsageQuery;
-      else
-	usageQuery = moduleUsageQuery;
-
-      Int32 i = 0;
-      for (i = 0; i < usage_qry_array_size; i++)
-	{
-	  Int32 j = 0;
-	  const char * usage_frag = usageQuery[i];
-#pragma warning (disable : 4018)   //warning elimination
-	  while ((j < strlen(usageQuery[i])) &&
-		 (usage_frag[j] == ' '))
-	    j++;
-	  if (j < strlen(usageQuery[i]))
-	    usage_query_size += strlen(&usage_frag[j]);
-#pragma warning (default : 4018)   //warning elimination
-	}
-      
-      char * source_fmt = new char[usage_query_size + 100];
-      source_fmt[0] = 0;
-      for (i = 0; i < usage_qry_array_size; i++)
-	{
-	  Int32 j = 0;
-	  const char * usage_frag = usageQuery[i];
-#pragma warning (disable : 4018)   //warning elimination
-	  while ((j < strlen(usageQuery[i])) &&
-		 (usage_frag[j] == ' '))
-	    j++;
-	  
- 	  if (j < strlen(usageQuery[i]))
-	    strcat(source_fmt, &usage_frag[j]);
-#pragma warning (default : 4018)   //warning elimination
-	}
-      
-      char * sqlStrBuf = NULL;
-      NAString fullyQualifiedModName;
-      
-      if (modDirContainsWildcard)
-	fullyQualifiedModName = modName;
-      else
-        fullyQualifiedModName = modName;
- 
-     if (table_)
-	sqlStrBuf = new char[usage_query_size + strlen(fullyQualifiedModName.data()) + 3 * strlen(table_) + 50];
-      else
-	sqlStrBuf = new char[usage_query_size + strlen(fullyQualifiedModName.data()) + 50];
- 	
-      if (table_)
-	sprintf(sqlStrBuf, source_fmt, fullyQualifiedModName.data(), table_, table_, table_);
-      else
-	sprintf(sqlStrBuf, source_fmt, fullyQualifiedModName.data());
-      
-      SqlCmd sqlCmd(SqlCmd::DML_TYPE, sqlStrBuf);
-      PrepStmt * prepStmt = new PrepStmt("__MXCI_USAGE__");
-
-      sqlCmd.clearCLIDiagnostics();
-
-      retcode = sqlCmd.do_prepare(sqlci_env, prepStmt, get_sql_stmt(),
-				  FALSE);
-
-      Logfile *log = sqlci_env->get_logfile();
-      Int32 numParams = 0;
-      char * paramArray[10];
-      retcode = sqlCmd.doExec(sqlci_env, 
-			      prepStmt->getStmt(),
-			      prepStmt,
-			      numParams,
-			      paramArray,
-			      NULL,
-			      FALSE);
-      if (retcode < 0)
-	{
-	  if ((retcode == -8834) ||
-	      (retcode == -8808) ||
-	      (retcode == -8809) ||
-	      ((retcode <= -8860) &&
-	       (retcode >= -8866)))
-	    {
-	      ErrorModule * em = new ErrorModule(modName.data(), retcode);
-	      errModList->append(em);
-#pragma warning (disable : 4018)   //warning elimination
-	      if (strlen(modName.data()) > maxModNameLen)
-#pragma nowarn(1506)   // warning elimination 
-		maxModNameLen = strlen(modName.data());
-#pragma warn(1506)  // warning elimination 
-#pragma warning (default : 4018)   //warning elimination
-	    }
-	  else
-	    {
-	      error = retcode;
-	      HandleCLIError(error, sqlci_env);
-	      
-	      SqlciError (15992, (ErrorParam *) 0);
-	    }
-	}
-
-      //      retcode = SQL_Success;
-      NABoolean displayModuleName = TRUE;
-      NABoolean firstTime = TRUE;
-      while ((retcode >= 0) && 
-	     (retcode != SQL_Eof))
-	{
-	  retcode = sqlCmd.doFetch(sqlci_env, 
-				   prepStmt->getStmt(),
-				   prepStmt,
-				   FALSE);
-	  if (retcode < 0)
-	    {
-	      if ((retcode == -8834) ||
-		  (retcode == -8808) ||
-		  (retcode == -8809) ||
-		  ((retcode <= -8860) &&
-		   (retcode >= -8866)))
-		{
-		  ErrorModule * em = new ErrorModule(modName.data(), retcode);
-		  errModList->append(em);
-#pragma warning (disable : 4018)   //warning elimination
-		  if (strlen(modName.data()) > maxModNameLen)
-#pragma nowarn(1506)   // warning elimination 
-		    maxModNameLen = strlen(modName.data());
-#pragma warn(1506)  // warning elimination 
-#pragma warning (default : 4018)   //warning elimination
-		}
-	      else
-		{
-		  error = retcode;
-		  HandleCLIError(error, sqlci_env);
-
-		  SqlciError (15992, (ErrorParam *) 0);
-		}
-	    }
-	  else if ((firstTime) &&
-		   (retcode == SQL_Eof))
-	    {
-	      //SqlciError (-15992, (ErrorParam *) 0);
-	    }
-	  firstTime = FALSE;
-
-	  if ((retcode != SQL_Eof) &&
-	      (retcode >= 0))
-	    {
-	      usageInfoFound = TRUE;
-	      if (table_)
-		{
-		  if (displayObjectName)
-		    {
-		      displayObjectName = FALSE;
-		      sprintf(outBuf, "\n \nObject: %s\n", table_);
-		      log->WriteAll(outBuf);
-		    }
-
-		  sqlCmd.displayRow(sqlci_env, prepStmt);
-		  NAString oper(prepStmt->outputBuf());
-		  oper = oper.strip();
-		  char format[100];
-		  if ((oper == "FILE_SCAN") ||
-		      (oper == "FILE_SCAN_UNIQUE"))
-		    {
-		      sprintf(format, "  Table: %%-" PFSZ "s  Module: %%s", strlen(table_));
-		      sprintf(outBuf, format, table_, modName.data());
-		    }
-		  else if ((oper == "INDEX_SCAN") ||
-			   (oper == "INDEX_SCAN_UNIQUE"))
-		    {
-		      sprintf(format, "  Index: %%-" PFSZ "s  Module: %%s", strlen(table_));
-		      sprintf(outBuf, format, table_, modName.data());
-		    }
-		  else
-		    {
-		      sprintf(format, "  Object: %%-" PFSZ "s  Module: %%s", strlen(table_));
-		      sprintf(outBuf, format, table_, modName.data());
-		    }
-		    
-		  log->WriteAll(outBuf);
-		}
-	      else
-		{
-		  if (displayModuleName)
-		    {
-		      displayModuleName = FALSE;
-		      sprintf(outBuf, "\n \nModule: %s\n", modName.data());
-		      log->WriteAll(outBuf);
-		    }
-
-		  sqlCmd.displayRow(sqlci_env, prepStmt);
-		  NAString inTableName(prepStmt->outputBuf());
-		  NAString outTableName;
-		  size_t start = 0;
-		  size_t end   = 0;
-		  if (inTableName.index("Table: ", 0) == 0) 
-		    {
-		      start = inTableName.index(" ");
-		      outTableName  = inTableName(start+1, inTableName.length() - start -1);
-		      end = outTableName.index(" ");
-		      outTableName = outTableName(0, end);
-		      outTableName = "  Table: " + outTableName;
-		    }
-		  else if (inTableName.index("Index: ") == 0)
-		    {
-		      start = inTableName.index(" ");
-		      outTableName  = inTableName(start+1, inTableName.length() - start -1);
-		      end = outTableName.index(")");
-		      if (end != NA_NPOS)
-			{
-			  outTableName = outTableName(0, end+1);
-			}
-		      else
-			{
-			  size_t lParen = outTableName.index("(");
-			  end = outTableName.index(" ");
-			  outTableName = outTableName(0, end);
-			  if (lParen != NA_NPOS)
-			    outTableName += ")";
-			}
-		      outTableName = "  Index: " + outTableName;
-		    }
-		  else
-		    {
-		      outTableName = "  Object: " + inTableName;
-		    }
-		  
-		  log->WriteAll(outTableName.data());
-		} // else
-	    }
-	} // while (retcode >= 0)
-      
-      if (retcode >= 0)
-	retcode = (short)SQL_EXEC_CloseStmt(prepStmt->getStmt());
-      
-      if (prepStmt)
-        sqlCmd.deallocate(sqlci_env, prepStmt);
-      delete sqlStrBuf; 
-
-      if (breakReceived)
-        done = TRUE;
-      // switch back to original context.
-      error = SQL_EXEC_SwitchContext(prevCtxtHandle, NULL);
-      if (error < 0)
-	{
-	  HandleCLIError(error, sqlci_env);
-	}
-
-      // and drop the new context that was created
-      error = SQL_EXEC_DropContext(ctxtHandle);
-      if (error < 0)
-	{
-	  HandleCLIError(error, sqlci_env);
-	}
-    } // while (NOT done)
-
-  if ((retcode >= 0) && 
-      (NOT usageInfoFound))
-    SqlciError (-15992, (ErrorParam *) 0); // issue a warning.
-
-  // print out the modules which got errors
-  ErrorModule * em = errModList->getFirst();
-  if (em)
-    {
-      sprintf(outBuf, "\n\nModules not loaded:\n");
-      log->WriteAll(outBuf);
-    }
-
-  char format[100];
-  sprintf(format, "  Module: %%-%ds   Error: %%d", maxModNameLen);
-  while (em)
-    {
-      sprintf(outBuf, format, em->getModName(), em->getError());
-      log->WriteAll(outBuf);
-
-      em = errModList->getNext();
-    }
-
-  log->WriteAll("");
-
-  fclose(file_stream);
-  
-  // remove the temporary file
-  cmd = "rm -f " + tempFile;
-  system(cmd);
-
-  delete errModList;
-
-  return 0;
-}
-

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/b952c0d5/core/sql/sqlci/SqlciUtil.cpp
----------------------------------------------------------------------
diff --git a/core/sql/sqlci/SqlciUtil.cpp b/core/sql/sqlci/SqlciUtil.cpp
deleted file mode 100644
index 28432f7..0000000
--- a/core/sql/sqlci/SqlciUtil.cpp
+++ /dev/null
@@ -1,59 +0,0 @@
-/**********************************************************************
-// @@@ START COPYRIGHT @@@
-//
-// Licensed to the Apache Software Foundation (ASF) under one
-// or more contributor license agreements.  See the NOTICE file
-// distributed with this work for additional information
-// regarding copyright ownership.  The ASF licenses this file
-// to you under the Apache License, Version 2.0 (the
-// "License"); you may not use this file except in compliance
-// with the License.  You may obtain a copy of the License at
-//
-//   http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing,
-// software distributed under the License is distributed on an
-// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-// KIND, either express or implied.  See the License for the
-// specific language governing permissions and limitations
-// under the License.
-//
-// @@@ END COPYRIGHT @@@
-//
-**********************************************************************/
-/* -*-C++-*-
- *****************************************************************************
- *
- * File:         SqlciUtil.cpp
- * Description:  
- *               
- *               
- * Created:      11/12/2005
- * Language:     C++
- * Status:       $State: Exp $
- *
- *
- *
- *
- *****************************************************************************
- */
-
-
-#include "SqlciUtil.h"
-#include "SqlciEnv.h"
-#include "SqlciError.h"
-extern ComDiagsArea sqlci_DA;
-
-UtilCmd::UtilCmd(const UtilCmdType commandType, char * argument)
-                  : SqlciNode(SqlciNode::UTIL_CMD_TYPE),
-		    commandType_(commandType)
-{
-  argument_ = new char[strlen(argument)+1];
-  strcpy(argument_, argument);
-};
-
-short UtilCmd::process(SqlciEnv * sqlciEnv)
-{
-  return 0;
-}
-

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/b952c0d5/core/sql/sqlci/SqlciUtil.h
----------------------------------------------------------------------
diff --git a/core/sql/sqlci/SqlciUtil.h b/core/sql/sqlci/SqlciUtil.h
deleted file mode 100644
index de6c4d7..0000000
--- a/core/sql/sqlci/SqlciUtil.h
+++ /dev/null
@@ -1,77 +0,0 @@
-/**********************************************************************
-// @@@ START COPYRIGHT @@@
-//
-// Licensed to the Apache Software Foundation (ASF) under one
-// or more contributor license agreements.  See the NOTICE file
-// distributed with this work for additional information
-// regarding copyright ownership.  The ASF licenses this file
-// to you under the Apache License, Version 2.0 (the
-// "License"); you may not use this file except in compliance
-// with the License.  You may obtain a copy of the License at
-//
-//   http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing,
-// software distributed under the License is distributed on an
-// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-// KIND, either express or implied.  See the License for the
-// specific language governing permissions and limitations
-// under the License.
-//
-// @@@ END COPYRIGHT @@@
-//
-**********************************************************************/
-/* -*-C++-*-
- *****************************************************************************
- *
- * File:         SqlciUtil.h
- * RCS:          $Id: SqlciUtil.h,v 1.4 1997/07/12 18:02:40  Exp $
- * Description:  Declarations for utilities commands
- *
- *
- * Created:      1/10/95
- * Language:     C++
- * Status:       $State: Exp $
- *
- *
- *
- *
- *****************************************************************************
- */
-
-#ifndef UTILCMD_H
-#define UTILCMD_H
-
-#include "SqlciNode.h"
-#include "SqlciList_templ.h"
-
-class PrepStmt;
-class SqlCmd;
-class IpcServer;
-
-class UtilCmd : public SqlciNode {
-public:
-enum UtilCmdType {
-  NONE
-};
-
-private:
-  UtilCmdType commandType_;
-  char *argument_;
-public:
-  UtilCmd(UtilCmdType, char * argument);
-  ~UtilCmd(){};
-  short process(SqlciEnv * sqlciEnv);
-  NABoolean isAllowedInSIP() { return FALSE; } ;
-  NABoolean isAllowedInRWMode() {return TRUE; };
-  NABoolean isAllowedInCSMode() {return FALSE; } ;
-protected:
-  char * getArgument() { return argument_;}
-};
-
-#endif
-
-
-
-
-

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/b952c0d5/core/sql/sqlci/UtilInt.cpp
----------------------------------------------------------------------
diff --git a/core/sql/sqlci/UtilInt.cpp b/core/sql/sqlci/UtilInt.cpp
deleted file mode 100644
index 7ca530b..0000000
--- a/core/sql/sqlci/UtilInt.cpp
+++ /dev/null
@@ -1,86 +0,0 @@
-/**********************************************************************
-// @@@ START COPYRIGHT @@@
-//
-// Licensed to the Apache Software Foundation (ASF) under one
-// or more contributor license agreements.  See the NOTICE file
-// distributed with this work for additional information
-// regarding copyright ownership.  The ASF licenses this file
-// to you under the Apache License, Version 2.0 (the
-// "License"); you may not use this file except in compliance
-// with the License.  You may obtain a copy of the License at
-//
-//   http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing,
-// software distributed under the License is distributed on an
-// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-// KIND, either express or implied.  See the License for the
-// specific language governing permissions and limitations
-// under the License.
-//
-// @@@ END COPYRIGHT @@@
-//
-**********************************************************************/
-/* -*-C++-*-
- *****************************************************************************
- *
- * File:         UtilInt.C
- * RCS:          $Id: UtilInt.cpp,v 1.2.18.1 1998/07/08 21:48:22  Exp $
- * Description:  
- *               
- *               
- * Created:      March 24, 95
- * Modified:     $ $Date: 1998/07/08 21:48:22 $ (GMT)
- * Language:     C++
- * Status:       Experimental
- *
- *
- *
- *
- *****************************************************************************
- */
-
-// -----------------------------------------------------------------------
-// Change history:
-// 
-// $Log: UtilInt.cpp,v $
-// Revision 1.2.18.1  1998/07/08 21:48:22
-// Merge of FCS0612 into NSKPORT_971208
-//
-// Revision 1.3  1998/05/13 18:40:48
-// Merged OLT0506 into FCS.
-//
-// Revision 1.2.34.1  1998/04/22 23:44:11
-// changes related to new NAString class; memory leaks fixed
-//
-// Revision 1.2  1997/04/23 00:31:20
-// Merge of MDAM/Costing changes into SDK thread
-//
-// Revision 1.1.1.1.2.1  1997/04/11 23:25:08
-// Checking in partially resolved conflicts from merge with MDAM/Costing
-// thread. Final fixes, if needed, will follow later.
-//
-// Revision 1.3.4.1  1997/04/10 18:33:32
-// *** empty log message ***
-//
-// Revision 1.1.1.1  1997/03/28 01:39:46
-// These are the source files from SourceSafe.
-//
-// 
-// 5     1/22/97 11:04p 
-// Merged UNIX and NT versions.
-// 
-// 3     1/14/97 4:55a 
-// Merged UNIX and  NT versions.
-// Revision 1.3  1996/04/05 20:08:03
-// Included the standard banner with RCS strings.
-//
-// Revision 1.2  1995/08/30 22:50:27
-// Implement break.
-//
-// Revision 1.1  1995/07/17  21:59:16
-// Initial revision
-//
-// 
-// -----------------------------------------------------------------------
-

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/b952c0d5/core/sql/sqlci/UtilInt.h
----------------------------------------------------------------------
diff --git a/core/sql/sqlci/UtilInt.h b/core/sql/sqlci/UtilInt.h
deleted file mode 100644
index c0478c4..0000000
--- a/core/sql/sqlci/UtilInt.h
+++ /dev/null
@@ -1,44 +0,0 @@
-#ifndef UTILINT_H
-#define UTILINT_H
-/* -*-C++-*-
- *****************************************************************************
- *
- * File:         UtilInt.h
- * RCS:          $Id: UtilInt.h,v 1.2.18.1 1998/07/08 21:48:23  Exp $
- * Description:  
- *               
- *               
- * Created:      4/15/95
- * Modified:     $ $Date: 1998/07/08 21:48:23 $ (GMT)
- * Language:     C++
- * Status:       $State: Exp $
- *
- *
-// @@@ START COPYRIGHT @@@
-//
-// Licensed to the Apache Software Foundation (ASF) under one
-// or more contributor license agreements.  See the NOTICE file
-// distributed with this work for additional information
-// regarding copyright ownership.  The ASF licenses this file
-// to you under the Apache License, Version 2.0 (the
-// "License"); you may not use this file except in compliance
-// with the License.  You may obtain a copy of the License at
-//
-//   http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing,
-// software distributed under the License is distributed on an
-// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-// KIND, either express or implied.  See the License for the
-// specific language governing permissions and limitations
-// under the License.
-//
-// @@@ END COPYRIGHT @@@
- *
- *
- *****************************************************************************
- */
-
-obsolete file, should not be included
-
-#endif

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/b952c0d5/core/sql/sqlci/UtilMsg.cpp
----------------------------------------------------------------------
diff --git a/core/sql/sqlci/UtilMsg.cpp b/core/sql/sqlci/UtilMsg.cpp
deleted file mode 100644
index 276d066..0000000
--- a/core/sql/sqlci/UtilMsg.cpp
+++ /dev/null
@@ -1,69 +0,0 @@
-/* -*-C++-*-
- *****************************************************************************
- *
- * File:         UtilMsg.C
- * RCS:          $Id: UtilMsg.cpp,v 1.2 1997/04/23 00:31:23  Exp $
- * Description:  
- *               
- *               
- * Created:      4/15/95
- * Modified:     $ $Date: 1997/04/23 00:31:23 $ (GMT)
- * Language:     C++
- * Status:       $State: Exp $
- *
- *
-// @@@ START COPYRIGHT @@@
-//
-// Licensed to the Apache Software Foundation (ASF) under one
-// or more contributor license agreements.  See the NOTICE file
-// distributed with this work for additional information
-// regarding copyright ownership.  The ASF licenses this file
-// to you under the Apache License, Version 2.0 (the
-// "License"); you may not use this file except in compliance
-// with the License.  You may obtain a copy of the License at
-//
-//   http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing,
-// software distributed under the License is distributed on an
-// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-// KIND, either express or implied.  See the License for the
-// specific language governing permissions and limitations
-// under the License.
-//
-// @@@ END COPYRIGHT @@@
- *
- *
- *****************************************************************************
- */
-
-// -----------------------------------------------------------------------
-// Change history:
-// 
-// $Log: UtilMsg.cpp,v $
-// Revision 1.2  1997/04/23 00:31:23
-// Merge of MDAM/Costing changes into SDK thread
-//
-// Revision 1.1.1.1.2.1  1997/04/11 23:25:11
-// Checking in partially resolved conflicts from merge with MDAM/Costing
-// thread. Final fixes, if needed, will follow later.
-//
-// Revision 1.3.4.1  1997/04/10 18:33:35
-// *** empty log message ***
-//
-// Revision 1.1.1.1  1997/03/28 01:39:46
-// These are the source files from SourceSafe.
-//
-// 
-// 5     1/22/97 11:04p 
-// Merged UNIX and NT versions.
-// 
-// 3     1/14/97 4:55a 
-// Merged UNIX and  NT versions.
-// Revision 1.3  1996/05/31 21:16:10
-// no change
-//
-// Revision 1.2  1996/04/05 20:08:03
-// Included the standard banner with RCS strings.
-// 
-

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/b952c0d5/core/sql/sqlci/UtilMsg.h
----------------------------------------------------------------------
diff --git a/core/sql/sqlci/UtilMsg.h b/core/sql/sqlci/UtilMsg.h
deleted file mode 100644
index 1c7f5f6..0000000
--- a/core/sql/sqlci/UtilMsg.h
+++ /dev/null
@@ -1,45 +0,0 @@
-#ifndef UTILMSG_H
-#define UTILMSG_H
-
-/* -*-C++-*-
- *****************************************************************************
- *
- * File:         UtilMsg.h
- * RCS:          $Id: UtilMsg.h,v 1.2 1997/04/23 00:31:25  Exp $
- * Description:  
- *               
- *               
- * Created:      4/15/95
- * Modified:     $ $Date: 1997/04/23 00:31:25 $ (GMT)
- * Language:     C++
- * Status:       $State: Exp $
- *
- *
-// @@@ START COPYRIGHT @@@
-//
-// Licensed to the Apache Software Foundation (ASF) under one
-// or more contributor license agreements.  See the NOTICE file
-// distributed with this work for additional information
-// regarding copyright ownership.  The ASF licenses this file
-// to you under the Apache License, Version 2.0 (the
-// "License"); you may not use this file except in compliance
-// with the License.  You may obtain a copy of the License at
-//
-//   http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing,
-// software distributed under the License is distributed on an
-// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-// KIND, either express or implied.  See the License for the
-// specific language governing permissions and limitations
-// under the License.
-//
-// @@@ END COPYRIGHT @@@
- *
- *
- *****************************************************************************
- */
-
- obsolete file,should not be included
-
-#endif /* UTILMSG_H    */

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/b952c0d5/core/sql/sqlci/immudefs.cpp
----------------------------------------------------------------------
diff --git a/core/sql/sqlci/immudefs.cpp b/core/sql/sqlci/immudefs.cpp
deleted file mode 100644
index 130105a..0000000
--- a/core/sql/sqlci/immudefs.cpp
+++ /dev/null
@@ -1,156 +0,0 @@
-/**********************************************************************
-// @@@ START COPYRIGHT @@@
-//
-// Licensed to the Apache Software Foundation (ASF) under one
-// or more contributor license agreements.  See the NOTICE file
-// distributed with this work for additional information
-// regarding copyright ownership.  The ASF licenses this file
-// to you under the Apache License, Version 2.0 (the
-// "License"); you may not use this file except in compliance
-// with the License.  You may obtain a copy of the License at
-//
-//   http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing,
-// software distributed under the License is distributed on an
-// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-// KIND, either express or implied.  See the License for the
-// specific language governing permissions and limitations
-// under the License.
-//
-// @@@ END COPYRIGHT @@@
-//
-**********************************************************************/
-/* -*-C++-*-
- *****************************************************************************
- *
- * File:         immudefs.C
- * RCS:          $Id: immudefs.cpp,v 1.2 1997/04/23 00:31:30  Exp $
- * Description:  
- *   Simulated functions for IMMU calls.            
- *               
- * Created:      2/23/96
- * Modified:     $ $Date: 1997/04/23 00:31:30 $ (GMT)
- * Language:     C++
- * Status:       $State: Exp $
- *
- *
- *
- *
- *****************************************************************************
- */
-
-// -----------------------------------------------------------------------
-// Change history:
-// 
-// $Log: immudefs.cpp,v $
-// Revision 1.2  1997/04/23 00:31:30
-// Merge of MDAM/Costing changes into SDK thread
-//
-// Revision 1.1.1.1.2.1  1997/04/11 23:25:14
-// Checking in partially resolved conflicts from merge with MDAM/Costing
-// thread. Final fixes, if needed, will follow later.
-//
-// Revision 1.4.4.1  1997/04/10 18:33:38
-// *** empty log message ***
-//
-// Revision 1.1.1.1  1997/03/28 01:39:42
-// These are the source files from SourceSafe.
-//
-// 
-// 6     1/22/97 11:04p 
-// Merged UNIX and NT versions.
-// 
-// 4     1/14/97 4:55a 
-// Merged UNIX and  NT versions.
-// Revision 1.4  1996/10/11 23:32:33
-// Modified the functions for error generation to use ComDiags.
-//
-// Revision 1.3  1996/05/31 21:16:10
-// no change
-//
-// Revision 1.2  1996/04/05 20:08:03
-// Included the standard banner with RCS strings.
-// 
-
-#include <string.h>
-
-#include "immudefs.h"
-#include "Platform.h"
-
-// All the following functions are required for 
-// sun objects only. For OSS objects, these functions
-// are available in the system library.
-
-
-_tal _extensible short   IMMU_OPEN_(
-  char  _far *Fname,                      /* Message File Name.          IN */
-  short       Flen,                       /* Message File Length         IN */
-  short _far *Fnum,                       /* Message File Number.        OUT */
-  char  _far *ProdNum,                    /* Tandem Product Number.      IN */
-  short _far *SpecialSymbol,              /* Special Symbol.             OU */
-  short _far *Language                    /* Optional                   OU */
-  )
-{
-  return 0 ;
-}
-
-_tal _extensible short   IMMU_READ_FORMAT_(
-  short        Fnum,                      /* Message File Number.       IN  */
-  struct IMMUkey_def _far *Key,           /* Access Key.                IN  */
-  char   _far *Msg,                       /* Message.                   IN  */
-  short        MaxLen,                    /* Maximum Length to Return.  IN  */
-  short  _far *Len,          /* Opt   */  /* Actual Length Returned.    I/O */
-  short        SpecialSymbol,/* Opt   */  /* Special Symbol.            IN  */
-  short  _far *MoreLines,    /* Opt   */  /* Indicates more lines for msg. O*/
-  char   _far *Parm1,        /* Opt   */  /* Substitutable Parmeter.     IN */
-  char   _far *Parm2,        /* Opt   */  /* Substitutable Parmeter.     IN */
-  char   _far *Parm3,        /* Opt   */  /* Substitutable Parmeter.     IN */
-  char   _far *Parm4,        /* Opt   */  /* Substitutable Parmeter.     IN */
-  char   _far *Parm5         /* Opt   */  /* Substitutable Parmeter.     IN */
-  )
-{
-  
-
-  strcpy (Msg, "\nSorry, the HELP messages will be available only when we move to OSS" ) ;
-  *Len = 68 ;
-  *MoreLines = 0 ;
-
-  return 0 ;
-}
-
-_tal _extensible short   IMMU_FORMAT_(
-  short        SpecialSymbol,             /* Special Symbol              IN */
-  char   _far *Msg,                       /* Message.                    I/O*/
-  short        MaxLen,                    /* Maximum Length to Return.   IN */
-  short  _far *Len,          /* Opt   */  /* Actual Length Returned.     I/O*/
-  char   _far *Parm1,                     /* Substitutable Parameter.    IN */
-  char   _far *Parm2,        /* Opt   */  /* Substitutable Parameter.    IN */
-  char   _far *Parm3,        /* Opt   */  /* Substitutable Parameter.    IN */
-  char   _far *Parm4,        /* Opt   */  /* Substitutable Parameter.    IN */
-  char   _far *Parm5         /* Opt   */  /* Substitutable Parameter.    IN */
-  )
-{
-  return 0 ;
-}
-
-_tal _extensible short   IMMU_MESSAGE_FILE_ERROR_(
-  short  _far *Fname,                     /* Name of Message File.       IN */
-  short        Flen,                      /* Length of Message File.     IN */
-  short        Error,                     /* Error Which Occurred.       IN */
-  char   _far *Msg,                       /* Message.                    OUT*/
-  short        MaxLen,                    /* Maximum Length to Return.   IN */
-  short  _far *Len,             /* Opt */ /* Actual Length Returned.     OUT*/
-  struct IMMUkey_def _far  *Key /* Opt */ /* Access Key.                 IN */
-  )
-{
-  return 0 ;
-}
-
-_tal _extensible short   IMMU_CLOSE_(
-  short  Fnum                            /* Message File Number.        IN */
-  )
-{
-  return 0 ;
-}
-

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/b952c0d5/core/sql/sqlci/immudefs.h
----------------------------------------------------------------------
diff --git a/core/sql/sqlci/immudefs.h b/core/sql/sqlci/immudefs.h
deleted file mode 100644
index 6d577f0..0000000
--- a/core/sql/sqlci/immudefs.h
+++ /dev/null
@@ -1,185 +0,0 @@
-#ifndef IMMUDEFS_H
-#define IMMUDEFS_H
-
-/* -*-C++-*-
- *****************************************************************************
- *
- * File:         immudefs.h
- * RCS:          $Id: immudefs.h,v 1.2 1997/04/23 00:31:32  Exp $
- * Description:  
- *   C form of IMMUDEFS.             
- *               
- * Created:      2/20/96
- * Modified:     $ $Date: 1997/04/23 00:31:32 $ (GMT)
- * Language:     C++
- * Status:       $State: Exp $
- *
- *
-// @@@ START COPYRIGHT @@@
-//
-// Licensed to the Apache Software Foundation (ASF) under one
-// or more contributor license agreements.  See the NOTICE file
-// distributed with this work for additional information
-// regarding copyright ownership.  The ASF licenses this file
-// to you under the Apache License, Version 2.0 (the
-// "License"); you may not use this file except in compliance
-// with the License.  You may obtain a copy of the License at
-//
-//   http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing,
-// software distributed under the License is distributed on an
-// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-// KIND, either express or implied.  See the License for the
-// specific language governing permissions and limitations
-// under the License.
-//
-// @@@ END COPYRIGHT @@@
- *
- *
- *****************************************************************************
- */
-
-// -----------------------------------------------------------------------
-// Change history:
-// 
-// $Log: immudefs.h,v $
-// Revision 1.2  1997/04/23 00:31:32
-// Merge of MDAM/Costing changes into SDK thread
-//
-// Revision 1.1.1.1.2.1  1997/04/11 23:25:16
-// Checking in partially resolved conflicts from merge with MDAM/Costing
-// thread. Final fixes, if needed, will follow later.
-//
-// Revision 1.4.4.1  1997/04/10 18:33:40
-// *** empty log message ***
-//
-// Revision 1.1.1.1  1997/03/28 01:39:42
-// These are the source files from SourceSafe.
-//
-// 
-// Revision 1.3  1996/05/31 21:35:57
-// no change
-//
-// Revision 1.2  1996/04/05 20:19:10
-// Included the standard banner with RCS strings.
-// 
-
-#include "Platform.h"
-
-// Required only for sunobj builds
-#define _tal
-#define _far
-#define _extensible
-
-
-enum {
-   IMMUerr_successful           =   0, /* Processing was successful. */
-   IMMUerr_message_truncated    =  -1, /* Message was too large for buffer. */
-   IMMUerr_invalid_key          =  -2, /* An invalid key was passed. */
-   IMMUerr_missing_param        =  -3, /* Required parameter missing. */
-   IMMUerr_not_KS_file          =  -4, /* Not key-sequenced file. */
-   IMMUerr_incompatible_version =  -5, /* Incompatible Record version format. */
-   IMMUerr_wrong_message_file   =  -6, /* Message file not for Product Number. */
-   IMMUerr_invalid_message_file =  -7, /* Invalid data detected in file. */
-   IMMUerr_file_not_open        =  -8  /* Tried to close unopened file. */
-     } ;
-
-enum {
-   len_RecordType = 2,                 /* Length of Record Type field */
-   len_ProductNum = 8,                 /* Length of product number field */
-   len_HelpTopic = 31,                 /* Length of help field */
-   len_Keyword = 31                    /* Length of keyword field */
-     } ;
-
-struct IMMUkey_def {
-    /* Key fields */
-    char IMMUkey_product_number[len_ProductNum];
-                                       /* Product Number and Version */
-
-    char IMMUkey_record_type[len_RecordType];
-                                       /* Record Type */
-                                       /*   VR: Version Record */
-                                       /*   ER: Error Record */
-                                       /*   HL: Help Record */
-                                       /*   KY: Keyword Record */
-
-    short  IMMUkey_key_field1;         /* If VR then doesn't matter */
-                                       /* If ER then Error Number */
-                                       /* If HL then doesn't matter */
-                                       /* If KY then doesn't matter */
-
-    short  IMMUkey_key_field2;         /* If VR then doesn't matter */
-                                       /* If ER then Line Number */
-                                       /* If HL then Line Number */
-                                       /* If KY then Alias Number */
-
-    char   IMMUkey_key_field3[len_HelpTopic];
-                                       /* If VR then doesn't matter */
-                                       /* If ER then doesn't matter */
-                                       /* If HL then Help Topic */
-                                       /* If KY then Known Keyword */
-    char   _filler;
-  } ;
-
-struct IMMU_filename {
-    short    length;
-    char *   file_name;
-  } ;
-
-/*                                               */
-/* New interface procedures for D00 release.     */
-/*                                               */
-
-_tal _extensible short   IMMU_OPEN_(
-  char  _far *Fname,                      /* Message File Name.          IN */
-  short       Flen,                       /* Message File Length         IN */
-  short _far *Fnum,                       /* Message File Number.        OUT */
-  char  _far *ProdNum,                    /* Tandem Product Number.      IN */
-  short _far *SpecialSymbol,              /* Special Symbol.             OU */
-  short _far *Language       /* Opt   */  /* Language.                   OU */
-  );
-
-_tal _extensible short   IMMU_READ_FORMAT_(
-  short        Fnum,                      /* Message File Number.       IN  */
-  struct IMMUkey_def _far *Key,           /* Access Key.                IN  */
-  char   _far *Msg,                       /* Message.                   IN  */
-  short        MaxLen,                    /* Maximum Length to Return.  IN  */
-  short  _far *Len,          /* Opt   */  /* Actual Length Returned.    I/O */
-  short        SpecialSymbol,/* Opt   */  /* Special Symbol.            IN  */
-  short  _far *MoreLines,    /* Opt   */  /* Indicates more lines for msg. O*/
-  char   _far *Parm1,        /* Opt   */  /* Substitutable Parmeter.     IN */
-  char   _far *Parm2,        /* Opt   */  /* Substitutable Parmeter.     IN */
-  char   _far *Parm3,        /* Opt   */  /* Substitutable Parmeter.     IN */
-  char   _far *Parm4,        /* Opt   */  /* Substitutable Parmeter.     IN */
-  char   _far *Parm5         /* Opt   */  /* Substitutable Parmeter.     IN */
-  );
-
-_tal _extensible short   IMMU_FORMAT_(
-  short        SpecialSymbol,             /* Special Symbol              IN */
-  char   _far *Msg,                       /* Message.                    I/O*/
-  short        MaxLen,                    /* Maximum Length to Return.   IN */
-  short  _far *Len,          /* Opt   */  /* Actual Length Returned.     I/O*/
-  char   _far *Parm1,                     /* Substitutable Parameter.    IN */
-  char   _far *Parm2,        /* Opt   */  /* Substitutable Parameter.    IN */
-  char   _far *Parm3,        /* Opt   */  /* Substitutable Parameter.    IN */
-  char   _far *Parm4,        /* Opt   */  /* Substitutable Parameter.    IN */
-  char   _far *Parm5         /* Opt   */  /* Substitutable Parameter.    IN */
-  );
-
-_tal _extensible short   IMMU_MESSAGE_FILE_ERROR_(
-  short  _far *Fname,                     /* Name of Message File.       IN */
-  short        Flen,                      /* Length of Message File.     IN */
-  short        Error,                     /* Error Which Occurred.       IN */
-  char   _far *Msg,                       /* Message.                    OUT*/
-  short        MaxLen,                    /* Maximum Length to Return.   IN */
-  short  _far *Len,             /* Opt */ /* Actual Length Returned.     OUT*/
-  struct IMMUkey_def _far  *Key /* Opt */ /* Access Key.                 IN */
-  );
-
-
-_tal _extensible short   IMMU_CLOSE_(
-  short  Fnum                            /* Message File Number.        IN */
-  );
-
-#endif /* IMMUDEFS_H */

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/b952c0d5/core/sql/sqlci/sqlci_lex.ll
----------------------------------------------------------------------
diff --git a/core/sql/sqlci/sqlci_lex.ll b/core/sql/sqlci/sqlci_lex.ll
index 18b7f48..4299a1c 100755
--- a/core/sql/sqlci/sqlci_lex.ll
+++ b/core/sql/sqlci/sqlci_lex.ll
@@ -54,18 +54,12 @@
 #include <stdlib.h>
 #include <iostream>
 #include "SqlciCmd.h"
-#include "SqlciRWCmd.h"
 #include "str.h"
 #include "Sqlci.h"
-#pragma warning (disable : 4005)   //warning elimination
-#pragma nowarn(140)  // warning elimination
 #define yylval sqlcilval
 #define yyerror sqlcierror
 #include "sqlci_yacc.h"
-#pragma warn(140)  // warning elimination
-#pragma warning (default : 4005)   //warning elimination
 #include "SqlciParseGlobals.h"
-#pragma nowarn(1506)  //warning elimination
 
 static int token_to_return;
 
@@ -257,19 +251,8 @@ B			[ \t\n]+
 [Ll][Oo][Aa][Dd] 		       return_IDENT_or_TOKEN(LOADtoken, 0);
 [Mm][Ee][Rr][Gg][Ee]                   return_IDENT_or_TOKEN(MERGEtoken, 0);
 [Mm][Ee][Tt][Aa][Dd][Aa][Tt][Aa]                   return_IDENT_or_TOKEN(METADATAtoken, 0);
-[Mm][Aa][Ii][Nn][Tt][Aa][Ii][Nn]       return_IDENT_or_TOKEN(MAINTAINtoken, 0);
 [Mm][Aa][Pp]                           return_IDENT_or_TOKEN(MAPtoken, 0);
 [Mm][Oo][Dd][Ii][Ff][Yy]               return_IDENT_or_TOKEN(MODIFY, 0);
-[Mm][Oo][Dd][Uu][Ll][Ee]               {
-                     return_IDENT_or_TOKEN(MODULE, 0);
-                       }
-[Mm][Oo][Dd][Uu][Ll][Ee][Ss]               {
-                     return_IDENT_or_TOKEN(MODULES, 0);
-                       }
-[Mm][Oo][Dd][Uu][Ll][Ee][_][Dd][Ii][Rr]   {
-                        return_IDENT_or_TOKEN(MODULE_DIR, 0);
-                                          }
-[No][Oo][Ee]                           return_IDENT_or_TOKEN(NOEtoken, 0);
 [Oo][Bb][Ee][Yy]  		       { 
                      BEGIN FNAME; 
                                          return_IDENT_or_TOKEN (OBEY, 0); 
@@ -290,8 +273,6 @@ B			[ \t\n]+
 [Ee][Xx][Ii][Tt] 		       return_IDENT_or_TOKEN(EXIT, 0);
 [Ff][Cc]   		               return_IDENT_or_TOKEN(FC, -1);
 [Ff][Oo][Rr]   		               return_IDENT_or_TOKEN(FORtoken, 0);
-[Rr][Ee][Oo][Rr][Gg]   		       return_IDENT_or_TOKEN(REORGtoken, 0);
-[Rr][Ee][Oo][Rr][Gg][Aa][Nn][Ii][Zz][Ee] return_IDENT_or_TOKEN(REORGtoken, 0);
 [Rr][Ee][Pp][Ll][Ii][Cc][Aa][Tt][Ee]    return_IDENT_or_TOKEN(REPLICATEtoken, 0);
 [[Cc][Pp][Uu]                           return_IDENT_or_TOKEN(CPU, 0);
 [Pp][Ii][Dd]                           return_IDENT_or_TOKEN(PID, 0);
@@ -305,21 +286,6 @@ B			[ \t\n]+
                                          return_IDENT_or_TOKEN(LOG, 0);
                                        }
                                       
-[Hh][Ee][Ll][Pp] 		       { 
-                                       SqlciParse_SyntaxErrorCleanup = -1;
-                       if (SqlciParse_IdentifierExpected)
-                     {
-                       if (yylval.stringval_type)
-                         delete [] yylval.stringval_type;
-                       yylval.stringval_type = new char[5];
-                       strcpy(yylval.stringval_type, "HELP");
-                       token_to_return = IDENTIFIER ;
-                     }
-                     else
-                       token_to_return = HELP; 
-                     SqlciParse_IdentifierExpected = -1;
-                     return (token_to_return);
-                                       }
 [Hh][Ii][Ss][Tt][Oo][Rr][Yy]	       return_IDENT_or_TOKEN(HISTORY, 0);
 [Rr][Ee][Ss][Ee][Tt]                   return_IDENT_or_TOKEN(RESET, 0);
 [Ss][Ee][Tt]{B}[Tt][Aa][Bb][Ll][Ee] return_IDENT_or_TOKEN(SET_TABLEtoken, 0);
@@ -327,13 +293,11 @@ B			[ \t\n]+
 [Ss][Ee][Tt]                           return_IDENT_or_TOKEN(SETtoken, 0);
 [Ss][Ee][Tt][Ee][Nn][Vv]               return_IDENT_or_TOKEN(SETENV, 0);
 [Ll][Ii][Ss][Tt]_[Cc][Oo][Uu][Nn][Tt]  return_IDENT_or_TOKEN(LISTCOUNT, 0);
-[Ll][Ii][Ss][Tt]                       return_IDENT_or_TOKEN(LISTX, 0); 
 [Ff][Ii][Rr][Ss][Tt]                   return_IDENT_or_TOKEN(FIRST, 0);
 [Nn][Ee][Xx][Tt]                       return_IDENT_or_TOKEN(NEXT, 0);
 [Rr][Ee][Pp][Oo][Rr][Tt]               return_IDENT_or_TOKEN(REPORT, 0);
 [Ss][Qq][Ll]                           return_IDENT_or_TOKEN(SQL, 0);
 [Cc][Aa][Nn][Cc][Ee][ll]               return_IDENT_or_TOKEN(CANCEL, 0);
-[Mm][Xx][Cc][Ss]                       return_IDENT_or_TOKEN(MXCS, 0); 
 [Mm][Oo][Dd][Ee]                       return_IDENT_or_TOKEN(MODE,0);
 [Ww][Aa][Rr][Nn][Ii][Nn][Gg][Ss]       return_IDENT_or_TOKEN(VERBOSE, 0);
 [Pp][Aa][Rr][Aa][Mm]                   return_IDENT_or_TOKEN(PARAM, 0);
@@ -344,7 +308,6 @@ B			[ \t\n]+
 [Pp][Uu][Rr][Gg][Ee][Dd][Aa][Tt][Aa]   return_IDENT_or_TOKEN(PURGEDATA, 0);
 [Pp][Oo][Pp][Uu][Ll][Aa][Tt][Ee]       return_IDENT_or_TOKEN(POPULATE, 0);
 [Vv][Aa][Ll][Ii][Dd][Aa][Tt][Ee]       return_IDENT_or_TOKEN(VALIDATEtoken, 0);
-[Rr][Ee][Cc][Oo][Vv][Ee][Rr]           return_IDENT_or_TOKEN(RECOVER, 0);
 [Rr][Ee][Ff][Rr][Ee][Ss][Hh]		   return_IDENT_or_TOKEN(REFRESH, 0);	/* MV - REFRESH utility */
 [Rr][Ee][Pp][Oo][Ss][Ii][Tt][Oo][Rr][Yy]    return_IDENT_or_TOKEN(REPOSITORYtoken, 0);
 [Rr][Oo][Ww][Ss][Ee][Tt]               return_IDENT_or_TOKEN(ROWSETtoken, 0);
@@ -377,19 +340,6 @@ B			[ \t\n]+
 [Vv][Aa][Ll][Uu][Ee][Ss]	       return_IDENT_or_TOKEN(VALUES, 0);
 [Vv][Ee][Rr][Ss][Ii][Oo][Nn]           return_IDENT_or_TOKEN(VERSIONtoken, 0);
 [Cc][Rr][Ee][Aa][Tt][Ee]	       return_IDENT_or_TOKEN(CREATE, 0);
-[Ll][Aa][Bb][Ee][Ll][_][Cc][Rr][Ee][Aa][Tt][Ee] {
-                                       return_IDENT_or_TOKEN(LABEL_CREATE, 0);
-                                                }
-[Ll][Aa][Bb][Ee][Ll][_][Dd][Rr][Oo][Pp] {
-                                       return_IDENT_or_TOKEN(LABEL_DROP, 0);
-					}		
-
-[Ll][Aa][Bb][Ee][Ll][_][Aa][Ll][Tt][Ee][Rr] {
-                                       return_IDENT_or_TOKEN(LABEL_ALTER, 0);
-				       }
-[Ll][Aa][Bb][Ee][Ll][_][Pp][Uu][Rr][Gg][Ee][Dd][Aa][Tt][Aa] {
-                                       return_IDENT_or_TOKEN(LABEL_PURGEDATA, 0);
-				       }
 [Aa][Ll][Tt][Ee][Rr]		       return_IDENT_or_TOKEN(ALTER, 0);
 [Dd][Rr][Oo][Pp] 		       return_IDENT_or_TOKEN(DROP, 0);
 [Ll][Oo][Cc][Kk]                       return_IDENT_or_TOKEN(LOCK, 0);
@@ -433,8 +383,6 @@ B			[ \t\n]+
 [Ii][Nn][Ff][Ee][Rr]_[Cc][Hh][Aa][Rr][Ss][Ee][Tt] return_IDENT_or_TOKEN(INFER_CHARSET, 0);
 [Rr][Ee][Ss][Uu][Ll][Tt]               return_IDENT_or_TOKEN(RESULT, 0);
 [Qq][Uu][Ii][Ee][Ss][Cc][Ee]           return_IDENT_or_TOKEN(QUIESCE, 0);
-[Dd][Oo][Ww][Nn][Gg][Rr][Aa][Dd][Ee]   return_IDENT_or_TOKEN(DOWNGRADEtoken, 0);
-[Uu][Pp][Gg][Rr][Aa][Dd][Ee]           return_IDENT_or_TOKEN(UPGRADEtoken, 0);
 [Aa][Cc][Tt][Ii][Vv][Ee]               return_IDENT_or_TOKEN(ACTIVEtoken, 0);
 [Aa][Cc][Cc][Uu][Mm][Uu][Ll][Aa][Tt][Ee][Dd] return_IDENT_or_TOKEN(ACCUMULATEDtoken, 0);
 [Pp][Ee][Rr][Tt][Aa][Bb][Ll][Ee]       return_IDENT_or_TOKEN(PERTABLEtoken, 0);
@@ -518,26 +466,6 @@ B			[ \t\n]+
                 return_IDENT_or_TOKEN(DQUOTED_STRING, 0);
                  }
 
-[=][A-Za-z][A-Za-z0-9_\$]*  {
-                                if (yylval.stringval_type)
-                  delete [] yylval.stringval_type;
-                yylval.stringval_type = new char[strlen(yytext) + 1];
-                strcpy(yylval.stringval_type, yytext);
-                SqlciParse_IdentifierExpected = 0;
-                
-                return(DEFINE_NAME);
-                             }
-[=][_][A-Za-z][A-Za-z0-9_\$]*  {
-                                if (yylval.stringval_type)
-                  delete [] yylval.stringval_type;
-                yylval.stringval_type = new char[strlen(yytext) + 1];
-                strcpy(yylval.stringval_type, yytext);
-                SqlciParse_IdentifierExpected = 0;
-                
-                return(DEFINE_NAME);
-                             }
-
-
 [A-Za-z_][A-Za-z0-9_.]*    {
                 yylval.stringval_type = new char[strlen(yytext)+1];
                 strcpy(yylval.stringval_type, yytext);
@@ -578,14 +506,6 @@ B			[ \t\n]+
                                 return(NODE_VOL_NAME);
                            }
 
-\\{G}                      {
-                                if (yylval.stringval_type)
-	                              delete [] yylval.stringval_type;
-                                yylval.stringval_type = new char[strlen(yytext)+1];
-				strcpy(yylval.stringval_type, yytext);
-                                return(NODE_NAME);
-                           }
-
 \\{G}\.[0-9]*\,[0-9]*      {
                                 if (yylval.stringval_type)
 	                              delete [] yylval.stringval_type;
@@ -611,8 +531,7 @@ B			[ \t\n]+
 . 		{SqlciParse_IdentifierExpected = 0; return(ERROR_STMT);};
 
 %%
-#pragma warn(1506)  //warning elimination
-#pragma nowarn(262)  //warning elimination
+
 #ifdef NA_FLEXBUILD
 void SqlciLexReinit()
 {


[6/9] incubator-trafodion git commit: Merge remote branch 'origin/master' into ansharma_t23cleanup_br

Posted by an...@apache.org.
Merge remote branch 'origin/master' into ansharma_t23cleanup_br


Project: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/commit/331fbd2a
Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/tree/331fbd2a
Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/diff/331fbd2a

Branch: refs/heads/master
Commit: 331fbd2aca3ac8938a8f6ead3c4b02687e562ee0
Parents: b952c0d 574452e
Author: Anoop Sharma <an...@esgyn.com>
Authored: Sun Sep 17 20:15:18 2017 +0000
Committer: Anoop Sharma <an...@esgyn.com>
Committed: Sun Sep 17 20:15:18 2017 +0000

----------------------------------------------------------------------
 core/sqf/src/seatrans/.gitignore            |    1 +
 core/sql/bin/SqlciMain.cpp                  |    7 +-
 core/sql/bin/ex_ssmp_main.cpp               |   10 +-
 core/sql/cli/Cli.cpp                        |   19 +-
 core/sql/cli/Context.cpp                    |   32 +-
 core/sql/cli/Context.h                      |   18 +-
 core/sql/cli/Globals.cpp                    |   63 +-
 core/sql/cli/Globals.h                      |    8 +-
 core/sql/cli/Statement.cpp                  |   73 +-
 core/sql/cli/sqlcli.h                       |    5 +-
 core/sql/comexe/ComTdb.h                    |    1 +
 core/sql/comexe/ComTdbHashGrby.h            |   20 +-
 core/sql/comexe/ComTdbHashj.cpp             |    6 +-
 core/sql/comexe/ComTdbHashj.h               |   18 +-
 core/sql/comexe/ComTdbRoot.cpp              |    4 +-
 core/sql/comexe/ComTdbRoot.h                |    8 +
 core/sql/comexe/ComTdbSort.cpp              |    9 +-
 core/sql/comexe/ComTdbSort.h                |   27 +-
 core/sql/comexe/ComTdbStats.cpp             |   10 +-
 core/sql/comexe/ComTdbStats.h               |    7 +-
 core/sql/common/ComSmallDefs.h              |    7 +
 core/sql/common/NAMemory.cpp                |    1 +
 core/sql/common/NAMemory.h                  |    3 +-
 core/sql/executor/ExExeUtilGetStats.cpp     |    2 +-
 core/sql/executor/ExStats.cpp               |   47 +-
 core/sql/executor/ExStats.h                 |    3 +
 core/sql/executor/cluster.cpp               |   11 +-
 core/sql/executor/cluster.h                 |    4 +-
 core/sql/executor/ex_esp_frag_dir.cpp       |   18 +-
 core/sql/executor/ex_ex.cpp                 |    8 +-
 core/sql/executor/ex_exe_stmt_globals.cpp   |    9 +-
 core/sql/executor/ex_exe_stmt_globals.h     |   28 +-
 core/sql/executor/ex_frag_rt.cpp            |  113 +-
 core/sql/executor/ex_frag_rt.h              |    8 +-
 core/sql/executor/ex_globals.cpp            |    7 +-
 core/sql/executor/ex_hashj.cpp              |    4 +-
 core/sql/executor/ex_root.cpp               |   39 +-
 core/sql/executor/ex_send_bottom.cpp        |   22 +-
 core/sql/executor/ex_sort.cpp               |    8 +-
 core/sql/executor/ex_split_bottom.cpp       |   10 +-
 core/sql/executor/ex_split_top.cpp          |    7 +-
 core/sql/exp/ExpHbaseInterface.cpp          |    6 +-
 core/sql/generator/GenExplain.cpp           |   49 +-
 core/sql/generator/GenPreCode.cpp           |   51 +-
 core/sql/generator/GenProbeCache.cpp        |   57 +-
 core/sql/generator/GenRelEnforcer.cpp       |   27 +-
 core/sql/generator/GenRelGrby.cpp           |  113 +-
 core/sql/generator/GenRelJoin.cpp           |  137 +-
 core/sql/generator/GenRelMisc.cpp           |  127 +-
 core/sql/generator/GenRelSequence.cpp       |   79 +-
 core/sql/generator/Generator.cpp            |   27 +-
 core/sql/generator/Generator.h              |   41 +-
 core/sql/optimizer/RelEnforcer.h            |    9 +-
 core/sql/optimizer/RelExpr.cpp              |   91 +-
 core/sql/optimizer/RelExpr.h                |   19 +-
 core/sql/optimizer/RelGrby.h                |    2 +-
 core/sql/optimizer/RelJoin.h                |    2 +-
 core/sql/optimizer/RelProbeCache.h          |    2 +-
 core/sql/optimizer/RelSequence.h            |    2 +-
 core/sql/regress/executor/EXPECTED107       |   47 +
 core/sql/regress/executor/EXPECTED140       |   18 +-
 core/sql/regress/executor/FILTER131         |    2 +
 core/sql/regress/executor/FILTER140         |    2 +
 core/sql/regress/executor/TEST107           |    6 +
 core/sql/regress/hive/EXPECTED009           |    6 +-
 core/sql/regress/hive/EXPECTED030           | 2636 ++++++++++++++++++++++
 core/sql/regress/hive/FILTER009             |    1 +
 core/sql/regress/seabase/EXPECTED010        |   84 +
 core/sql/regress/seabase/EXPECTED011        |    1 +
 core/sql/regress/seabase/EXPECTED016        |   49 +-
 core/sql/regress/tools/regress-filter-linux |    2 +
 core/sql/runtimestats/CancelBroker.cpp      |   14 +-
 core/sql/runtimestats/SqlStats.cpp          |  122 +-
 core/sql/runtimestats/SqlStats.h            |   16 +-
 core/sql/runtimestats/sscpipc.cpp           |   65 +-
 core/sql/runtimestats/ssmpipc.cpp           |  166 +-
 core/sql/sort/SortTopN.cpp                  |    6 +-
 core/sql/sort/SortUtil.cpp                  |    8 +-
 core/sql/sort/SortUtilCfg.cpp               |    2 +-
 core/sql/sort/SortUtilCfg.h                 |    6 +-
 core/sql/sqlcomp/DefaultConstants.h         |   28 +-
 core/sql/sqlcomp/DefaultValidator.h         |    8 +
 core/sql/sqlcomp/nadefaults.cpp             |   37 +-
 83 files changed, 3749 insertions(+), 1129 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/331fbd2a/core/sql/bin/SqlciMain.cpp
----------------------------------------------------------------------

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/331fbd2a/core/sql/cli/Globals.cpp
----------------------------------------------------------------------

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/331fbd2a/core/sql/cli/Globals.h
----------------------------------------------------------------------

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/331fbd2a/core/sql/cli/Statement.cpp
----------------------------------------------------------------------

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/331fbd2a/core/sql/executor/ExStats.h
----------------------------------------------------------------------

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/331fbd2a/core/sql/executor/ex_esp_frag_dir.cpp
----------------------------------------------------------------------

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/331fbd2a/core/sql/executor/ex_globals.cpp
----------------------------------------------------------------------

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/331fbd2a/core/sql/generator/Generator.h
----------------------------------------------------------------------


[7/9] incubator-trafodion git commit: TRAFODION-2731 CodeCleanup: Phase 2: Remove obsolete code

Posted by an...@apache.org.
http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/62b45310/core/sql/sqlcomp/CmpMain.cpp
----------------------------------------------------------------------
diff --git a/core/sql/sqlcomp/CmpMain.cpp b/core/sql/sqlcomp/CmpMain.cpp
index 8be62a1..64cf37b 100644
--- a/core/sql/sqlcomp/CmpMain.cpp
+++ b/core/sql/sqlcomp/CmpMain.cpp
@@ -41,22 +41,14 @@
 #include <stdlib.h>
 #include <fstream>
 
-  #ifdef _DEBUG
-    #include <string.h>
-  #endif
-
-#if 0
-#define DllImport
-#include "guardian/pprcinfz.h"
+#ifdef _DEBUG
+#include <string.h>
 #endif
 
 #include <dlfcn.h>  
 
 
-  #include "ComMemoryDiags.h"		// ComMemoryDiags::DumpMemoryInfo()
-
-
-#define NA_LINUX_QT
+#include "ComMemoryDiags.h"		// ComMemoryDiags::DumpMemoryInfo()
 
 #include "CmpContext.h"
 #include "Analyzer.h"
@@ -292,16 +284,11 @@ void CmpMain::initGuiDisplay(RelExpr *queryExpr)
 #ifdef NA_DEBUG_GUI
   NABoolean CmpMain::guiDisplay(Sqlcmpdbg::CompilationPhase phase, RelExpr* q)
   {
-#if defined(NA_LINUX_QT)
       if (((RelRoot *)q)->getDisplayTree() && CmpMain::pExpFuncs_)
       {
         initializeGUIData(CmpMain::pExpFuncs_);
         CmpMain::pExpFuncs_->fpDisplayQueryTree(phase, q, NULL);
       }
-#else
-      if (((RelRoot *)q)->getDisplayTree())
-        cout << "Sorry... gui display is not supported in this environment.\n";
-#endif
     return FALSE;
   }
 #endif
@@ -322,8 +309,6 @@ void CmpMain::initGuiDisplay(RelExpr *queryExpr)
 //--------------------------------------------------------------------
 void CmpMain::loadSqlCmpDbgDLL_msGui()
 {
-#if   defined(NA_LINUX_QT) // NA_WINNT
-
   if ( CmpMain::msGui_ == NULL ) // If no Compiler Instance is currently using debugger
   {
      CmpMain::msGui_ = CmpCommon::context();     // Claim ownership of debugger
@@ -348,8 +333,6 @@ void CmpMain::loadSqlCmpDbgDLL_msGui()
      if ( dlptr == NULL )
         CmpMain::msGui_ = NULL ;  //This Compiler Instance cannot use debugger
   }
-
-#endif // NA_LINUX_QT
   // free the DLL module
 }
 #endif // NA_DEBUG_GUI
@@ -468,7 +451,6 @@ void CmpMain::sqlcompCleanup(const char *input_str,
     cmpTracker->logCompilerStatusOnInterval(trackingInterval);
   }
   
-#if defined(NA_LINUX_QT)
   if( dlptr  &&  CmpMain::msGui_ == CmpCommon::context() && CURRENTSTMT->displayGraph())
   {	
     int ret = dlclose(dlptr);
@@ -477,10 +459,6 @@ void CmpMain::sqlcompCleanup(const char *input_str,
   }	
 
   CURRENTSTMT->clearDisplayGraph();
-#endif
-
-
-
 }
 
 RelExpr *CmpMain::transform(NormWA &normWA, RelExpr *queryExpr)

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/62b45310/core/sql/sqlcomp/parser.cpp
----------------------------------------------------------------------
diff --git a/core/sql/sqlcomp/parser.cpp b/core/sql/sqlcomp/parser.cpp
index 72c51f5..8e6a5ce 100644
--- a/core/sql/sqlcomp/parser.cpp
+++ b/core/sql/sqlcomp/parser.cpp
@@ -61,7 +61,6 @@
 #include "NAMemory.h"
 #include "ParserMsg.h"
 #include "parser.h"
-#include "purify.h"
 #include "QueryText.h"
 #include "RelExeUtil.h"
 #include "RelMisc.h"		// for RelRoot

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/62b45310/core/sql/sqlmsg/ComDiagsMsg.cpp
----------------------------------------------------------------------
diff --git a/core/sql/sqlmsg/ComDiagsMsg.cpp b/core/sql/sqlmsg/ComDiagsMsg.cpp
index 96e58b2..62a8b2f 100644
--- a/core/sql/sqlmsg/ComDiagsMsg.cpp
+++ b/core/sql/sqlmsg/ComDiagsMsg.cpp
@@ -1242,7 +1242,7 @@ void emitError( Lng32 ErrNum, char *stringType, Lng32 numArgs, ... )
       va_start( ap, numArgs );
       assert( numArgs < 11 ); // at most, 10 arguments are acceptable
 
-      for( UInt32 argNum = 0; argNum < (UInt32)numArgs; argNum++ )  // NT_PORT ( bd 12/9/96 )
+      for( UInt32 argNum = 0; argNum < (UInt32)numArgs; argNum++ )
          if ( stringType[ argNum ] == 'T' )  {
             assert( strIdx < 5 );
 #pragma nowarn(1506)   // warning elimination 

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/62b45310/core/sql/sqlmsg/ErrorMessage.h
----------------------------------------------------------------------
diff --git a/core/sql/sqlmsg/ErrorMessage.h b/core/sql/sqlmsg/ErrorMessage.h
index 21ca07b..3a88bd8 100644
--- a/core/sql/sqlmsg/ErrorMessage.h
+++ b/core/sql/sqlmsg/ErrorMessage.h
@@ -110,7 +110,6 @@ Lng32 FixupMessageParam(NAWchar *paramName, MsgParamType paramType = NAMED_PARAM
 
 void FixCarriageReturn(char *str);
 
-// NT_PORT 03/20/97 mhr:
 // Global function for portability, in two overloaded flavors for WINNT.
 //
 void NAWriteConsole(const char *str,		// always defined

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/62b45310/core/sql/sqlmsg/ParserMsg.cpp
----------------------------------------------------------------------
diff --git a/core/sql/sqlmsg/ParserMsg.cpp b/core/sql/sqlmsg/ParserMsg.cpp
index 068c430..b11f9f2 100644
--- a/core/sql/sqlmsg/ParserMsg.cpp
+++ b/core/sql/sqlmsg/ParserMsg.cpp
@@ -293,8 +293,6 @@ void StoreSyntaxError(const NAWchar *input_str, Int32 input_pos,
     }
   }
   
-  //delete entireBuf;  		NT_PORT ( bd 1/24/97 )
-
 } // StoreSyntaxError, Unicode version 
 #pragma warn(1506)  // warning elimination
 

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/62b45310/core/sql/ustat/hs_lex.ll
----------------------------------------------------------------------
diff --git a/core/sql/ustat/hs_lex.ll b/core/sql/ustat/hs_lex.ll
index 12adcf0..c377bfe 100644
--- a/core/sql/ustat/hs_lex.ll
+++ b/core/sql/ustat/hs_lex.ll
@@ -53,7 +53,7 @@
 #include <errno.h>
 #pragma nowarn(1506)  //warning elimination
 
-extern "C" int isatty(int); // NT_PORT ( bd 12/17/96 )
+extern "C" int isatty(int);
 
 int yyback(int *p, int m);
 int yylook(void);
@@ -88,7 +88,7 @@ void HsUnput(char c)
 // LCOV_EXCL_START :cnu
 // handle EOF in the input stream and let lex continue
 // with the next input file
-extern "C" // NT_PORT ( bd 10/8/96 ) C Linkage
+extern "C"
 {
 int yywrap(void*)
 {

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/62b45310/core/sql/ustat/hs_update.cpp
----------------------------------------------------------------------
diff --git a/core/sql/ustat/hs_update.cpp b/core/sql/ustat/hs_update.cpp
index 78a2cf6..bc8492a 100644
--- a/core/sql/ustat/hs_update.cpp
+++ b/core/sql/ustat/hs_update.cpp
@@ -39,7 +39,7 @@
 
 
 #include <stdlib.h>
-#include "Platform.h"                                    // NT_PORT SK 02/08/97
+#include "Platform.h"
 #include "ComDiags.h"
 #include "CmpCommon.h"
 #include "cli_stdh.h"


[4/9] incubator-trafodion git commit: code cleanup, commit #1

Posted by an...@apache.org.
http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/b952c0d5/core/sql/sqlci/CSInterface.h
----------------------------------------------------------------------
diff --git a/core/sql/sqlci/CSInterface.h b/core/sql/sqlci/CSInterface.h
deleted file mode 100644
index 59a9a0d..0000000
--- a/core/sql/sqlci/CSInterface.h
+++ /dev/null
@@ -1,84 +0,0 @@
-/********************************************************************  
-//
-// @@@ START COPYRIGHT @@@
-//
-// Licensed to the Apache Software Foundation (ASF) under one
-// or more contributor license agreements.  See the NOTICE file
-// distributed with this work for additional information
-// regarding copyright ownership.  The ASF licenses this file
-// to you under the Apache License, Version 2.0 (the
-// "License"); you may not use this file except in compliance
-// with the License.  You may obtain a copy of the License at
-//
-//   http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing,
-// software distributed under the License is distributed on an
-// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-// KIND, either express or implied.  See the License for the
-// specific language governing permissions and limitations
-// under the License.
-//
-// @@@ END COPYRIGHT @@@
-********************************************************************/
-
-/*******************************************************************************
-MODULE CSInterface.h    : Define prototypes and stuff for MXCI interface
-
-
-DESCRIPTION
-This defines things needed in the CSInterface.cpp module that others will need too.
-This is the only header used by MXCI from this library, so keep it minimal so it
-does not change often (or all of MXCI must be compiled too).
-
-MACL = MXCS Admin Commands Library
-
-CS is added to all enums and structure names so they do not conflict with
-RWInterface.h ones in MXCI builds.  The values are the same.
-********************************************************************************/
-
-#ifndef CSINTERFACE_H
-#define CSINTERFACE_H
-
-// PRAGMA FOR NSK COMPILES
-
-// ENUM AND DEFINES
-#define CSMTEXT   500       // Space to allocate in each error struct for text
-
-enum CSRetStatus {          // All functions return these values
-    CSERROR = -1,
-    CSSUCCESS,                          // SUCCESS = 0 already in zmxocfg.h
-    CSDONE,
-    CSGET_OUTPUT_ROW,
-    CSGET_ERROR_INFO
-};
-
-// STRUCTURES AND TYPEDEFS
-typedef struct cserrorvalue {           // error report structure
-    Int32 errorCode_;                     // the error number from the msg file
-    char *charparam1_;                  // substitution string 1 ptr if needed
-    char *charparam2_;                  // substitution string 2 ptr if needed
-    char *charparam3_;                  // substitution string 3 ptr if needed
-    Lng32 intparam1_;                    // substitution long int 1 if needed
-    Lng32 intparam2_;                    // substitution long int 2 if needed
-    Lng32 intparam3_;                    // substitution long int 3 if needed
-    char textbuf_[CSMTEXT];             // space for the strings
-} CSErrorValue;
-
-// EXTERNAL FUNCTION PROTOTYPES
-#ifdef __cplusplus
-extern "C" {                            // stop the mangler from touching names
-#endif
-Lng32 CS_MXCI_sendQuery(void *CSEnv, char *cmd, Lng32 len);
-Lng32 CS_MXCI_getErrorInfo(void *CSEnv, CSErrorValue* &err);
-Lng32 CS_MXCI_getReportLine(void *CSEnv, char* &line, Lng32 &len);
-Lng32 CS_MXCI_Constructor(void* &CSEnv);
-Lng32 CS_MXCI_Destructor(void *CSEnv);
-Lng32 CS_MXCI_handleBreak(void *CSEnv);
-void CS_MXCI_StopContext(void *CSEnv);
-#ifdef __cplusplus 
-} 
-#endif
-
-#endif
-// END MODULE

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/b952c0d5/core/sql/sqlci/CharSetConstants.cpp
----------------------------------------------------------------------
diff --git a/core/sql/sqlci/CharSetConstants.cpp b/core/sql/sqlci/CharSetConstants.cpp
deleted file mode 100644
index 05bb10e..0000000
--- a/core/sql/sqlci/CharSetConstants.cpp
+++ /dev/null
@@ -1,47 +0,0 @@
-/**********************************************************************
-// @@@ START COPYRIGHT @@@
-//
-// Licensed to the Apache Software Foundation (ASF) under one
-// or more contributor license agreements.  See the NOTICE file
-// distributed with this work for additional information
-// regarding copyright ownership.  The ASF licenses this file
-// to you under the Apache License, Version 2.0 (the
-// "License"); you may not use this file except in compliance
-// with the License.  You may obtain a copy of the License at
-//
-//   http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing,
-// software distributed under the License is distributed on an
-// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-// KIND, either express or implied.  See the License for the
-// specific language governing permissions and limitations
-// under the License.
-//
-// @@@ END COPYRIGHT @@@
-//
-**********************************************************************/
-
-#include "charinfo.h"
-#include "CharSetConstants.h"
-
-#include "NAWinNT.h"
-
-#if 0
-static const char* localeCharSet = 0;
-
-Int32 findLocaleCharSet()
-{
-  CharInfo::CharSet csEnum;
-
-  switch (PRIMARYLANGID(GetSystemDefaultLangID())) {
-  case LANG_ENGLISH:	csEnum = CharInfo::ISO88591; break;
-  case LANG_JAPANESE:	csEnum = CharInfo::SJIS; break;
-  default:		csEnum = CharInfo::UnknownCharSet;
-  }
-
-  localeCharSet = CharInfo::getCharSetName(csEnum);
-  return csEnum;
-}
-
-#endif

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/b952c0d5/core/sql/sqlci/CharSetConstants.h
----------------------------------------------------------------------
diff --git a/core/sql/sqlci/CharSetConstants.h b/core/sql/sqlci/CharSetConstants.h
deleted file mode 100644
index da2b4a7..0000000
--- a/core/sql/sqlci/CharSetConstants.h
+++ /dev/null
@@ -1,30 +0,0 @@
-/**********************************************************************
-// @@@ START COPYRIGHT @@@
-//
-// Licensed to the Apache Software Foundation (ASF) under one
-// or more contributor license agreements.  See the NOTICE file
-// distributed with this work for additional information
-// regarding copyright ownership.  The ASF licenses this file
-// to you under the Apache License, Version 2.0 (the
-// "License"); you may not use this file except in compliance
-// with the License.  You may obtain a copy of the License at
-//
-//   http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing,
-// software distributed under the License is distributed on an
-// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-// KIND, either express or implied.  See the License for the
-// specific language governing permissions and limitations
-// under the License.
-//
-// @@@ END COPYRIGHT @@@
-//
-**********************************************************************/
-
-#ifndef CHAR_SET_CONST_H
-#define CHAR_SET_CONST_H
-
-// int findLocaleCharSet();
-
-#endif

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/b952c0d5/core/sql/sqlci/Define.cpp
----------------------------------------------------------------------
diff --git a/core/sql/sqlci/Define.cpp b/core/sql/sqlci/Define.cpp
index ce30729..47e74d9 100644
--- a/core/sql/sqlci/Define.cpp
+++ b/core/sql/sqlci/Define.cpp
@@ -179,207 +179,3 @@ Int32 Envvar::reset()
 }
 
 
-
-//////////////////////////////////////////////////////////////////
-// class SetDefine
-//////////////////////////////////////////////////////////////////
-SetDefine::SetDefine(char * define_name_, Lng32 namelen_, 
-		     char * argument_, Lng32 arglen_,
-		     NABoolean alter)
-                 : SqlciCmd(SqlciCmd::SETDEFINE_TYPE, argument_, arglen_),
-		   alter_(alter)
-{
-  if (define_name_)
-    {
-      define_name = new char[namelen_+1];
-
-      for (size_t k=0; k < strlen(define_name_); k++)
-	{
-#pragma nowarn(1506)   // warning elimination 
-	  define_name[k] = toupper(define_name_[k]);
-#pragma warn(1506)  // warning elimination 
-	}
-      
-      define_name[strlen(define_name_)] = 0;
-      namelen = namelen_;
-    }
-  else
-    {
-      define_name = 0;
-      namelen = 0;
-    }
-}
-
-SetDefine::~SetDefine()
-{
-  if (define_name)
-    delete [] define_name;
-}
-
-
-short SetDefine::process(SqlciEnv * sqlci_env)
-{
-  Define * define_ = sqlci_env->get_definelist()->get(define_name);
-
-  if (alter_)
-    {
-      if (NOT define_)
-	{
-	  SqlciError(SQLCI_DEFINE_DOESNT_EXIST, (ErrorParam*)NULL); 
-	  return 0;
-	}
-
-      // reset this define
-#pragma nowarn(1506)   // warning elimination 
-      Reset r(Reset::DEFINE_, define_name, strlen(define_name));
-#pragma warn(1506)  // warning elimination 
-      r.process(sqlci_env);
-    }
-  else
-    {
-      // add define
-      if (define_)
-	{
-	  SqlciError(SQLCI_DEFINE_EXISTS, (ErrorParam*)NULL);
-	  //		     (new ErrorParam(define_name)));
-	  return 0;
-	}
-    }
-      
-  define_ = new Define(define_name, get_argument());
-  if (define_->set(sqlci_env))
-    {
-      // error case
-      SqlciError (SQLCI_DEFINE_ERROR, (ErrorParam*)NULL);
-    }
-
-  sqlci_env->get_definelist()->append(define_);
-
-  return 0;
-}
-
-
-/////////////////////////////////////////
-// class Define
-/////////////////////////////////////////
-Define::Define(const char * name_, const char * value_)
-{
-  if (name_)
-    {
-      name = new char[strlen(name_) + 1];
-      strcpy(name, name_);
-
-      defineNameInternal = new char[24];
-      str_pad(defineNameInternal, 24, ' ');
-#pragma nowarn(1506)   // warning elimination 
-      short len = MINOF(strlen(name), 24);
-#pragma warn(1506)  // warning elimination 
-      str_cpy_all(defineNameInternal, name, len);
-    }
-  else
-    name = 0;
-
-  if (value_)
-    {
-      value = new char[strlen(value_) + 1];
-      strcpy(value, value_);
-    }
-  else
-    value = 0;
-}
-
-Define::~Define()
-{
-  if (name)
-    delete [] name;
-
-  if (value)
-    delete [] value;
-
-  name = 0;
-  value = 0;
-}
-
-void Define::setName(const char * name_)
-{
-  if (name)
-    delete [] name;
-
-  name = new char[strlen(name_) + 1];
-  strcpy(name, name_);  
-} 
-
-void Define::setValue(const char * value_)
-{
-  if (value)
-    delete [] value;
-
-  value = new char[strlen(value_) + 1];
-  strcpy(value, value_);  
-} 
-
-short Define::contains(const char * value) const
-{
-  if (strcmp(name, value) == 0)
-    return -1;
-  else
-    return 0; 
-}
-  
-Int32 Define::set(SqlciEnv * sqlci_env)
-{
-  
-  return 0;
-}
-
-Int32 Define::reset(SqlciEnv * sqlci_env)
-{
-
-  return 0;
-}
-
-void Define::stripTrailingBlanks(unsigned char * value, short valueLen)
-{
-  Int32 i = valueLen - 1;
-  while ((i > 0) && (value[i] == ' '))
-    i--;
-  
-  value[i+1] = 0;
-
-}
-
-///////////////////////////////////////////////////////////////
-// If getNext is -1, returns values for the next define
-// following the one in defineName.
-// Otherwise returns values for defineName.
-//
-// returns: 0, if define found. 1, if no more define (EOD).
-//          -1, on error.
-///////////////////////////////////////////////////////////////
-short Define::getDefineInfo(unsigned char * defineName,
-			    unsigned char * className,
-			    unsigned char * attrName,
-			    unsigned char * attrValue,
-			    short getNext)
-{
-  return -1;
-
-}
-
-
-short Define::getDefaults(unsigned char * defaultSubvol)
-{
-  unsigned char defineName[24+1];
-  unsigned char className[16+1];
-  unsigned char attrName[16+1];
-  
-  str_pad((char *)defineName, 24, ' ');
-  str_cpy_all((char *)defineName, "=_DEFAULTS", str_len("=_DEFAULTS"));
-
-  short rc = getDefineInfo(defineName, className,
-			   attrName, defaultSubvol,
-			   FALSE /*get this define*/);
-  
-  
-  return 0;
-}

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/b952c0d5/core/sql/sqlci/Define.h
----------------------------------------------------------------------
diff --git a/core/sql/sqlci/Define.h b/core/sql/sqlci/Define.h
index 7327033..ffed844 100644
--- a/core/sql/sqlci/Define.h
+++ b/core/sql/sqlci/Define.h
@@ -64,46 +64,4 @@ public:
   Int32 reset();
 };
 
-class Define
-{
-  char * name;
-  char * value;
-  char * defineNameInternal;
-
-public:
-  Define(const char * name_, const char * value_);
-  ~Define();
-
-  const char * getName() const		{return name;};
-  void setName(const char * name_);
-
-  const char * getValue() const		{return value;};
-  void setValue(const char * value_);
-
-  short contains(const char * value) const;
-
-  Int32 set(SqlciEnv * sqlci_env);
-  Int32 reset(SqlciEnv * sqlci_env);
-
-  static void stripTrailingBlanks(unsigned char * value, short valueLen);
-
-  ///////////////////////////////////////////////////////////////
-  // If getNext is -1, returns values for the next define
-  // following the one in defineName.
-  // Otherwise returns values for defineName.
-  //
-  // returns: 0, if define found. 1, if no more define (EOD).
-  //          -1, on error.
-  //  Caller must allocated space for all params.
-  ///////////////////////////////////////////////////////////////
-  static short getDefineInfo(unsigned char * defineName,
-			     unsigned char * defineClass,
-			     unsigned char * defineAttr,
-			     unsigned char * attrValue,
-			     short getNext);
-
-  static short getDefaults(unsigned char * defaultSubvol);
-
-};
-
 #endif

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/b952c0d5/core/sql/sqlci/Formatter.cpp
----------------------------------------------------------------------
diff --git a/core/sql/sqlci/Formatter.cpp b/core/sql/sqlci/Formatter.cpp
index 6564a17..f15a379 100644
--- a/core/sql/sqlci/Formatter.cpp
+++ b/core/sql/sqlci/Formatter.cpp
@@ -396,7 +396,6 @@ Int32 Formatter::buffer_it(SqlciEnv * sqlci_env, char *data,
     convFlags |= CONV_LEFT_PAD;
     short retcode = convDoItMxcs(data,
 				 length,
-#pragma nowarn(1506)   // warning elimination 
 				 datatype,
 				 precision,
 				 scale,
@@ -406,7 +405,6 @@ Int32 Formatter::buffer_it(SqlciEnv * sqlci_env, char *data,
 				 0,  // targetPrecision
 				 tcs,
 				 convFlags);
-#pragma warn(1506)  // warning elimination 
   }
   break;
 
@@ -463,7 +461,6 @@ Int32 Formatter::buffer_it(SqlciEnv * sqlci_env, char *data,
     else
 	  retcode = convDoIt(data,
                              length,
-#pragma nowarn(1506)   // warning elimination 
                              datatype,
                              precision,
                              scale,
@@ -479,7 +476,6 @@ Int32 Formatter::buffer_it(SqlciEnv * sqlci_env, char *data,
                              CONV_UNKNOWN,
                              NULL, // conversion error flag
                              CONV_ALLOW_INVALID_CODE_VALUE);   
-#pragma warn(1506)  // warning elimination 
   }
   break;
 

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/b952c0d5/core/sql/sqlci/InputStmt.cpp
----------------------------------------------------------------------
diff --git a/core/sql/sqlci/InputStmt.cpp b/core/sql/sqlci/InputStmt.cpp
index 350dd4d..2738e37 100644
--- a/core/sql/sqlci/InputStmt.cpp
+++ b/core/sql/sqlci/InputStmt.cpp
@@ -249,9 +249,7 @@ Int32 InputStmt::getLine(char * input_str, FILE * nonstdin, Int32 first_line)
      {
        while ((a != '\n'&& a != '\t' && a != '-') && !feof(nonstdin))
        {
-#pragma nowarn(1506)   // warning elimination 
        	a = getc(nonstdin);
-#pragma warn(1506)  // warning elimination 
        }
       sqlci_env->resetPrevErrFlushInput();
       if (a == '\t' || a == '-')
@@ -259,9 +257,7 @@ Int32 InputStmt::getLine(char * input_str, FILE * nonstdin, Int32 first_line)
      }
 
      if (!skipGetc)
-#pragma nowarn(1506)   // warning elimination 
 	  	a = getc(nonstdin);
-#pragma warn(1506)  // warning elimination 
 
      skipGetc = 0;
 	  // if after a statement, there is no '\n'
@@ -606,23 +602,13 @@ Int32 InputStmt::readStmt(FILE * nonstdin, Int32 suppress_blank_line_output)
 	{
 	  Int32 eolSeenOrig = sqlci_env->eolSeenOnInput();
 
-	  if ((prompt && eolSeenOrig && !(sqlci_env->sqlciRWEnv()->isSelectInProgress()) && !(sqlci_env->isMXCSMode())) || (sqlci_env->prevErrFlushInput() && !nonstdin))
+	  if ((prompt && eolSeenOrig) || (sqlci_env->prevErrFlushInput() && !nonstdin))
 	  {
 
 	    cout << ">>";
 	    //cout << ">>" << endl;
 	  }
 
-	
-	  if (prompt && eolSeenOrig && sqlci_env->sqlciRWEnv()->isSelectInProgress())
-	  {
-		cout << "S>";
-	  }
-
-          if (prompt && eolSeenOrig && sqlci_env->isMXCSMode())
-          {
-              cout << "CS>";
-          }
 	  error = getLine(input_str, nonstdin, -1/*first line*/);
           sqlci_env->resetPrevErrFlushInput();
     // Let NSK ESC be equivalent of NT ^Z or F6, i.e. EOF
@@ -1046,9 +1032,7 @@ Int32 InputStmt::pack()
 		     // works on frags, not the packed string, so don't bother
 		     // converting the latter).
 		     char * frag = curr_fragment->fragment;
-#pragma nowarn(270)   // warning elimination 
 		     for (j = strlen(frag); j>0 && frag[j] != quote_seen; j--)
-#pragma warn(270)  // warning elimination 
 		       if (frag[j] == '\t')
 			 frag[j] = ' ';
 		    }
@@ -1107,9 +1091,7 @@ char * InputStmt::findEnd(char * s, size_t &quote_seen_pos)
 {
   char *orig = s;
   char quote_seen;
-#pragma nowarn(1506)   // warning elimination 
   for (quote_seen=quote_seen_pos=0; ; s++)
-#pragma warn(1506)  // warning elimination 
     switch (*s)
       {
       case '\'':
@@ -1120,9 +1102,7 @@ char * InputStmt::findEnd(char * s, size_t &quote_seen_pos)
 	    quote_seen_pos = s - orig + 1;	// +1: one-based position!
 	  }
 	else if (quote_seen == *s)
-#pragma nowarn(1506)   // warning elimination 
 	  quote_seen = quote_seen_pos = 0;
-#pragma warn(1506)  // warning elimination 
 	break;
       case ';':
 	if (!quote_seen)
@@ -1144,9 +1124,7 @@ void InputStmt::syntaxErrorOnMissingQuote(char * str)
   findEnd(str, quote_pos);
 
   // subtract one from quote_pos to convert 1-based offset to 0-based
-#pragma nowarn(1506)   // warning elimination 
   StoreSyntaxError(str, --quote_pos, sqlci_DA);
-#pragma warn(1506)  // warning elimination 
   sqlci_parser_syntax_error_cleanup(NULL,sqlci_env);
 }	// syntaxErrorOnMissingQuote
 
@@ -1252,9 +1230,7 @@ void InputStmt::logStmt(NABoolean noPrompt) const
       size_t fraglen = strlen(fragment->fragment);
       strncpy(&log_str[start], fragment->fragment, fraglen);
 
-#pragma nowarn(1506)   // warning elimination 
       sqlci_env->get_logfile()->Write(log_str, start + fraglen);
-#pragma warn(1506)  // warning elimination 
 
       delete [] log_str;
 
@@ -1359,9 +1335,7 @@ void InputStmt::processInsert()
 	  if (j-- == 0) break;
 	}
 
-#pragma nowarn(1506)   // warning elimination 
       str_cpy_all(&text[text_pos], &command[command_pos], command_len);
-#pragma warn(1506)  // warning elimination 
       command_pos += command_len;
 
       text_pos += 2 * command_len + 1;
@@ -1378,9 +1352,7 @@ void InputStmt::processReplace()
 
   if (command_len > 0)
     {
-#pragma nowarn(1506)   // warning elimination 
       str_cpy_all(&text[text_pos], &command[command_pos], command_len);
-#pragma warn(1506)  // warning elimination 
       command_pos += command_len;
 
       text_pos += command_len;
@@ -1422,12 +1394,8 @@ InputStmt::Option InputStmt::fix_string(const char * in_data,
 
   text = fixed_data;
   text_maxlen = strlen(in_data);
-#pragma nowarn(1506)   // warning elimination 
   str_pad(text, data_maxlen, ' ');
-#pragma warn(1506)  // warning elimination 
-#pragma nowarn(1506)   // warning elimination 
   str_cpy_all(text, in_data, strlen(in_data));
-#pragma warn(1506)  // warning elimination 
 
   char c;
   Option option;
@@ -1435,12 +1403,10 @@ InputStmt::Option InputStmt::fix_string(const char * in_data,
   cout << ">>" << in_data << endl;
   cout << "..";
 
-#pragma nowarn(1506)   // warning elimination
   if (cin.peek() != '\n')
      cin.get(command, data_maxlen, '\n');
   else
      command[0] = '\0';
-#pragma warn(1506)  // warning elimination
  
   if (cin.eof())
     {
@@ -1500,12 +1466,10 @@ InputStmt::Option InputStmt::fix_string(const char * in_data,
 	  text[text_maxlen] = ' ';
 
 	  cout << "..";
-#pragma nowarn(1506)   // warning elimination 
           if (cin.peek() != '\n')
              cin.get(command, data_maxlen, '\n');
           else
              command[0] = '\0';
-#pragma warn(1506)  // warning elimination 
 	  if (cin.eof())
 	    {
 	      CLEAR_STDIN_EOF;
@@ -1605,9 +1569,7 @@ Int32 InputStmt::sectionMatches(const char * section_name)
   char tmp[10];
   size_t i = 0;
   for (i=0; i < 8; i++)
-#pragma nowarn(1506)   // warning elimination 
     tmp[i] = toupper(str[i]);
-#pragma warn(1506)  // warning elimination 
   tmp[i] = '\0';
   tmp[0] = '?';				// #SECTION -> ?SECTION
   if (strncmp(tmp, "?SECTION", 8) != 0)
@@ -1723,7 +1685,6 @@ static NABoolean isIfdefStmtTransition(NAString &nsUpTrim,  // toUpper+trimmed
 // The caller is responsible for ignoring all input between stmts on which
 // this function returns -1.
 //////////////////////////////////////////
-#pragma nowarn(770)   // warning elimination 
 Int32 InputStmt::isIgnoreStmt(const char *str, NABoolean *ignoreJustThis)
 {
   if (!str) {
@@ -1784,7 +1745,6 @@ Int32 InputStmt::isIgnoreStmt(const char *str, NABoolean *ignoreJustThis)
 
   return (ignoreAll ? -1 : 0);
 }       // isIgnoreStmt
-#pragma warn(770)  // warning elimination 
 
 //////////////////////////////////////////
 //  Block statement handler. 

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/b952c0d5/core/sql/sqlci/Log.cpp
----------------------------------------------------------------------
diff --git a/core/sql/sqlci/Log.cpp b/core/sql/sqlci/Log.cpp
index c1d89f6..a533a8d 100644
--- a/core/sql/sqlci/Log.cpp
+++ b/core/sql/sqlci/Log.cpp
@@ -42,7 +42,6 @@
 #include <iostream>
 #include <errno.h>  
 #include "Platform.h"
-#include "RWInterface.h"
 
 #include "SqlciCmd.h"
 #include "SqlciError.h"
@@ -89,13 +88,9 @@ void Logfile::Open(char * name_, open_mode mode)
     }
     if (desensitize)
       if (desensitize == 'U')
-#pragma nowarn(1506)   // warning elimination 
 	{for (char *n=name; *n; n++) *n = toupper(*n);}
-#pragma warn(1506)  // warning elimination 
       else
-#pragma nowarn(1506)   // warning elimination 
 	{for (char *n=name; *n; n++) *n = tolower(*n);}
-#pragma warn(1506)  // warning elimination 
   #endif
   
   if (mode == CLEAR_)
@@ -169,9 +164,7 @@ short Logfile::Write(const char * buffer, Lng32 buflen)
 	    buflen--;
 	  }
 
-#pragma nowarn(1506)   // warning elimination 
       retcode = fwrite(buffer, buflen, 1, logfile_stream);
-#pragma warn(1506)  // warning elimination 
       fflush (logfile_stream);
       if (!retcode)
 	return -1;
@@ -217,9 +210,7 @@ short Logfile::WriteAll(const char * buffer, Lng32 buflen, Int32 useCout)
   if (IsOpen())
   {
     if (useCout)
-#pragma nowarn(1506)   // warning elimination 
       return Write (buffer, strlen(buffer));
-#pragma warn(1506)  // warning elimination 
     else
       return Write (buffer, buflen);
   }
@@ -233,16 +224,12 @@ short Logfile::WriteAll(const WCHAR * mbBuf, Lng32 buflen)
 
 short Logfile::WriteAll(const char * buffer)
 {
-#pragma nowarn(1506)   // warning elimination 
    return WriteAll (buffer, strlen(buffer));
-#pragma warn(1506)  // warning elimination 
 }
 
 short Logfile::WriteAllWithoutEOL(const char * buffer)
 {
-#pragma nowarn(1506)   // warning elimination 
    Int32 buflen = strlen(buffer);
-#pragma warn(1506)  // warning elimination 
    Int32 retcode ;
    
    if (NOT noDisplay())
@@ -258,13 +245,9 @@ short Logfile::WriteAllWithoutEOL(const char * buffer)
 
 	 if (buflen > 0)
 	 {
-#pragma nowarn(1506)   // warning elimination 
 	    retcode = fwrite(buffer, buflen, 1, logfile_stream);
-#pragma warn(1506)  // warning elimination 
             fflush(logfile_stream);
-#pragma nowarn(1506)   // warning elimination 
 	    return retcode;
-#pragma warn(1506)  // warning elimination 
 	 }
 	 else
 	    return -1;
@@ -309,18 +292,6 @@ short Log::process(SqlciEnv * sqlci_env)
 	    sqlci_env->get_logfile()->Close();
 	
 	sqlci_env->get_logfile()->Open(get_argument(), Logfile::CLEAR_);
-        // Check to see if report mode is on and if it is then call the report
-        // writer method to let them know that we have started a LOG command.
-        if (sqlci_env->isReportWriterMode())
-        {
-// 64-bit: no more report writer, return -1
-//          long retcode = RW_MXCI_sendOutputDevice (sqlci_env->sqlciRWEnv()->rwEnv(), sqlci_env, LOG_FILE);
-          Lng32 retcode = -1;
-          if (retcode) // retcode == -1
-          {
-            SqlciError (SQLCI_RW_INVALID_OUTPUT_DEVICE,(ErrorParam *) 0 );
-          }
-        }
 
         if (!sqlci_env->get_logfile()->IsOpen())
 	{
@@ -341,16 +312,6 @@ short Log::process(SqlciEnv * sqlci_env)
 	    sqlci_env->get_logfile()->Close();
 	
 	sqlci_env->get_logfile()->Open(get_argument(), Logfile::APPEND_);
-        if (sqlci_env->isReportWriterMode())
-        {
-// 64-bit: no more report writer, return -1
-//          long retcode = RW_MXCI_sendOutputDevice (sqlci_env->sqlciRWEnv()->rwEnv(), sqlci_env, LOG_FILE);
-          Lng32 retcode = -1;
-          if (retcode) // retcode == -1
-          {
-            SqlciError (SQLCI_RW_INVALID_OUTPUT_DEVICE,(ErrorParam *) 0 );
-          }
-        }
 
         if (!sqlci_env->get_logfile()->IsOpen())
 	{
@@ -369,18 +330,6 @@ short Log::process(SqlciEnv * sqlci_env)
       {
 	if (sqlci_env->get_logfile()->IsOpen())
 	  sqlci_env->get_logfile()->Close();
-
-        if (sqlci_env->isReportWriterMode())
-        {
-// 64-bit: no more report writer, return -1
-//          long retcode = RW_MXCI_sendOutputDevice (sqlci_env->sqlciRWEnv()->rwEnv(), sqlci_env, SCREEN);
-          Lng32 retcode = -1;
-          if (retcode) // retcode == -1
-          {
-            SqlciError (SQLCI_RW_INVALID_OUTPUT_DEVICE,(ErrorParam *) 0 );
-          }
-        }
-
       }
       break;
       

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/b952c0d5/core/sql/sqlci/MsgCat.cpp
----------------------------------------------------------------------
diff --git a/core/sql/sqlci/MsgCat.cpp b/core/sql/sqlci/MsgCat.cpp
deleted file mode 100644
index 748c6e1..0000000
--- a/core/sql/sqlci/MsgCat.cpp
+++ /dev/null
@@ -1,76 +0,0 @@
-/* -*-C++-*-
-
- *****************************************************************************
-
- *
-
- * File:         MsgCat.C
-
- * RCS:          $Id: msgcat.cpp,v 1.4 2008/02/14 01:11:46  Exp $
-
- * Description:  
-
- *   Message Catalogs for Error messages            
-
- *               
-
-
- * Created:      2/15/96
-
- * Modified:     $ $Date: 2008/02/14 01:11:46 $ (GMT)
-
- * Language:     C++
-
- * Status:       $State: Exp $
-
- *
-
- *
-
-// @@@ START COPYRIGHT @@@
-//
-// Licensed to the Apache Software Foundation (ASF) under one
-// or more contributor license agreements.  See the NOTICE file
-// distributed with this work for additional information
-// regarding copyright ownership.  The ASF licenses this file
-// to you under the Apache License, Version 2.0 (the
-// "License"); you may not use this file except in compliance
-// with the License.  You may obtain a copy of the License at
-//
-//   http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing,
-// software distributed under the License is distributed on an
-// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-// KIND, either express or implied.  See the License for the
-// specific language governing permissions and limitations
-// under the License.
-//
-// @@@ END COPYRIGHT @@@
-
- *
-
- *
-
- *****************************************************************************
-
- */
-
-
-
-
-
-#include <stdio.h>
-
-#include <string.h>
-
-#include "Platform.h"
-
-#include "ErrorMessage.h"
-
-
-
-
-// use POSIX catxxx
-
-

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/b952c0d5/core/sql/sqlci/MsgCat.h
----------------------------------------------------------------------
diff --git a/core/sql/sqlci/MsgCat.h b/core/sql/sqlci/MsgCat.h
deleted file mode 100644
index 9aaf66e..0000000
--- a/core/sql/sqlci/MsgCat.h
+++ /dev/null
@@ -1,82 +0,0 @@
-#ifndef MSGCAT_H
-
-#define MSGCAT_H
-
-/* -*-C++-*-
-
- *****************************************************************************
-
- *
-
- * File:         MsgCat.h
-
- * RCS:          $Id: MsgCat.h,v 1.2 2008/02/14 01:11:46  Exp $
-
- * Description:  
-
- *  Message Catalogs for Error messages             
-
- *               
-
-
- * Created:      2/15/96
-
- * Modified:     $ $Date: 2008/02/14 01:11:46 $ (GMT)
-
- * Language:     C++
-
- * Status:       $State: Exp $
-
- *
-
- *
-
-// @@@ START COPYRIGHT @@@
-//
-// Licensed to the Apache Software Foundation (ASF) under one
-// or more contributor license agreements.  See the NOTICE file
-// distributed with this work for additional information
-// regarding copyright ownership.  The ASF licenses this file
-// to you under the Apache License, Version 2.0 (the
-// "License"); you may not use this file except in compliance
-// with the License.  You may obtain a copy of the License at
-//
-//   http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing,
-// software distributed under the License is distributed on an
-// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-// KIND, either express or implied.  See the License for the
-// specific language governing permissions and limitations
-// under the License.
-//
-// @@@ END COPYRIGHT @@@
-
- *
-
- *
-
- *****************************************************************************
-
- */
-
-
-
-
-
-#include "Platform.h"
-
-
-
-
-  #include <stdio.h>
-
-  #include <nl_types.h>
-
-
-
-
-
-
-#endif /* MSGCAT_H */
-

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/b952c0d5/core/sql/sqlci/MxciEHCallBack.cpp
----------------------------------------------------------------------
diff --git a/core/sql/sqlci/MxciEHCallBack.cpp b/core/sql/sqlci/MxciEHCallBack.cpp
deleted file mode 100644
index ae9fe11..0000000
--- a/core/sql/sqlci/MxciEHCallBack.cpp
+++ /dev/null
@@ -1,53 +0,0 @@
-/**********************************************************************
-// @@@ START COPYRIGHT @@@
-//
-// Licensed to the Apache Software Foundation (ASF) under one
-// or more contributor license agreements.  See the NOTICE file
-// distributed with this work for additional information
-// regarding copyright ownership.  The ASF licenses this file
-// to you under the Apache License, Version 2.0 (the
-// "License"); you may not use this file except in compliance
-// with the License.  You may obtain a copy of the License at
-//
-//   http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing,
-// software distributed under the License is distributed on an
-// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-// KIND, either express or implied.  See the License for the
-// specific language governing permissions and limitations
-// under the License.
-//
-// @@@ END COPYRIGHT @@@
-//
-**********************************************************************/
-/* -*-C++-*-
- *****************************************************************************
- *
- * File:         CmpEHCallBack.cpp
- * Description:  Compiler Call back functions for exception handling
- *               
- *               
- * Created:      5/4/02
- * Language:     C++
- *
- *
- *
- *
- *****************************************************************************
- */
-#include "MxciEHCallBack.h"
-
-MxciEHCallBack GMxciEHCallBack;
-
-void MxciEHCallBack::doFFDC() {}
-
-void MxciEHCallBack::dumpDiags(){}
-
-
-
-
-
-
-
-

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/b952c0d5/core/sql/sqlci/MxciEHCallBack.h
----------------------------------------------------------------------
diff --git a/core/sql/sqlci/MxciEHCallBack.h b/core/sql/sqlci/MxciEHCallBack.h
deleted file mode 100644
index d44eeb7..0000000
--- a/core/sql/sqlci/MxciEHCallBack.h
+++ /dev/null
@@ -1,56 +0,0 @@
-/**********************************************************************
-// @@@ START COPYRIGHT @@@
-//
-// Licensed to the Apache Software Foundation (ASF) under one
-// or more contributor license agreements.  See the NOTICE file
-// distributed with this work for additional information
-// regarding copyright ownership.  The ASF licenses this file
-// to you under the Apache License, Version 2.0 (the
-// "License"); you may not use this file except in compliance
-// with the License.  You may obtain a copy of the License at
-//
-//   http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing,
-// software distributed under the License is distributed on an
-// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-// KIND, either express or implied.  See the License for the
-// specific language governing permissions and limitations
-// under the License.
-//
-// @@@ END COPYRIGHT @@@
-//
-**********************************************************************/
-#ifndef _MXCI_EH_CALL_BACK_H_
-#define _MXCI_EH_CALL_BACK_H_
-/* -*-C++-*-
- *****************************************************************************
- *
- * File:         MxciEHCallBack.cpp
- * Description:  Mxci Call back functions for exception handling
- *               
- *               
- * Created:      5/4/02
- * Language:     C++
- *
- *
- *
- *
- *****************************************************************************
- */
-#include "EHCallBack.h"
-
-class MxciEHCallBack : public EHCallBack {
-public:
-  virtual void doFFDC();
-  virtual void dumpDiags();
-};
-
-extern MxciEHCallBack GMxciEHCallBack;
-
-#endif
-
-
-
-
-

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/b952c0d5/core/sql/sqlci/Obey.cpp
----------------------------------------------------------------------
diff --git a/core/sql/sqlci/Obey.cpp b/core/sql/sqlci/Obey.cpp
index a83ad61..45919c7 100644
--- a/core/sql/sqlci/Obey.cpp
+++ b/core/sql/sqlci/Obey.cpp
@@ -90,13 +90,9 @@ short Obey::process(SqlciEnv * sqlci_env)
 	    for (Int32 i = 0; i < 2 && !file_stream; i++, U = !U)
 	      {
 		if (U)
-#pragma nowarn(1506)   // warning elimination 
 		  {for (char *n=name; *n; n++) *n = toupper(*n);}
-#pragma warn(1506)  // warning elimination 
 		else
-#pragma nowarn(1506)   // warning elimination 
 		  {for (char *n=name; *n; n++) *n = tolower(*n);}
-#pragma warn(1506)  // warning elimination 
 		file_stream = fopen(name, "r");
 	      }
 
@@ -104,19 +100,13 @@ short Obey::process(SqlciEnv * sqlci_env)
 	      {
 		// We've tried the original name aBc,
 		// and ABC and abc, so as a last-ditch effort we try Abc.
-#pragma nowarn(1506)   // warning elimination 
 		{for (char *n=name; *n; n++) *n = tolower(*n);}
-#pragma warn(1506)  // warning elimination 
-#pragma nowarn(1506)   // warning elimination 
 		*name = toupper(*name);
-#pragma warn(1506)  // warning elimination 
 		file_stream = fopen(name, "r");
 
 		// If all failed, ensure name all upper for prettier error msg
 		if (!file_stream)
-#pragma nowarn(1506)   // warning elimination 
 		  {for (char *n=name; *n; n++) *n = toupper(*n);}
-#pragma warn(1506)  // warning elimination 
 	      }
 	  }
 	if (!file_stream)
@@ -218,9 +208,7 @@ short Obey::process(SqlciEnv * sqlci_env)
 
 	case PROCESS_STMT:
 	  {
-#pragma nowarn(1506)   // warning elimination 
 	    short section_match = input_stmt->sectionMatches();
-#pragma warn(1506)  // warning elimination 
 
 	    if (!section_name && section_match)
 	      {
@@ -257,11 +245,9 @@ short Obey::process(SqlciEnv * sqlci_env)
 		  {
 		    if (!read_error || read_error == -4)
                       {
-#pragma nowarn(1506)   // warning elimination 
                         retcode = sqlci_parser(input_stmt->getPackedString(),
                                                input_stmt->getPackedString(),
                                                &sqlci_node,sqlci_env);
-#pragma warn(1506)  // warning elimination 
                         if (sqlci_node)
                           {
                             retcode = sqlci_node->process(sqlci_env);

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/b952c0d5/core/sql/sqlci/Param.cpp
----------------------------------------------------------------------
diff --git a/core/sql/sqlci/Param.cpp b/core/sql/sqlci/Param.cpp
index 835eceb..be09697 100644
--- a/core/sql/sqlci/Param.cpp
+++ b/core/sql/sqlci/Param.cpp
@@ -372,7 +372,6 @@ short Param::convertValue(SqlciEnv * sqlci_env, short targetType,
       converted_value = new char[targetLen];
 
 
-#pragma nowarn(1506)   // warning elimination 
     ex_expr::exp_return_type ok;
     CharInfo::CharSet TCS = sqlci_env->getTerminalCharset();
     CharInfo::CharSet ISOMAPCS = sqlci_env->getIsoMappingCharset();
@@ -429,7 +428,6 @@ short Param::convertValue(SqlciEnv * sqlci_env, short targetType,
       // desctructor.
       return SQL_Error; // error case
     }
-#pragma warn(1506)  // warning elimination
     
   };
   break;
@@ -444,7 +442,6 @@ short Param::convertValue(SqlciEnv * sqlci_env, short targetType,
     UInt32 flags = 0;
     flags |= CONV_NO_HADOOP_DATE_FIX;
 
-#pragma nowarn(1506)   // warning elimination 
     ex_expr::exp_return_type ok = convDoIt(value,
 					   sourceLen, 
 					   sourceType,
@@ -467,7 +464,6 @@ short Param::convertValue(SqlciEnv * sqlci_env, short targetType,
       {
 	return SQL_Error; // error case
       }
-#pragma warn(1506)  // warning elimination
   };
   break;
 
@@ -488,7 +484,6 @@ short Param::convertValue(SqlciEnv * sqlci_env, short targetType,
     // convert target back to string.
     converted_value = new char[targetLen];
     Lng32 convFlags = CONV_ALLOW_SIGN_IN_INTERVAL;
-#pragma nowarn(1506)   // warning elimination 
     short ok = 
       convDoItMxcs(value,
 		   sourceLen, 
@@ -509,7 +504,6 @@ short Param::convertValue(SqlciEnv * sqlci_env, short targetType,
       // desctructor.
       return SQL_Error; // error case
     }
-#pragma warn(1506)  // warning elimination
   };
   break;
 
@@ -517,7 +511,6 @@ short Param::convertValue(SqlciEnv * sqlci_env, short targetType,
   case REC_NUM_BIG_SIGNED:
   {
     converted_value = new char[targetLen];
-#pragma nowarn(1506)   // warning elimination 
     short ok = 
       convDoItMxcs(value,
 		   sourceLen, 
@@ -538,7 +531,6 @@ short Param::convertValue(SqlciEnv * sqlci_env, short targetType,
       // desctructor.
       return SQL_Error; // error case
     }
-#pragma warn(1506)  // warning elimination
     
   };
   break;

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/b952c0d5/core/sql/sqlci/Prepare.cpp
----------------------------------------------------------------------
diff --git a/core/sql/sqlci/Prepare.cpp b/core/sql/sqlci/Prepare.cpp
index 6d0eb5d..c796a62 100644
--- a/core/sql/sqlci/Prepare.cpp
+++ b/core/sql/sqlci/Prepare.cpp
@@ -137,9 +137,7 @@ PrepStmt::PrepStmt(const char * stmt_name_, dml_type type_)
   stmt_name = new char[strlen(stmt_name_) + 1];
   strcpy(stmt_name, stmt_name_);
 
-#pragma nowarn(1506)   // warning elimination 
   stmt_name_len = strlen(stmt_name);
-#pragma warn(1506)  // warning elimination 
  
   stmt_str = 0;
   sql_src = 0;
@@ -228,9 +226,7 @@ void PrepStmt::set(const char * str,
       strcpy(stmt_str, str);
     }
 
-#pragma nowarn(1506)   // warning elimination 
   stmt_str_len = strlen(str);
-#pragma warn(1506)  // warning elimination 
   
   sql_src = sql_src_;
   stmt = stmt_;
@@ -244,11 +240,8 @@ void PrepStmt::set(const char * str,
 
 short PrepStmt::contains(const char * value) const
 {
-#pragma warning (disable : 4018)   //warning elimination
-// 3/25/97: need rework in the future on strlen(value).
   if ( stmt_name_len != strlen(value) )
     return 0;
-#pragma warning (default : 4018)   //warning elimination
 
   if (str_cmp(stmt_name, value, stmt_name_len) == 0)
     return -1;
@@ -267,9 +260,7 @@ CursorStmt::CursorStmt(char * cursorName,
 {
   cursorName_ = new char[strlen(cursorName) + 1];
   strcpy(cursorName_, cursorName);
-#pragma nowarn(1506)   // warning elimination 
   cursorNameLen_ = strlen(cursorName_);
-#pragma warn(1506)  // warning elimination 
 }
 
 CursorStmt::~CursorStmt()
@@ -282,10 +273,8 @@ CursorStmt::~CursorStmt()
 
 short CursorStmt::contains(const char * value) const
 {
-#pragma warning (disable : 4018)   //warning elimination
   if ( cursorNameLen_ != strlen(value) )
     return 0;
-#pragma warning (default : 4018)   //warning elimination
 
   if (str_cmp(cursorName_, value, cursorNameLen_) == 0)
     return -1;

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/b952c0d5/core/sql/sqlci/RWInterface.cpp
----------------------------------------------------------------------
diff --git a/core/sql/sqlci/RWInterface.cpp b/core/sql/sqlci/RWInterface.cpp
deleted file mode 100644
index b75d40f..0000000
--- a/core/sql/sqlci/RWInterface.cpp
+++ /dev/null
@@ -1,119 +0,0 @@
-/**********************************************************************
-// @@@ START COPYRIGHT @@@
-//
-// Licensed to the Apache Software Foundation (ASF) under one
-// or more contributor license agreements.  See the NOTICE file
-// distributed with this work for additional information
-// regarding copyright ownership.  The ASF licenses this file
-// to you under the Apache License, Version 2.0 (the
-// "License"); you may not use this file except in compliance
-// with the License.  You may obtain a copy of the License at
-//
-//   http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing,
-// software distributed under the License is distributed on an
-// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-// KIND, either express or implied.  See the License for the
-// specific language governing permissions and limitations
-// under the License.
-//
-// @@@ END COPYRIGHT @@@
-//
-**********************************************************************/
-/* -*-C++-*-
- *****************************************************************************
- *
- * File:         RWInterface.cpp
- * Description:  File which has all the function declarations for RWInterface.h
- *               file.
- * Created:      6/11/2003
- * Language:     C++
- *
- *
- *
- *
- *****************************************************************************
- */
-#include <stdlib.h>
-#include <string.h>
-#include <stdio.h>
-#include "RWInterface.h"
-#include "exp_clause_derived.h"
-
-
-Lng32 MXCI_RW_getMaxColumns (void *SqlciEnv, Lng32 &max, ErrorValue* &e)
-{ 
-	return 0;
-}
-
-Lng32 MXCI_RW_getColInfo (void *SqlciEnv, Lng32 column, 
-                           AttributeDetails* &entry, ErrorValue* &e)
-{
-	return 0;
-}
-
-Lng32 MXCI_RW_getColAddr (void *SqlciEnv, Lng32 column, char *input_row, 
-                          Lng32 len, char* &ptr, ErrorValue* &e)
-{ 
-	return 0;
-}
-
-Lng32 MXCI_RW_convDoIt (void *SqlciEnv, char* srcPtr, AttributeDetails* srcEntry, char *tgtPtr, AttributeDetails* tgtEntry, ErrorValue* &e)
-{
-    return 0;
-}
-
-Lng32 MXCI_RW_allocateHeap (void* SqlciEnv, Lng32 len, char* &ptr)
-{
-  void *p = SqlciEnv->rwHeap()->allocateMemory(len, TRUE);
-  if (p)
-  {
-    ptr = (char *)p;
-    return SUCCESS;
-  }
-  else
-    return ERROR;
-}
-
-Lng32 MXCI_RW_deallocateHeap (void* SqlciEnv, Lng32 len, char* ptr)
-{
-  if (len != 0)
-  {
-    SqlciEnv->rwHeap()->deallocateMemory((void*)ptr);
-    return SUCCESS;
-  }
-  else
-    return ERROR;
-}
-
-Lng32 MXCI_RW_getOutputDevice (void* SqlciEnv, OutputDevice &device,
-                                ErrorValue* &e)
-{
-   if (SqlciEnv->get_logfile()->IsOpen())
-     device = LOG_FILE;
-   else
-     device = SCREEN;
-}
-
-	
-}
-
-Lng32 MXCI_RW_convertToDateFormat (void *SqlciEnv, char* srcPtr, AttributeDetails* srcEntry, char *tgtPtr, AttributeDetails* tgtEntry,  DateTimeFormat format, 
-ErrorValue* &e)
-{
-	return 0;
-}
-
-Lng32 MXCI_RW_unicodeConvertToUpper(void *SqlciEnv, char *input_char, Lng32 num_of_input_bytes, char *output_char, Lng32& num_of_output_chars, ErrorValue* &e)
-{
-	return 0;
-}
-
-
-Lng32 MXCI_RW_unicodeConvertToLower(void *SqlciEnv, char *input_wchar, Lng32 num_of_input_bytes, char *output_char, Lng32& num_of_output_chars, ErrorValue* &e)
-{
-	return 0;
-}
-
-

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/b952c0d5/core/sql/sqlci/RWInterface.h
----------------------------------------------------------------------
diff --git a/core/sql/sqlci/RWInterface.h b/core/sql/sqlci/RWInterface.h
deleted file mode 100644
index a9c460b..0000000
--- a/core/sql/sqlci/RWInterface.h
+++ /dev/null
@@ -1,155 +0,0 @@
-/**********************************************************************
-// @@@ START COPYRIGHT @@@
-//
-// Licensed to the Apache Software Foundation (ASF) under one
-// or more contributor license agreements.  See the NOTICE file
-// distributed with this work for additional information
-// regarding copyright ownership.  The ASF licenses this file
-// to you under the Apache License, Version 2.0 (the
-// "License"); you may not use this file except in compliance
-// with the License.  You may obtain a copy of the License at
-//
-//   http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing,
-// software distributed under the License is distributed on an
-// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-// KIND, either express or implied.  See the License for the
-// specific language governing permissions and limitations
-// under the License.
-//
-// @@@ END COPYRIGHT @@@
-//
-**********************************************************************/
-#ifndef _RWINTERFACE_H_
-#define _RWINTERFACE_H_
-
-// To use the values of SQL datatypes  _SQLDT_  defined in sqlcli.h
-#include "sqlcli.h"
-
-/* These are the standard values we use while returning status for all functions
-*/
-
-enum RetStatus { 
-	ERR = -1, 
-	SUCCESS, 
-	DONE, 
-	WARNING, 
-	SEND_QUERY, 
-	SEND_INPUT_ROW, 
-	GET_OUTPUT_ROW,
-	RESET_LIST,
-	GET_ERROR_INFO};
-
-/*These are the values sent by RW_MXCI_sendSelectStatus to indicate 
- the LIST functions status. */
-
-
-enum SelectStatus {
-	SELECT_STARTED,
-	SELECT_ENDED,
-	SELECT_ERROR,
-	SELECT_CANCELLED,
-	LIST_FIRST_STARTED,
-	LIST_NEXT_STARTED,
-	LIST_ALL_STARTED,
-	LIST_ENDED };
-
-/* These are the values used by MXCI_RW_getOutputDevice for the 
- different types of output devices. */
-
-enum OutputDevice {
-	LOG_FILE,
- 	SCREEN,
-	SPOOLER,
-	OUT_FILE };
-
-enum DateTimeFormat {
-	DEFAULT,
-	USA,
-	EUROPEAN };
-
-typedef struct {
-	Int32 errorCode_; 
-	char *charparam1_;  
-	char *charparam2_;
-	char *charparam3_;
-	Lng32 intparam1_;
-	Lng32 intparam2_;
-	Lng32 intparam3_;
-} ErrorValue;
-
-
-typedef struct {
-	Lng32 dataType_;		// Datatype of the column value.
-        Lng32 displayLen_;       // Number of characters needed to display string representation of datatype.
-	Lng32 length_;		// Length of the datatype.
-	Lng32 dateTimeCode_;	// DateTimeCode.	
-	Lng32 nullable_;		// Is it a nullable value or not.
-	char *charSet_;		// The character set of the column.
-	Lng32 precision_;	// Varies for individual datatypes.
-	Lng32 leadPrecision_;    // Varies for individual datatypes.
-	Lng32 scale_;		// Varies for individual datatypes.
-	Lng32 collation_;	// Default collation.
-	char *heading_;		// Heading name.
-	Lng32 headingLen_;	// length of the heading.
-	char *output_;    	// Column name for output.
-	Lng32 outputLen_;   	// length of the column.
-        char *tableName_;       // Table Name.
-        Lng32 tableLen_;         // Table name length
-
-} AttributeDetails;
-
-/* function declarations implemented in Report Writer 
-   and called by MXCI.
-*/
-Lng32 RW_MXCI_sendQuery (void* &RWEnv, void *SqlciEnv, char *query, Lng32 len);
-
-Lng32 RW_MXCI_sendInputRow (void* &RWEnv, void* SqlciEnv, char *input_row, Lng32 len);
-
-Lng32 RW_MXCI_getOutputRow (void* &RWEnv, void *SqlciEnv, char* &output_row, Lng32 &len);
-
-Lng32 RW_MXCI_sendSelectStatus (void* &RWEnv, void *SqlciEnv, Lng32 num_rows, SelectStatus status);
-
-Lng32 RW_MXCI_getErrorInfo (void* &RWEnv, void *SqlciEnv, ErrorValue *e);
-
-Lng32 RW_MXCI_Constructor (void* &RWEnv, void *SqlciEnv) ;
-
-Lng32 RW_MXCI_Destructor (void* &RWEnv, void *SqlciEnv) ;
-
-Lng32 RW_MXCI_handleBreak (void* &RWEnv, void *SqlciEnv);
-
-Lng32 RW_MXCI_sendOutputDevice (void* &RWEnv, void *SqlciEnv, OutputDevice device);
-
-
-/* function declarations implemented in MXCI and called 
-   by ReportWriter.
-*/
-Lng32 MXCI_RW_getMaxColumns (void *SqlciEnv, Lng32 &max, ErrorValue* &e);
-
-Lng32 MXCI_RW_getColInfo (void *SqlciEnv, Lng32 column, 
-                           AttributeDetails* &entry, ErrorValue* &e);
-
-Lng32 MXCI_RW_getColAddr (void *SqlciEnv, Lng32 column, char *input_row, 
-                          Lng32 len, char* &ptr, ErrorValue* &e);
-
-Lng32 MXCI_RW_convDoIt (void *SqlciEnv, char* srcPtr, AttributeDetails* srcEntry,
-char *tgtPtr, AttributeDetails* tgtEntry, short formatting, ErrorValue* &e);
-
-Lng32 MXCI_RW_allocateHeap (void* SqlciEnv, Lng32 len, char* &ptr);
-
-Lng32 MXCI_RW_deallocateHeap (void* SqlciEnv, Lng32 len, char* ptr);
-
-Lng32 MXCI_RW_convertToDateFormat (void*SqlciEnv, char* srcPtr, AttributeDetails* srcEntry,
-char *tgtPtr, AttributeDetails* tgtEntry, DateTimeFormat format, ErrorValue* &e);
-
-Lng32 MXCI_RW_unicodeConvertToUpper(void *SqlciEnv, char *input_char, Lng32 num_of_input_bytes,
-     char *output_char, Lng32& num_of_output_chars, ErrorValue* &e);
-
-
-Lng32 MXCI_RW_unicodeConvertToLower(void *SqlciEnv, char *input_char, Lng32 num_of_input_bytes,
-    char *output_char, Lng32& num_of_output_chars, ErrorValue* &e);
-
-
-
-#endif // _RWINTERFACE_H_

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/b952c0d5/core/sql/sqlci/ShellCmd.h
----------------------------------------------------------------------
diff --git a/core/sql/sqlci/ShellCmd.h b/core/sql/sqlci/ShellCmd.h
index ad63ebe..2c1f8e2 100644
--- a/core/sql/sqlci/ShellCmd.h
+++ b/core/sql/sqlci/ShellCmd.h
@@ -60,13 +60,6 @@ public:
   ShellCmd(const shell_cmd_type cmd_type_, char * argument_);
   ~ShellCmd();
   inline char * get_argument(){return argument;};
-  // overloaded function from SqlciNode.  All the Shell
-  // commands are not allowed in SIP mode.  So this
-  // will retunr FALSE at the base class ShellCmd level
-  // instead of overloading the function at Chdir and Ls level.
-  NABoolean isAllowedInSIP() { return FALSE; }
-  NABoolean isAllowedInRWMode() { return TRUE; }
-  NABoolean isAllowedInCSMode() { return TRUE; }
 };
 
 class Chdir : public ShellCmd {

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/b952c0d5/core/sql/sqlci/SqlCmd.cpp
----------------------------------------------------------------------
diff --git a/core/sql/sqlci/SqlCmd.cpp b/core/sql/sqlci/SqlCmd.cpp
index 6c5b353..3972c4f 100644
--- a/core/sql/sqlci/SqlCmd.cpp
+++ b/core/sql/sqlci/SqlCmd.cpp
@@ -451,10 +451,8 @@ void handleLocalError(ComDiagsArea &diags, SqlciEnv *sqlci_env)
   lastLineWasABlank = TRUE;
 
   ostringstream errMsg;
-#pragma nowarn(1506)   // warning elimination 
   NADumpDiags(errMsg, &diags, TRUE/*newline*/, 0, NULL, log->isVerbose(),
               sqlci_env->getTerminalCharset());
-#pragma warn(1506)  // warning elimination 
 
   errMsg << ends;
 
@@ -465,9 +463,7 @@ static char * upshiftStr(char * inStr, char * outStr, UInt32 len)
 {
   for (UInt32 i = 0; i < len; i++)
     {
-#pragma nowarn(1506)
       outStr[i] = toupper(inStr[i]);
-#pragma warn(1506)
     }
 
   return outStr;
@@ -883,9 +879,7 @@ short SqlCmd::do_prepare(SqlciEnv * sqlci_env,
   stmt->version = SQLCLI_CURRENT_VERSION;
   stmt->name_mode = stmt_name;
   char * identifier = new char[strlen(stmtName) + 1];
-#pragma nowarn(1506)   // warning elimination 
   stmt->identifier_len = strlen(stmtName);
-#pragma warn(1506)  // warning elimination 
   str_cpy_all(identifier,stmtName, stmt->identifier_len);
   identifier[stmt->identifier_len] = 0;
   stmt->identifier = identifier;
@@ -955,9 +949,7 @@ short SqlCmd::do_prepare(SqlciEnv * sqlci_env,
                                  0, (char*)CharInfo::getCharSetName(sqlci_env->getTerminalCharset()));
   retcode = SQL_EXEC_SetDescItem(sql_src, 1, SQLDESC_VAR_PTR, (Long)str, 0);
   HandleCLIError(retcode, sqlci_env);
-#pragma nowarn(1506)   // warning elimination 
   retcode = SQL_EXEC_SetDescItem(sql_src, 1, SQLDESC_LENGTH, strlen(str) + 1, 0);
-#pragma warn(1506)  // warning elimination 
   HandleCLIError(retcode, sqlci_env);
 
   SQL_QUERY_COST_INFO queryCostInfo;
@@ -1500,9 +1492,7 @@ short SqlCmd::doDescribeInput(SqlciEnv * sqlci_env,
 	    param = sqlci_env->get_paramlist()->get(param_name);
 	  }
 	  else if (isUnnamed) {
-#pragma nowarn(1506)   // warning elimination 
 	    short entryOffset = entry - num_named_params;
-#pragma warn(1506)  // warning elimination 
 	    sprintf(param_name, "(UNNAMED_%hd)", entryOffset);
 	    if (numUnnamedParams > 0) {
 	      if (entryOffset <= numUnnamedParams) {
@@ -1946,7 +1936,6 @@ short SqlCmd::getHeadingInfo(SqlciEnv * sqlci_env,
 
   return 0;
 }
-#pragma nowarn(770)  // warning elimination 
 short SqlCmd::displayHeading(SqlciEnv * sqlci_env,
 			     PrepStmt * prep_stmt)
 {
@@ -1999,7 +1988,6 @@ short SqlCmd::displayHeading(SqlciEnv * sqlci_env,
 
   return 0;
 }
-#pragma warn(770)  // warning elimination 
 
 Lng32 SqlCmd::displayRow(SqlciEnv * sqlci_env,
 			 PrepStmt * prep_stmt)
@@ -2457,9 +2445,7 @@ short SqlCmd::executeQuery(const char *query, SqlciEnv *sqlci_env)
   retcode = SQL_EXEC_SetDescItem(sql_src, 1, SQLDESC_TYPE_FS,
 				 REC_BYTE_V_ANSI, 0);
   retcode = SQL_EXEC_SetDescItem(sql_src, 1, SQLDESC_LENGTH,
-#pragma nowarn(1506)   // warning elimination 
 				 strlen(query) + 1, 0);
-#pragma warn(1506)  // warning elimination 
   retcode = SQL_EXEC_SetDescItem(sql_src, 1, SQLDESC_CHAR_SET_NAM,
 				 0,(char*)CharInfo::getCharSetName(sqlci_env->getTerminalCharset()));
   retcode = SQL_EXEC_SetDescItem(sql_src, 1, SQLDESC_VAR_PTR,
@@ -2489,11 +2475,7 @@ short SqlCmd::executeQuery(const char *query, SqlciEnv *sqlci_env)
 
 short SqlCmd::setEnviron(SqlciEnv *sqlci_env, Lng32 propagate)
 {
-#pragma warning (disable : 4244)   //warning elimination
-#pragma nowarn(1506)   // warning elimination 
   short rc = SQL_EXEC_SetEnviron_Internal(propagate);
-#pragma warn(1506)  // warning elimination 
-#pragma warning (default : 4244)   //warning elimination
   return rc;
 }
 
@@ -2810,21 +2792,6 @@ QueryCacheSt::QueryCacheSt(short option)
   option_(option)
 {}
 
-GoAway::GoAway(const char *tableName)
-: SqlCmd(SqlCmd::GOAWAY_TYPE, NULL)
-{
-  if (tableName)
-    {
-      tableName_ = new char[strlen(tableName)+1];
-      strcpy(tableName_, tableName);
-    }
-}
-
-GoAway::~GoAway()
-{
-}
-
-
 short SqlCmd::deallocate(SqlciEnv * sqlci_env, PrepStmt * prep_stmt)
 {
   Lng32 retcode;
@@ -2860,11 +2827,7 @@ short SqlCmd::deallocate(SqlciEnv * sqlci_env, PrepStmt * prep_stmt)
   if (prep_stmt)
     delete prep_stmt;
 
-#pragma warning (disable : 4244)   //warning elimination
-#pragma nowarn(1506)   // warning elimination 
   return retcode;
-#pragma warn(1506)  // warning elimination 
-#pragma warning (default : 4244)   //warning elimination
 }
 
 
@@ -2873,7 +2836,6 @@ short SqlCmd::deallocate(SqlciEnv * sqlci_env, PrepStmt * prep_stmt)
 // ::process() methods
 /////////////////////////////////////////////////////////////////
 
-#pragma nowarn(770)   // warning elimination 
 short DML::process(SqlciEnv * sqlci_env)
 {
   Lng32 retcode = 0, prepcode = 0, retcodeExe = 0;
@@ -3024,7 +2986,6 @@ short DML::process(SqlciEnv * sqlci_env)
         return 0;
     } 
 } // end DML::process
-#pragma warn(770)   // warning elimination 
 
 
 /////////////////////////////////////////////
@@ -3355,7 +3316,6 @@ short StoreExplain::process(SqlciEnv * sqlci_env)
 /// Begin Execute
 ///////////////////////////////////////////
 
-#pragma nowarn(770)   // warning elimination 
 short Execute::process(SqlciEnv * sqlci_env)
 {
   Lng32 retcode;
@@ -3384,7 +3344,6 @@ short Execute::process(SqlciEnv * sqlci_env)
 
   return 0;
 }
-#pragma warn(770)  // warning elimination 
 
 //////////////////////////////////////////
 // Begin Cursor
@@ -4044,15 +4003,6 @@ short QueryCacheSt::process(SqlciEnv * sqlci_env)
 }
 
 //////////////////////////////////////////
-// begin GOAWAY
-//////////////////////////////////////////
-
-short GoAway::process(SqlciEnv * sqlci_env)
-{
-  return 0;
-}
-
-//////////////////////////////////////////
 // begin QUIESCE
 //////////////////////////////////////////
 

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/b952c0d5/core/sql/sqlci/Sqlci.h
----------------------------------------------------------------------
diff --git a/core/sql/sqlci/Sqlci.h b/core/sql/sqlci/Sqlci.h
index e671826..25e7a89 100644
--- a/core/sql/sqlci/Sqlci.h
+++ b/core/sql/sqlci/Sqlci.h
@@ -48,9 +48,6 @@
 #include "ShellCmd.h"
 #include "sqlcmd.h"
 #include "SqlciCmd.h"
-#include "SqlciRWCmd.h"
-#include "SqlciCSCmd.h"
-#include "SqlciUtil.h"
 #include "SqlciNode.h"
 #include "Define.h"
 #include "Prepare.h"

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/b952c0d5/core/sql/sqlci/SqlciCSCmd.cpp
----------------------------------------------------------------------
diff --git a/core/sql/sqlci/SqlciCSCmd.cpp b/core/sql/sqlci/SqlciCSCmd.cpp
deleted file mode 100644
index 89e9f67..0000000
--- a/core/sql/sqlci/SqlciCSCmd.cpp
+++ /dev/null
@@ -1,341 +0,0 @@
-/* -*-C++-*-
- *****************************************************************************
- *
- * File:         SqlciCSCmd.cpp
- * Description:  Methods to process commands that interact with SQL/CLI and RW.
- *               
- *               
- * Created:      11/17/2003
- * Language:     C++
- * Status:       
- *
- *
-// @@@ START COPYRIGHT @@@
-//
-// Licensed to the Apache Software Foundation (ASF) under one
-// or more contributor license agreements.  See the NOTICE file
-// distributed with this work for additional information
-// regarding copyright ownership.  The ASF licenses this file
-// to you under the Apache License, Version 2.0 (the
-// "License"); you may not use this file except in compliance
-// with the License.  You may obtain a copy of the License at
-//
-//   http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing,
-// software distributed under the License is distributed on an
-// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-// KIND, either express or implied.  See the License for the
-// specific language governing permissions and limitations
-// under the License.
-//
-// @@@ END COPYRIGHT @@@
- *
- *
- *****************************************************************************
- */
-
-#include "Platform.h"
-#include "SQLTypeDefs.h"
-#include "SqlciCSCmd.h"
-#include "SqlciError.h"
-#include "SqlciEnv.h"
-#include "CSInterface.h"
-
-
-void MXCSError ( CSErrorValue *e )
-{
-  //Note: when C++ compiler bug is fixed, use constructor/destructor to
-  //manage memory allocation/deallocation automatically
-
-  ErrorParam *ep1 = new ErrorParam (e->charparam1_);
-  ErrorParam *ep2 = new ErrorParam (e->charparam2_);
-  ErrorParam *ep3 = new ErrorParam (e->charparam3_);
-  ErrorParam *ep4 = new ErrorParam (e->intparam1_);
-  ErrorParam *ep5 = new ErrorParam (e->intparam2_);
-  ErrorParam *ep6 = new ErrorParam (e->intparam3_);
-
-  SqlciError2 (e->errorCode_,
-       ep1,
-       ep2,
-       ep3,
-       ep4,
-       ep5,
-       ep6,
-        (ErrorParam *) 0);
-
-  delete ep1;
-  delete ep2;
-  delete ep3;
-  delete ep4;
-  delete ep5;
-  delete ep6;
-}
-
-void SetMXCSError ( CSErrorValue *e, Lng32 errorCode)
-{
-    e->errorCode_ = errorCode;
-    e->charparam1_= NULL;
-    e->charparam2_= NULL;
-    e->charparam3_= NULL;
-    e->intparam1_= -1;
-    e->intparam2_= -1;
-    e->intparam3_= -1;
-}
-
-///////////////////////////////////////////////////////////////////////
-//
-// This is the base class for RW commands.
-// This class is not constructed by the parser.
-//
-///////////////////////////////////////////////////////////////////////
-
-SqlciCSCmd::SqlciCSCmd(const cs_cmd_type cmd_type_)
-                  : SqlciNode(SqlciNode::MXCS_CMD_TYPE),
-                    cmd_type(cmd_type_)
-{
-};
-
-SqlciCSCmd::~SqlciCSCmd()
-{
-};
-
-
-//////////////////////////////////////////////////////////////////////////////
-//
-// This class is constructed by the parser when a MACL query is seen.
-// These are the queries which are to be passed to MACL without any
-// interpretation by mxci.
-//
-//////////////////////////////////////////////////////////////////////////////
-SqlciCSQueryCmd::SqlciCSQueryCmd(char * csCmd, Lng32 csCmdLen)
-     : SqlciCSCmd(CS_QUERY_TYPE)
-{
-  csCmdLen_ = csCmdLen;
-  if (csCmd)
-    {
-      csCmd_ = new char[strlen(csCmd)+1];
-      strcpy(csCmd_, csCmd);
-    }
-  else
-    csCmd_ = 0;
-}
-
-SqlciCSQueryCmd::~SqlciCSQueryCmd()
-{
-  if (csCmd_)
-    delete csCmd_;
-}
-
-short SqlciCSQueryCmd::process(SqlciEnv * sqlci_env)
-{
-  short rc = 0;
-
-  sqlci_env->sqlciCSEnv()->csExe()->setCSCmd(csCmd_, csCmdLen_);
-
-  sqlci_env->sqlciCSEnv()->csExe()->setState(SqlciCSInterfaceExecutor::SEND_QUERY_TO_CS_);
-
-  rc = sqlci_env->sqlciCSEnv()->csExe()->process(sqlci_env);
-
-  return rc;
-}
-
-
-
-////////////////////////////////////////////////////////////////////////
-//
-// This class is the execution engine to process the MXCS commands.
-// It contains all the methods and other information that is needed to
-// interact with MACL (mxci calling MACL).
-//
-////////////////////////////////////////////////////////////////////////
-
-SqlciCSInterfaceExecutor::SqlciCSInterfaceExecutor()
-     : csCmd_(NULL), csCmdLen_(0),
-       outputRow_(NULL), outputRowLen_(0),
-       state_(INITIAL_)
-{
-}
-
-
-void SqlciCSInterfaceExecutor::setCSCmd(char * csCmd, Lng32 csCmdLen)
-{
-  if (csCmd_)
-    delete csCmd_;
-
-  csCmdLen_ = csCmdLen;
-  
-  if (csCmd)
-    {
-      csCmd_ = new char[strlen(csCmd)+1];
-      strcpy(csCmd_, csCmd);
-    }
-  else
-    csCmd_ = 0;
-}
-
-SqlciCSInterfaceExecutor::~SqlciCSInterfaceExecutor()
-{
-}
-
-//////////////////////////////////////////////////////////////////////////
-// Returns the next state of the state machine based on the retcode
-// and the nextState.
-// 'retcode' is of type RetStatus in CSInterface.h.
-//
-// If retcode is ERROR, then next state of error is returned.
-// If the nextState sent in is different than the current state, state_,
-// then it overrides the retcode state and is returned.
-// Otherwise, the state based on retcode is returned.
-//
-//////////////////////////////////////////////////////////////////////////
-SqlciCSInterfaceExecutor::ExecutionState SqlciCSInterfaceExecutor::getNextState(
-     Lng32 retcode,
-     SqlciCSInterfaceExecutor::ExecutionState nextState)
-{
-  ExecutionState state;
-
-  if (retcode == CSGET_ERROR_INFO)
-    state = CS_ERROR_;
-  else if (state_ != nextState)
-    state = nextState;
-  else
-    {
-      switch (retcode)
-	{
-	  
-	case CSGET_OUTPUT_ROW:
-	  state = GET_OUTPUT_ROW_FROM_CS_;
-	  break;
-	  
-	case CSDONE:
-	  state = GET_INPUT_FROM_MXCI_;
-	  break;
-
-	default:
-	  state = state_;
-	  break;
-	  
-	}
-    }
-
-  return state;
-}
-
-Lng32 SqlciCSInterfaceExecutor::printOutputRow(SqlciEnv * sqlci_env,
-					      char * outputBuf,
-					      Lng32 outputBufLen)
-{
-  Logfile *log = sqlci_env->get_logfile();
-
-  log->WriteAll(outputBuf, outputBufLen, 0);
-
-  return 0;
-}
-
-
-
-
-short SqlciCSInterfaceExecutor::process(SqlciEnv * sqlci_env)
-{
-  short retcode = 0;
-  Lng32 csRetcode = 0;
-
-  ExecutionState nextState;
-
-  NABoolean done = FALSE;
-
-  while (NOT done)
-  {
-#ifdef _DEBUG
-      if (getenv("SHOW_CS_STATE"))
-	{
-	  char buf[40];
-
-	  switch (state_)
-	    {
-	    case INITIAL_: strcpy(buf, "INITIAL_"); break;
-
-	    case GET_INPUT_FROM_MXCI_: strcpy(buf, "GET_INPUT_FROM_MXCI_");break;
-	    case SEND_QUERY_TO_CS_: strcpy(buf, "SEND_QUERY_TO_CS_"); break;
-	    case GET_OUTPUT_ROW_FROM_CS_: strcpy(buf, "GET_OUTPUT_ROW_FROM_CS_"); break;
-	    case PRINT_OUTPUT_: strcpy(buf, "PRINT_OUTPUT_"); break;
-	    case CS_ERROR_: strcpy(buf, "CS_ERROR_"); break;
-	    case EXIT_: strcpy(buf, "EXIT_"); break;
-	    default: strcpy(buf, "Unknown state!"); break;
-	    }
-	  cout << "State " << buf << endl;
-	}
-#endif
-
-
-      switch (state_)
-      {
-	case INITIAL_:
-	  {
-	  }
-	break;
-
-	case GET_INPUT_FROM_MXCI_:
-	  {
-	    state_ = getNextState(0, EXIT_);
-	  }
-	break;
-
-	case SEND_QUERY_TO_CS_:
-	  {
-	    csRetcode = CS_MXCI_sendQuery(sqlci_env->sqlciCSEnv()->csEnv(),
-					  csCmd_, csCmdLen_);
-	    state_ = getNextState(csRetcode, state_);
-	  }
-	break;
-
-	case GET_OUTPUT_ROW_FROM_CS_:
-	  {
-	    csRetcode = CS_MXCI_getReportLine(sqlci_env->sqlciCSEnv()->csEnv(),
-					      outputRow_, outputRowLen_);
-
-	    if (csRetcode != CSERROR && csRetcode != CSDONE && csRetcode != CSGET_ERROR_INFO)
-	      {
-		printOutputRow(sqlci_env, outputRow_, outputRowLen_);
-	      }
-
-	    state_ = getNextState(csRetcode, state_);
-	  }
-	break;
-
-	case CS_ERROR_:
-	  {
-	    CSErrorValue *err;
-
-	    csRetcode = CS_MXCI_getErrorInfo(sqlci_env->sqlciCSEnv()->csEnv(),
-					    err);
-            if (csRetcode != CSDONE)
-	      MXCSError(err);
-
-	    if (csRetcode != CSGET_ERROR_INFO)
-	      nextState = GET_INPUT_FROM_MXCI_;
-	    else
-	      nextState = state_;
-	    state_ = getNextState(csRetcode, nextState);
-	  }
-	break;
-
-	case EXIT_:
-	  {
-	    done = TRUE;
-	  }
-	break;
-
-	default:
-	  {
-	    assert(0);
-	  }
-	break;
-
-	} // switch
- } // while
-
-  return retcode;
-}
-

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/b952c0d5/core/sql/sqlci/SqlciCSCmd.h
----------------------------------------------------------------------
diff --git a/core/sql/sqlci/SqlciCSCmd.h b/core/sql/sqlci/SqlciCSCmd.h
deleted file mode 100644
index fd639f2..0000000
--- a/core/sql/sqlci/SqlciCSCmd.h
+++ /dev/null
@@ -1,158 +0,0 @@
-#ifndef SQLCI_CS_CMD_H
-#define SQLCI_CS_CMD_H
-
-/* -*-C++-*-
- *****************************************************************************
- *
- * File:         SqlciCSCmd.h
- * Description:  Methods to process commands that interact with MXCI and MACL
- *               
- *               
- * Created:      11/17/2003
- * Language:     C++
- * Status:       
- *
- *
-// @@@ START COPYRIGHT @@@
-//
-// Licensed to the Apache Software Foundation (ASF) under one
-// or more contributor license agreements.  See the NOTICE file
-// distributed with this work for additional information
-// regarding copyright ownership.  The ASF licenses this file
-// to you under the Apache License, Version 2.0 (the
-// "License"); you may not use this file except in compliance
-// with the License.  You may obtain a copy of the License at
-//
-//   http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing,
-// software distributed under the License is distributed on an
-// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-// KIND, either express or implied.  See the License for the
-// specific language governing permissions and limitations
-// under the License.
-//
-// @@@ END COPYRIGHT @@@
- *
- *
- *****************************************************************************
- */
-
-#include "SqlciNode.h"
-#include "CSInterface.h"
-#include "SqlciEnv.h"
-#include "SqlciError.h"
-
-//////////////////////////////////////////
-// THis method handles error for MACL
-// interface related mehods.
-///////////////////////////////////////////
-void MXCSError ( CSErrorValue *e); 
-void SetMXCSError ( CSErrorValue *e, Lng32 errorCode);
-
-///////////////////////////////////////////////////////////////////////
-//
-// This is the base class for CS commands.
-// This class is not constructed by the parser.
-//
-///////////////////////////////////////////////////////////////////////
-
-class SqlciCSCmd : public SqlciNode {
-public:
-  enum cs_cmd_type {
-       CS_QUERY_TYPE
-  };
-  SqlciCSCmd (cs_cmd_type cmd_type_);
-  ~SqlciCSCmd();
-  NABoolean isAllowedInSIPMode() { return FALSE; };
-  NABoolean isAllowedInRWMode() { return FALSE; };
-  NABoolean isAllowedInCSMode() { return FALSE; };
-
-
-private:
-   cs_cmd_type cmd_type;
-
-};
-
-
-
-//////////////////////////////////////////////////////////////////////////////
-//
-// This class is constructed by the parser when a MXCS query is seen.
-// These are the queries which are to be passed to MXCS without any
-// interpretation by MXCI
-//
-//////////////////////////////////////////////////////////////////////////////
-class SqlciCSQueryCmd : public SqlciCSCmd
-{
-public:
-  SqlciCSQueryCmd(char * csCmd, Lng32 csCmdLen_);
-  ~SqlciCSQueryCmd();
-  short process(SqlciEnv * sqlci_env);
-  NABoolean isAllowedInCSMode() { return TRUE; };
-
-private:
-  char * csCmd_;
-  Lng32   csCmdLen_;
-};
-
-
-
-////////////////////////////////////////////////////////////////////////
-//
-// This class is the execution engine to process the MACL command.
-// It contains all the methods and other information that is needed to
-// interact with MACL 
-//
-// It is constructed during SqlciCSQueryCmd::process and is 'alive'
-// as long as that 'select is in progress'. The globals CSEnv points to this
-// class.
-//
-////////////////////////////////////////////////////////////////////////
-
-class SqlciCSInterfaceExecutor
-{
-public:
-  enum ExecutionState
-  {
-    INITIAL_,
-    GET_INPUT_FROM_MXCI_, 
-    SEND_QUERY_TO_CS_,
-    GET_OUTPUT_ROW_FROM_CS_,
-    PRINT_OUTPUT_,
-    CS_ERROR_, 
-    EXIT_
-  };
-
-  SqlciCSInterfaceExecutor();
-
-  ~SqlciCSInterfaceExecutor();
-
-  short process(SqlciEnv * sqlci_env);
-
-  void setState(ExecutionState state) { state_ = state; };
-
-  void setCSCmd(char * csCmd, Lng32 csCmdLen);
-
-  ExecutionState getNextState(Lng32 retcode, ExecutionState nextState);
-
-  Lng32 printOutputRow(SqlciEnv * sqlci_env, char * outputBuf, Lng32 outputBufLen);
-
-
-private:
-
-
-  char * csCmd_;
-  Lng32   csCmdLen_;
-
-  char * outputRow_;
-  Lng32   outputRowLen_;
-
-  ExecutionState state_;
-
-
-};
-
-
-#endif
-

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/b952c0d5/core/sql/sqlci/SqlciCSSimulator.cpp
----------------------------------------------------------------------
diff --git a/core/sql/sqlci/SqlciCSSimulator.cpp b/core/sql/sqlci/SqlciCSSimulator.cpp
deleted file mode 100644
index e9c54dc..0000000
--- a/core/sql/sqlci/SqlciCSSimulator.cpp
+++ /dev/null
@@ -1,112 +0,0 @@
-/* -*-C++-*-
- *****************************************************************************
- *
- * File:         SqlciCSSimulator.cpp
- * Description:  Methods to implement MACL commands on the NT platform.
- *               These are stubs for the funtions available in macl/CSInterface.cpp.
- *               
- *               
- * Created:      11/10/2003
- * Language:     C++
- * Status:       
- *
- *
-// @@@ START COPYRIGHT @@@
-//
-// Licensed to the Apache Software Foundation (ASF) under one
-// or more contributor license agreements.  See the NOTICE file
-// distributed with this work for additional information
-// regarding copyright ownership.  The ASF licenses this file
-// to you under the Apache License, Version 2.0 (the
-// "License"); you may not use this file except in compliance
-// with the License.  You may obtain a copy of the License at
-//
-//   http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing,
-// software distributed under the License is distributed on an
-// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-// KIND, either express or implied.  See the License for the
-// specific language governing permissions and limitations
-// under the License.
-//
-// @@@ END COPYRIGHT @@@
- *
- *
- *****************************************************************************
- */
-
-#include <stdlib.h>
-#include <string.h>
-#include <wchar.h>
-
-#include "sqlcmd.h"
-
-
-
-class MXCSEnv
-{
-public:
-  MXCSEnv();
-  ~MXCSEnv();
-
-};
-
-MXCSEnv::MXCSEnv()
-{
-}
-
-MXCSEnv::~MXCSEnv()
-{
-}
-
-Lng32 CS_MXCI_Constructor (void* &CSEnv)
-{
-  MXCSEnv * csEnv = new MXCSEnv();
-
-  CSEnv = csEnv;
-
-  return CSSUCCESS;
-}
-
-Lng32 CS_MXCI_Destructor (void* CSEnv)
-{
-  delete (MXCSEnv *)CSEnv;
-
-  return CSSUCCESS;
-}
-
-Lng32 CS_MXCI_sendQuery (void* CSEnv, char *cmd, Lng32 len)
-{
-  MXCSEnv * csEnv = (MXCSEnv *)CSEnv;
-
-    return CSGET_OUTPUT_ROW;
-}
-
-
-Lng32 CS_MXCI_handleBreak(void *CSEnv)
-{
-  MXCSEnv * csEnv = (MXCSEnv *)CSEnv;
-
-    return CSSUCCESS;
-}
-
-Lng32 CS_MXCI_getErrorInfo(void* CSEnv, CSErrorValue* &err)
-{
-  MXCSEnv * csEnv = (MXCSEnv *)CSEnv;
-
-    return CSSUCCESS;
-}
-
-Lng32 CS_MXCI_getReportLine(void *CSEnv, char* &line, Lng32 &len)
-{
-  MXCSEnv * csEnv = (MXCSEnv *)CSEnv;
-
-    return CSSUCCESS;
-}
-
-void CS_MXCI_StopContext(void *CSEnv)
-{
-  MXCSEnv * csEnv = (MXCSEnv *)CSEnv;
-
-}

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/b952c0d5/core/sql/sqlci/SqlciCmd.cpp
----------------------------------------------------------------------
diff --git a/core/sql/sqlci/SqlciCmd.cpp b/core/sql/sqlci/SqlciCmd.cpp
index 6b5dad1..665c337 100644
--- a/core/sql/sqlci/SqlciCmd.cpp
+++ b/core/sql/sqlci/SqlciCmd.cpp
@@ -63,7 +63,6 @@
 #include "str.h"
 #include "charinfo.h"
 #include "SqlciEnv.h"
-#include "RWInterface.h"
 #include "Sqlci.h"
 #include "sql_id.h"
 #include "ComRtUtils.h"
@@ -340,9 +339,7 @@ short SetTerminalCharset::process(SqlciEnv * sqlci_env)
   char* tcs = get_argument();
   Int32 tcs_len;
 
-#pragma nowarn(1506)   // warning elimination 
   if ( tcs != NULL && ((tcs_len=strlen(tcs)) <= 128) )
-#pragma warn(1506)  // warning elimination 
   {
      char tcs_uppercase[129];
      str_cpy_convert(tcs_uppercase, tcs, tcs_len, 1);
@@ -402,9 +399,7 @@ short SetIsoMapping::process(SqlciEnv * sqlci_env)
   char* omcs = get_argument();
   Int32 omcs_len;
 
-#pragma nowarn(1506)   // warning elimination
   if ( omcs != NULL && ((omcs_len=strlen(omcs)) <= 128) )
-#pragma warn(1506)  // warning elimination
   {
      char omcs_uppercase[129];
      str_cpy_convert(omcs_uppercase, omcs, omcs_len, 1);
@@ -450,9 +445,7 @@ short SetDefaultCharset::process(SqlciEnv * sqlci_env)
   char* dcs = get_argument();
   Int32 dcs_len;
 
-#pragma nowarn(1506)   // warning elimination 
   if ( dcs != NULL && ((dcs_len=strlen(dcs)) <= 128) )
-#pragma warn(1506)  // warning elimination 
   {
      char dcs_uppercase[129];
      str_cpy_convert(dcs_uppercase, dcs, dcs_len, 1);
@@ -512,9 +505,7 @@ short SetInferCharset::process(SqlciEnv * sqlci_env)
   char* ics = get_argument();
   Int32 ics_len;
 
-#pragma nowarn(1506)   // warning elimination 
   if ( ics != NULL && ((ics_len=strlen(ics)) <= 128) )
-#pragma warn(1506)  // warning elimination 
   {
      char ics_uppercase[129];
      str_cpy_convert(ics_uppercase, ics, ics_len, 1);
@@ -1039,32 +1030,15 @@ short ParserFlags::process(SqlciEnv * sqlci_env)
 //Process of the MODE Command//
 ///////////////////////////////
 
-/* Mode can have 3 types.  SQL and REPORT mode and 
-   DISPLAY mode and potentially MXCS mode for ODBC.
-   SQL is the normal mode in which MXCI executes.
-   REPORT will be the Report Writer Mode.*/
-
+//   SQL is the normal mode in which MXCI executes.
 short Mode::process(SqlciEnv * sqlci_env)
 {
   short retcode = 1;
   switch (type)
   {
-// 64-bit: report writer are no longer supported
-/*
-//    case REPORT_:
-//      retcode = process_report(sqlci_env);
-//      break;
-*/
     case SQL_:
       retcode = process_sql(sqlci_env);
       break;
-    case DISPLAY_:
-      retcode = process_display(sqlci_env);
-      break;
-    //Neo 2.0: MODE MXCS should be disabled in Neo Soln 10-061220-1308.
-    /*case MXCS_:
-      retcode = process_mxcs(sqlci_env);
-      break; */
     default: 
       SqlciError(SQLCI_INVALID_MODE 
 			,(ErrorParam *) 0 );
@@ -1073,39 +1047,6 @@ short Mode::process(SqlciEnv * sqlci_env)
   return retcode;
 }
 
-short Mode::process_report(SqlciEnv * sqlci_env)
-{
-    if (sqlci_env->isReportWriterMode())
-    {
-	SqlciError(SQLCI_RW_MODE_ALREADY_REPORT 
-			,(ErrorParam *) 0 );
-       return 0;
-    }
-
-    // If we are in MXCS mode and are switching to RW mode,
-    // make sure that that MACL knows that they have to stop
-    // the existing context for that. CR 10-040311-7309
-
-// 64-bit: macl is no longer supported
-//    if (sqlci_env->isMXCSMode())
-//      CS_MXCI_StopContext(sqlci_env->sqlciCSEnv()->csEnv());
-
-    sqlci_env->setMode(SqlciEnv::REPORT_);
-
-    if (sqlci_env->get_logfile()->IsOpen())
-    {
-      // retcode should be 0 for success and -1 for error.
-// 64bit: no more report writer, return -1
-//      long retcode = RW_MXCI_sendOutputDevice (sqlci_env->sqlciRWEnv()->rwEnv(), sqlci_env, LOG_FILE);
-      Lng32 retcode = -1;
-      if (retcode) // retcode == -1
-      {
-       SqlciError (SQLCI_RW_INVALID_OUTPUT_DEVICE,(ErrorParam *) 0 );
-      }
-    } 
-    return 0;
-}
-
 short Mode::process_sql(SqlciEnv * sqlci_env)
 {
     if (SqlciEnv::SQL_ == sqlci_env->getMode())
@@ -1115,46 +1056,7 @@ short Mode::process_sql(SqlciEnv * sqlci_env)
        return 0;
     }
     
-    // If we are in MXCS mode and are switching to SQL mode
-    // make sure that MACL knows that they have to stop
-    // the existing context for that. CR 10-040311-7309
-
-// 64bit: no more macl
-//    if (sqlci_env->isMXCSMode())
-//      CS_MXCI_StopContext(sqlci_env->sqlciCSEnv()->csEnv());
-
-
     sqlci_env->setMode(SqlciEnv::SQL_);
-    sqlci_env->sqlciRWEnv()->setSelectInProgress(FALSE);
-
-    return 0;
-}
-
-short Mode::process_mxcs(SqlciEnv * sqlci_env)
-{
-  if (sqlci_env->isMXCSMode())
-    {
-	SqlciError(SQLCI_CS_MODE_ALREADY_MXCS
-			,(ErrorParam *) 0 );
-       return 0;
-    }
-  else
-  {
-	  if (sqlci_env->statusTransaction())
-	  {
-		SqlciError(SQLCI_TRANSACTION_IN_PROGRESS 
-			,(ErrorParam *) 0 );
-		return 0;
-	  }
-    sqlci_env->setMode(SqlciEnv::MXCS_);
-    return 0;
-  }
-}
-
-
-short Mode::process_display(SqlciEnv * sqlci_env)
-{
-    sqlci_env->showMode(sqlci_env->getMode());
 
     return 0;
 }
@@ -1204,9 +1106,7 @@ short QueryId::process(SqlciEnv * sqlci_env)
 		  stmt_name, &module);
 
   char * id = new char[strlen(stmtName) + 1];
-#pragma nowarn(1506)   // warning elimination 
   stmt.identifier_len = strlen(stmtName);
-#pragma warn(1506)  // warning elimination 
   str_cpy_all(id,stmtName, 
 	 stmt.identifier_len);
   id[stmt.identifier_len] = 0;

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/b952c0d5/core/sql/sqlci/SqlciCmd.h
----------------------------------------------------------------------
diff --git a/core/sql/sqlci/SqlciCmd.h b/core/sql/sqlci/SqlciCmd.h
index bdda834..0fb475e 100644
--- a/core/sql/sqlci/SqlciCmd.h
+++ b/core/sql/sqlci/SqlciCmd.h
@@ -54,7 +54,7 @@ public:
     LOG_TYPE,
     OBEY_TYPE,
     REPEAT_TYPE,
-    SETDEFINE_TYPE, SETENVVAR_TYPE, SETPARAM_TYPE, SETPATTERN_TYPE,
+    SETENVVAR_TYPE, SETPARAM_TYPE, SETPATTERN_TYPE,
     SET_TERMINAL_CHARSET_TYPE,
     SHOW_TYPE, STATISTICS_TYPE,
     SHAPE_TYPE, WAIT_TYPE,
@@ -78,10 +78,6 @@ public:
   ~SqlciCmd();
   inline char * get_argument(char * dummy_arg = 0){return argument;};
   inline Lng32   get_arglen(){return arglen;};
-  NABoolean isAllowedInSIP() { return FALSE; }
-  NABoolean isAllowedInRWMode() { return TRUE; }
-  NABoolean isAllowedInCSMode() { return FALSE; }
-
 };
 
 class Shape : public SqlciCmd {
@@ -131,8 +127,6 @@ public:
   FixCommand(Int32, short);
   ~FixCommand(){};
   short process(SqlciEnv * sqlci_env);
-  NABoolean isAllowedInSIP() {return TRUE;};
-  NABoolean isAllowedInCSMode() { return TRUE; };
 };
 
 class FCRepeat : public SqlciCmd {
@@ -144,9 +138,6 @@ public:
   FCRepeat(Int32, short);
   ~FCRepeat(){};
   short process(SqlciEnv * sqlci_env);
-  NABoolean isAllowedInSIP() {return TRUE;};
-  NABoolean isAllowedInCSMode() { return TRUE; };
-
 };
 
 class Obey : public SqlciCmd {
@@ -155,8 +146,6 @@ public:
   Obey(char *, Lng32 arglen_, char * section_name_);
   ~Obey(){};
   short process(SqlciEnv * sqlci_env);
-  NABoolean isAllowedInSIP() {return TRUE;};
-  NABoolean isAllowedInCSMode() { return TRUE; };
 };
 
 class Log : public SqlciCmd {
@@ -169,28 +158,23 @@ public:
   Log(char *, Lng32 arglen_, log_type type_, Int32 commands_only);
   ~Log(){};
   short process(SqlciEnv * sqlci_env);
-  NABoolean isAllowedInSIP() {return TRUE;};
-  NABoolean isAllowedInCSMode() { return TRUE; };
 };
 
 class History : public SqlciCmd {
 public:
   History(char *, Lng32 arglen_);
   short process(SqlciEnv * sqlci_env);
-  NABoolean isAllowedInSIP() {return TRUE;};
-  NABoolean isAllowedInCSMode() { return TRUE; };
 };
 
 class ListCount : public SqlciCmd {
 public:
     ListCount(char *, Lng32);
     short process(SqlciEnv * sqlci_env);
-    NABoolean isAllowedInSIP() {return TRUE;};
 };
 
 class Mode :  public SqlciCmd {
 public:
-    enum ModeType { SQL_, REPORT_, DISPLAY_, MXCS_};
+    enum ModeType { SQL_};
     Mode(ModeType type, NABoolean value);
     ~Mode(){};
     short process(SqlciEnv * sqlci_env);
@@ -198,10 +182,7 @@ private:
     ModeType type;
     NABoolean value;
     short process_sql(SqlciEnv * sqlci_env);
-    short process_report(SqlciEnv * sqlci_env);
-    short process_mxcs(SqlciEnv * sqlci_env);
     short process_display(SqlciEnv * sqlci_env);
-    NABoolean isAllowedInCSMode() { return TRUE; };
 };
 
 class Verbose : public SqlciCmd {
@@ -232,7 +213,6 @@ public:
   short process(SqlciEnv * sqlci_env);
 };
 
-#pragma nowarn(1506)   // warning elimination
 class SetTerminalCharset : public SqlciCmd {
 
 private:
@@ -276,7 +256,6 @@ public:
   ~SetInferCharset(){};
   short process(SqlciEnv * sqlci_env);
 };
-#pragma warn(1506)  // warning elimination
 
 class Error : public SqlciCmd {
 public:
@@ -304,25 +283,20 @@ class Env : public SqlciCmd {
 public:
   Env(char *, Lng32 arglen_);
   short process(SqlciEnv * sqlci_env);
-  NABoolean isAllowedInSIP() {return TRUE;};
-  NABoolean isAllowedInCSMode() { return TRUE; };
 };
 
 class Exit : public SqlciCmd {
 public:
   Exit(char *, Lng32 arglen_);
   short process(SqlciEnv * sqlci_env);
-  NABoolean isAllowedInSIP() {return TRUE;};
-  NABoolean isAllowedInCSMode() { return TRUE; };
 };
 
 class Reset : public SqlciCmd {
 public:
-  enum reset_type {PARAM_, PATTERN_, PREPARED_, CONTROL_, DEFINE_};
+  enum reset_type {PARAM_, PATTERN_, PREPARED_, CONTROL_};
 private:
   reset_type type;
   short reset_control(SqlciEnv * sqlci_env);
-  short reset_define(SqlciEnv * sqlci_env);
   short reset_param(SqlciEnv * sqlci_env);
   short reset_pattern(SqlciEnv * sqlci_env);
   short reset_prepared(SqlciEnv * sqlci_env);
@@ -333,16 +307,6 @@ public:
   short process(SqlciEnv * sqlci_env);
 };
 
-class SetDefine : public SqlciCmd {
-  char * define_name;
-  Lng32 namelen;
-  NABoolean alter_; // if TRUE, then alter existing define
-public:
-  SetDefine(char *, Lng32, char *, Lng32, NABoolean);
-  ~SetDefine();
-  short process(SqlciEnv * sqlci_env);
-};
-
 class SetParam : public SqlciCmd {
   char * param_name;
   Lng32 namelen;
@@ -399,7 +363,7 @@ public:
 class Show : public SqlciCmd {
 public:
   enum show_type {CURSOR_, PARAM_, PATTERN_,
-		  PREPARED_, CONTROL_, DEFINE_,
+		  PREPARED_, CONTROL_,
 		  SESSION_, VERSION_};
 private:
   show_type type;
@@ -410,7 +374,6 @@ private:
 
   short show_control(SqlciEnv * sqlci_env);
   short show_cursor(SqlciEnv * sqlci_env);
-  short show_define(SqlciEnv * sqlci_env);
   short show_param(SqlciEnv * sqlci_env);
   short show_pattern(SqlciEnv * sqlci_env);
   short show_prepared(SqlciEnv * sqlci_env);