Program: 51527
Project: 51527
Buggy source:
/** 
 * creates a new instance
 * @param sqlQuery the query which is needed for differen SQL dialects - its not modified. 
 */
RolapNativeSql(SqlQuery sqlQuery){
  this.sqlQuery=sqlQuery;
  numericCompiler=new CompositeSqlCompiler();
  booleanCompiler=new CompositeSqlCompiler();
  numericCompiler.add(new NumberSqlCompiler());
  numericCompiler.add(new StoredMeasureSqlCompiler());
  numericCompiler.add(new CalcMemberSqlCompiler(numericCompiler));
  numericCompiler.add(new ParenthesisSqlCompiler(Category.Numeric,numericCompiler));
  numericCompiler.add(new InfixSqlCompiler(Category.Numeric,"String_Node_Str","String_Node_Str",numericCompiler));
  numericCompiler.add(new InfixSqlCompiler(Category.Numeric,"String_Node_Str","String_Node_Str",numericCompiler));
  numericCompiler.add(new InfixSqlCompiler(Category.Numeric,"String_Node_Str","String_Node_Str",numericCompiler));
  numericCompiler.add(new InfixSqlCompiler(Category.Numeric,"String_Node_Str","String_Node_Str",numericCompiler));
  numericCompiler.add(new IifSqlCompiler(Category.Numeric,numericCompiler));
  booleanCompiler.add(new InfixSqlCompiler(Category.Logical,"String_Node_Str","String_Node_Str",numericCompiler));
  booleanCompiler.add(new InfixSqlCompiler(Category.Logical,"String_Node_Str","String_Node_Str",numericCompiler));
  booleanCompiler.add(new InfixSqlCompiler(Category.Logical,"String_Node_Str","String_Node_Str",numericCompiler));
  booleanCompiler.add(new InfixSqlCompiler(Category.Logical,"String_Node_Str","String_Node_Str",numericCompiler));
  booleanCompiler.add(new InfixSqlCompiler(Category.Logical,"String_Node_Str","String_Node_Str",numericCompiler));
  booleanCompiler.add(new InfixSqlCompiler(Category.Logical,"String_Node_Str","String_Node_Str",numericCompiler));
  booleanCompiler.add(new InfixSqlCompiler(Category.Logical,"String_Node_Str","String_Node_Str",booleanCompiler));
  booleanCompiler.add(new InfixSqlCompiler(Category.Logical,"String_Node_Str","String_Node_Str",booleanCompiler));
  booleanCompiler.add(new UnOpSqlCompiler(Category.Logical,"String_Node_Str","String_Node_Str",booleanCompiler));
  booleanCompiler.add(new ParenthesisSqlCompiler(Category.Logical,booleanCompiler));
  booleanCompiler.add(new IifSqlCompiler(Category.Logical,booleanCompiler));
}

Fixed version (ground truth):
/** 
 * creates a new instance
 * @param sqlQuery the query which is needed for differen SQL dialects - its not modified. 
 */
RolapNativeSql(SqlQuery sqlQuery){
  this.sqlQuery=sqlQuery;
  this.dialect=sqlQuery.getDialect();
  numericCompiler=new CompositeSqlCompiler();
  booleanCompiler=new CompositeSqlCompiler();
  numericCompiler.add(new NumberSqlCompiler());
  numericCompiler.add(new StoredMeasureSqlCompiler());
  numericCompiler.add(new CalcMemberSqlCompiler(numericCompiler));
  numericCompiler.add(new ParenthesisSqlCompiler(Category.Numeric,numericCompiler));
  numericCompiler.add(new InfixSqlCompiler(Category.Numeric,"String_Node_Str","String_Node_Str",numericCompiler));
  numericCompiler.add(new InfixSqlCompiler(Category.Numeric,"String_Node_Str","String_Node_Str",numericCompiler));
  numericCompiler.add(new InfixSqlCompiler(Category.Numeric,"String_Node_Str","String_Node_Str",numericCompiler));
  numericCompiler.add(new InfixSqlCompiler(Category.Numeric,"String_Node_Str","String_Node_Str",numericCompiler));
  numericCompiler.add(new IifSqlCompiler(Category.Numeric,numericCompiler));
  booleanCompiler.add(new InfixSqlCompiler(Category.Logical,"String_Node_Str","String_Node_Str",numericCompiler));
  booleanCompiler.add(new InfixSqlCompiler(Category.Logical,"String_Node_Str","String_Node_Str",numericCompiler));
  booleanCompiler.add(new InfixSqlCompiler(Category.Logical,"String_Node_Str","String_Node_Str",numericCompiler));
  booleanCompiler.add(new InfixSqlCompiler(Category.Logical,"String_Node_Str","String_Node_Str",numericCompiler));
  booleanCompiler.add(new InfixSqlCompiler(Category.Logical,"String_Node_Str","String_Node_Str",numericCompiler));
  booleanCompiler.add(new InfixSqlCompiler(Category.Logical,"String_Node_Str","String_Node_Str",numericCompiler));
  booleanCompiler.add(new InfixSqlCompiler(Category.Logical,"String_Node_Str","String_Node_Str",booleanCompiler));
  booleanCompiler.add(new InfixSqlCompiler(Category.Logical,"String_Node_Str","String_Node_Str",booleanCompiler));
  booleanCompiler.add(new UnOpSqlCompiler(Category.Logical,"String_Node_Str","String_Node_Str",booleanCompiler));
  booleanCompiler.add(new ParenthesisSqlCompiler(Category.Logical,booleanCompiler));
  booleanCompiler.add(new IifSqlCompiler(Category.Logical,booleanCompiler));
}