Bug 110178 All report queries are being executed twice.
If i turn on JDBC driver logging (using p6spy), i can see that every report query seems to be executed twice, even though each dataset is used only once? This is almost doubling the time it takes to generate the report. I would really appreciate a patch for this before the 2.0 release. Thanks.
data/org.eclipse.birt.report.data.oda.jdbc/src/org/eclipse/birt/report/data/oda/jdbc/Statement.java
protected java.sql.Connection conn;
	
	protected int maxrows;
	
	
	protected boolean maxRowsUpToDate = false;
	
	private final static String ERRMSG_SET_PARAMETER = "Error setting value for SQL parameter #";
	
	private static Logger logger = Logger.getLogger( Statement.class.getName( ) );	
	/**
	 * assertNull(Object o)
	 * 
	 * @param o
	 *            the object that need to be tested null or not. if null, throw
	 *            exception
	 */
	private void assertNotNull( Object o ) throws OdaException
	{
		if ( o == null )
		{
			throw new JDBCException( ResourceConstants.DRIVER_NO_STATEMENT,
					ResourceConstants.ERROR_NO_STATEMENT );
		}
	}
	/**
	 * 
	 * Constructor Statement(java.sql.Connection connection) use JDBC's
	 * Connection to construct it.