Program: 79988
Project: 79988
Buggy source:
/** 
 * <p> Test some bad syntax. </p>
 */
public void test_001_badSyntax() throws Exception {
  Connection dboConnection=openUserConnection(TEST_DBO);
  goodStatement(dboConnection,"String_Node_Str");
  goodStatement(dboConnection,"String_Node_Str");
  goodStatement(dboConnection,"String_Node_Str");
  goodStatement(dboConnection,"String_Node_Str");
  goodStatement(dboConnection,"String_Node_Str");
  goodStatement(dboConnection,"String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str");
  goodStatement(dboConnection,"String_Node_Str" + "String_Node_Str" + "String_Node_Str");
  expectCompilationError(dboConnection,SYNTAX_ERROR,"String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str");
  expectCompilationError(dboConnection,SYNTAX_ERROR,"String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str");
  expectCompilationError(dboConnection,SYNTAX_ERROR,"String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str");
  expectCompilationError(dboConnection,TARGET_MUST_BE_BASE,"String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str");
  expectCompilationError(dboConnection,TARGET_MUST_BE_BASE,"String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str");
  expectCompilationError(dboConnection,TARGET_MUST_BE_BASE,"String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str");
  expectCompilationError(dboConnection,TARGET_MUST_BE_BASE,"String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str");
  expectCompilationError(dboConnection,SOURCE_MUST_BE_BASE_VIEW_OR_VTI,"String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str");
  expectCompilationError(dboConnection,SAME_EXPOSED_NAME,"String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str");
  expectCompilationError(dboConnection,SAME_EXPOSED_NAME,"String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str");
  expectCompilationError(dboConnection,SAME_EXPOSED_NAME,"String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str");
  expectCompilationError(dboConnection,COLUMN_OUT_OF_SCOPE,"String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str");
  expectCompilationError(dboConnection,COLUMN_OUT_OF_SCOPE,"String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str");
  expectCompilationError(dboConnection,COLUMN_OUT_OF_SCOPE,"String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str");
  expectCompilationError(dboConnection,COLUMN_OUT_OF_SCOPE,"String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str");
  expectCompilationError(dboConnection,COLUMN_OUT_OF_SCOPE,"String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str");
  expectCompilationError(dboConnection,ROUTINE_CANT_ISSUE_SQL,"String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str");
  expectCompilationError(dboConnection,ROUTINE_CANT_ISSUE_SQL,"String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str");
  expectCompilationError(dboConnection,ROUTINE_CANT_ISSUE_SQL,"String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str");
  expectCompilationError(dboConnection,ROUTINE_CANT_ISSUE_SQL,"String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str");
  expectCompilationError(dboConnection,CANT_MODIFY_IDENTITY,"String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str");
  expectCompilationError(dboConnection,CANT_OVERRIDE_GENERATION_CLAUSE,"String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str");
  expectCompilationError(dboConnection,CANT_MODIFY_IDENTITY,"String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str");
  expectCompilationError(dboConnection,CANT_OVERRIDE_GENERATION_CLAUSE,"String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str");
  expectCompilationError(dboConnection,CANT_MODIFY_IDENTITY,"String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str");
  expectCompilationError(dboConnection,DUPLICATE_COLUMNS,"String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str");
  expectCompilationError(dboConnection,COLUMN_NOT_IN_TABLE,"String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str");
  expectCompilationError(dboConnection,ILLEGAL_STORAGE,"String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str");
  expectCompilationError(dboConnection,COLUMN_OUT_OF_SCOPE,"String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str");
  expectCompilationError(dboConnection,COLUMN_COUNT_MISMATCH,"String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str");
  expectCompilationError(dboConnection,COLUMN_COUNT_MISMATCH,"String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str");
  expectCompilationError(dboConnection,TARGET_MUST_BE_BASE,"String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str");
  expectCompilationError(dboConnection,TARGET_MUST_BE_BASE,"String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str");
  expectCompilationError(dboConnection,DUPLICATE_SET_COLUMNS,"String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str");
  expectCompilationError(dboConnection,COLUMN_NOT_IN_TABLE,"String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str");
  expectCompilationError(dboConnection,ILLEGAL_STORAGE,"String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str");
  expectExecutionWarning(dboConnection,NO_ROWS_AFFECTED,"String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str");
  expectExecutionWarning(dboConnection,NO_ROWS_AFFECTED,"String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str");
  expectExecutionWarning(dboConnection,NO_ROWS_AFFECTED,"String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str");
  expectNoWarning(dboConnection,"String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str");
  expectCompilationError(dboConnection,NOT_IMPLEMENTED,"String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str");
  expectCompilationError(dboConnection,NOT_IMPLEMENTED,"String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str");
  expectCompilationError(dboConnection,NOT_IMPLEMENTED,"String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str");
  expectCompilationError(dboConnection,NOT_IMPLEMENTED,"String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str");
  expectCompilationError(dboConnection,NOT_IMPLEMENTED,"String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str");
  expectCompilationError(dboConnection,NOT_IMPLEMENTED,"String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str");
  expectCompilationError(dboConnection,NOT_IMPLEMENTED,"String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str");
  expectCompilationError(dboConnection,NOT_IMPLEMENTED,"String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str");
  goodStatement(dboConnection,"String_Node_Str");
  goodStatement(dboConnection,"String_Node_Str");
  goodStatement(dboConnection,"String_Node_Str");
  goodStatement(dboConnection,"String_Node_Str");
  goodStatement(dboConnection,"String_Node_Str");
  goodStatement(dboConnection,"String_Node_Str");
  goodStatement(dboConnection,"String_Node_Str");
}

Fixed version (ground truth):
/** 
 * <p> Test some bad syntax. </p>
 */
public void test_001_badSyntax() throws Exception {
  Connection dboConnection=openUserConnection(TEST_DBO);
  goodStatement(dboConnection,"String_Node_Str");
  goodStatement(dboConnection,"String_Node_Str");
  goodStatement(dboConnection,"String_Node_Str");
  goodStatement(dboConnection,"String_Node_Str");
  goodStatement(dboConnection,"String_Node_Str");
  goodStatement(dboConnection,"String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str");
  goodStatement(dboConnection,"String_Node_Str" + "String_Node_Str" + "String_Node_Str");
  expectCompilationError(dboConnection,SYNTAX_ERROR,"String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str");
  expectCompilationError(dboConnection,SYNTAX_ERROR,"String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str");
  expectCompilationError(dboConnection,SYNTAX_ERROR,"String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str");
  expectCompilationError(dboConnection,TARGET_MUST_BE_BASE,"String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str");
  expectCompilationError(dboConnection,TARGET_MUST_BE_BASE,"String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str");
  expectCompilationError(dboConnection,TARGET_MUST_BE_BASE,"String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str");
  expectCompilationError(dboConnection,TARGET_MUST_BE_BASE,"String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str");
  expectCompilationError(dboConnection,SOURCE_MUST_BE_BASE_VIEW_OR_VTI,"String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str");
  expectCompilationError(dboConnection,SAME_EXPOSED_NAME,"String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str");
  expectCompilationError(dboConnection,SAME_EXPOSED_NAME,"String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str");
  expectCompilationError(dboConnection,SAME_EXPOSED_NAME,"String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str");
  expectCompilationError(dboConnection,COLUMN_OUT_OF_SCOPE,"String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str");
  expectCompilationError(dboConnection,COLUMN_OUT_OF_SCOPE,"String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str");
  expectCompilationError(dboConnection,COLUMN_OUT_OF_SCOPE,"String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str");
  expectCompilationError(dboConnection,COLUMN_OUT_OF_SCOPE,"String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str");
  expectCompilationError(dboConnection,COLUMN_OUT_OF_SCOPE,"String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str");
  expectCompilationError(dboConnection,ROUTINE_CANT_ISSUE_SQL,"String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str");
  expectCompilationError(dboConnection,ROUTINE_CANT_ISSUE_SQL,"String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str");
  expectCompilationError(dboConnection,ROUTINE_CANT_ISSUE_SQL,"String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str");
  expectCompilationError(dboConnection,ROUTINE_CANT_ISSUE_SQL,"String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str");
  expectCompilationError(dboConnection,CANT_MODIFY_IDENTITY,"String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str");
  expectCompilationError(dboConnection,CANT_OVERRIDE_GENERATION_CLAUSE,"String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str");
  expectCompilationError(dboConnection,CANT_MODIFY_IDENTITY,"String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str");
  expectCompilationError(dboConnection,CANT_OVERRIDE_GENERATION_CLAUSE,"String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str");
  expectCompilationError(dboConnection,CANT_MODIFY_IDENTITY,"String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str");
  expectCompilationError(dboConnection,DUPLICATE_COLUMNS,"String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str");
  expectCompilationError(dboConnection,COLUMN_NOT_IN_TABLE,"String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str");
  expectCompilationError(dboConnection,ILLEGAL_STORAGE,"String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str");
  expectCompilationError(dboConnection,COLUMN_OUT_OF_SCOPE,"String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str");
  expectCompilationError(dboConnection,COLUMN_COUNT_MISMATCH,"String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str");
  expectCompilationError(dboConnection,COLUMN_COUNT_MISMATCH,"String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str");
  expectCompilationError(dboConnection,TARGET_MUST_BE_BASE,"String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str");
  expectCompilationError(dboConnection,TARGET_MUST_BE_BASE,"String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str");
  expectCompilationError(dboConnection,DUPLICATE_SET_COLUMNS,"String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str");
  expectCompilationError(dboConnection,COLUMN_NOT_IN_TABLE,"String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str");
  expectCompilationError(dboConnection,ILLEGAL_STORAGE,"String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str");
  expectExecutionWarning(dboConnection,NO_ROWS_AFFECTED,"String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str");
  expectExecutionWarning(dboConnection,NO_ROWS_AFFECTED,"String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str");
  expectExecutionWarning(dboConnection,NO_ROWS_AFFECTED,"String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str");
  expectNoWarning(dboConnection,"String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str");
  expectCompilationError(dboConnection,NOT_IMPLEMENTED,"String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str");
  expectCompilationError(dboConnection,NOT_IMPLEMENTED,"String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str");
  expectCompilationError(dboConnection,NOT_IMPLEMENTED,"String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str");
  expectCompilationError(dboConnection,NOT_IMPLEMENTED,"String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str");
  expectCompilationError(dboConnection,NOT_IMPLEMENTED,"String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str");
  expectCompilationError(dboConnection,NOT_IMPLEMENTED,"String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str");
  expectCompilationError(dboConnection,NOT_IMPLEMENTED,"String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str");
  goodStatement(dboConnection,"String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str");
  goodStatement(dboConnection,"String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str");
  expectCompilationError(dboConnection,NOT_IMPLEMENTED,"String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str");
  goodStatement(dboConnection,"String_Node_Str");
  goodStatement(dboConnection,"String_Node_Str");
  goodStatement(dboConnection,"String_Node_Str");
  goodStatement(dboConnection,"String_Node_Str");
  goodStatement(dboConnection,"String_Node_Str");
  goodStatement(dboConnection,"String_Node_Str");
  goodStatement(dboConnection,"String_Node_Str");
}