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
/**
	 * Format Query Text
	 * Simply replace all LF(10) with " "
	 * @param source
	 * @return
	 */
	private String formatQueryText(String source)
	{
		return source.replaceAll("\n"," ");
	}
	
	/**
	 * Converts a RuntimeException which occurred in the setting parameter value
	 * of a ROM script to an OdaException, and rethrows such exception. This
	 * method never returns.
	 */
	private static void rethrowRunTimeException( RuntimeException e, String msg )
			throws OdaException
	{
		OdaException odaException = new OdaException( msg );
		odaException.initCause( e );
		logger.logp( java.util.logging.Level.FINE,
				Statement.class.getName( ),
				"rethrowRunTimeException",
				msg,
				odaException );
		throw odaException;
	}
}