package sfBugs;

import java.sql.ResultSet;
import java.sql.SQLException;

public class Bug1942828 {
	public int getInt0(ResultSet rs) throws SQLException {
		return rs.getInt(0);
	}

	public int getInt(ResultSet rs, int i) throws SQLException {
		return rs.getInt(i);
	}

	private final int CONST = 7;
	
	public int getIntCheck(ResultSet rs, int i) throws SQLException {
		return i > 0 ? rs.getInt(i) : CONST;
	}
}

Test case for [ 1942828 ] ResultSet getXXX where index is not zero reported as zero
Test case for [ 1942828 ] ResultSet getXXX where index is not zero reported as zero


git-svn-id: e7d6bde23f017c9ff4efd468d79d66def666766b@9533 eae3c2d3-9b19-0410-a86e-396b6ccb6ab3
