Bug 146079 Backwar Compatibility
Reports created using version 2.01 does not work in 2.1 RC4. Chart doesnot get displayed when I try to preview the report. I am getting the following error. Failed to prepare the following query for the data set type org.eclipse.birt.report.data.oda.jdbc.SPSelectDataSet. [exec spProcedureName ?, ?, ?, ?, ?] Illegal SP Call Database Used: Sybase
data/org.eclipse.birt.report.data.oda.jdbc/src/org/eclipse/birt/report/data/oda/jdbc/SPParameterPositionUtil.java
int startPoint = -1;
		int endPoint = -1;
		boolean validBracket = true;
		for ( int i = temp.length - 1; i >= 0; i-- )
		{
			if ( i > 0 && temp[i - 1] == escaper )
				continue;
			if ( validBracket )
			{
				if ( ')' == temp[i] && endPoint == -1 )
				{
					endPoint = i;
				}
				if ( '(' == temp[i] )
				{
					startPoint = i;
					break;
				}
			}
			if ( '"' == temp[i] )
			{
				validBracket = !validBracket;
			}
		}
		if ( startPoint >= endPoint || startPoint == -1 )
			throw new OdaException( "Illegal SP call" );
		return sqlTxt.substring( startPoint, endPoint ).toCharArray( );
	}
}