Bug 147652 Inconsistent behaviors when preview in web viewer and html/pdf using attached design file
Description: Use a nonexisted binding column as sort key will cause web viewer preview fail Steps to reproduce: 1. Insert a table, generate binding 2. use one binding as sort key to add a sorting on table 3. Delete the sort key in bindig pane 4. Preview in web viewer Expected result: Table header and master page can display and return error msg Actual result: Nothing displays in web viewer
data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/impl/document/QueryResults.java
this( context, queryResultID, null, null, -1 );
	}
	
	/**
	 * @param context
	 * @param queryResultID
	 * @param resultMetaData
	 * @param subQueryName
	 * @param currParentIndex
	 */
	QueryResults( DataEngineContext context, String queryResultID,
			IResultMetaData resultMetaData, String subQueryName,
			int currParentIndex )
	{
		assert context != null;
		assert queryResultID != null;
		if ( subQueryName != null )
			assert resultMetaData != null;
		
		this.context = context;
		this.queryResultID = queryResultID;
		
		this.resultMetaData = resultMetaData;
		this.subQueryName = subQueryName;
		this.currParentIndex = currParentIndex;
	}
	
	/*
	 * @see org.eclipse.birt.data.engine.api.IQueryResults#getPreparedQuery()
	 */