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