Skip to content

Commit

Permalink
Query Execution Profile's Filter Expression displays wrong custom filter
Browse files Browse the repository at this point in the history
operator(T51660)
  • Loading branch information
mianrui authored and mwu committed Nov 16, 2012
1 parent e6aef48 commit 7410166
Showing 1 changed file with 16 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,23 @@ public FilterAdapter( IModelAdapter adapter, FilterConditionHandle modelFilter,
String filterExpr = modelFilter.getExpr( );
if ( filterExpr != null )
{
String filterOpr = null;
// convert to DtE exprFilter if there is no operator
String filterOpr = modelFilter.getOperator( );
if ( filterDefn != null )
{
if ( filterDefn.getBirtFilterExprId( ) != null )
{
filterOpr = modelFilter.getOperator( );
}
else if ( filterDefn.getExtFilterExprId( ) != null )
{
filterOpr = filterDefn.getExtFilterExprId( );
}
}
if( filterOpr == null )
{
filterOpr = modelFilter.getOperator( );
}
if ( filterOpr == null || filterOpr.length( ) == 0 )
{
// Standalone expression; data type must be boolean
Expand Down

0 comments on commit 7410166

Please sign in to comment.