Bug 152298 org.eclipse.birt.report.data.oda.jdbc , org.eclipse.birt.report.data.oda.xml & org.eclipse.birt.report.data.adapter unit test failed in daily build 20060731
org.eclipse.birt.report.data.oda.jdbc , org.eclipse.birt.report.data.oda.xml & org.eclipse.birt.report.data.adapter unit test failed in daily build 20060731. Please see the attachment for details.
data/org.eclipse.birt.report.data.oda.xml/src/org/eclipse/birt/report/data/oda/xml/impl/ResultSet.java
testClosed();
		return spConsumer.getCurrentRowNo();
	}
	/*
	 *  (non-Javadoc)
	 * @see org.eclipse.datatools.connectivity.oda.IResultSet#getString(int)
	 */
	public String getString( int index ) throws OdaException
	{
		testClosed();
		String result = spConsumer.getResultSet()[getRowPosition( )][getColumnPosition( index )];
		this.wasNull = result == null ? true : false;
		return result;
	}
	/**
	 * Transform 1-based column index to 0-based column position in the array.
	 * @param index
	 * @return
	 */
	private int getColumnPosition( int index )
	{
		return index - 1;
	}
	/**
	 * Transform the 1-based row number to 0-based row position in the array 
	 * @return
	 */
	private int getRowPosition( )
	{
		return spConsumer.getRowPosition();