League season detection.
This commit is contained in:
@@ -42,7 +42,7 @@ public class LeagueSeasonDAO {
|
|||||||
try {
|
try {
|
||||||
Connection conn = _dbAccess.getDataSource().getConnection();
|
Connection conn = _dbAccess.getDataSource().getConnection();
|
||||||
try {
|
try {
|
||||||
PreparedStatement statement = conn.prepareStatement("select season_type, max_matches from league_season where league_type=? and start>=? and end<=?");
|
PreparedStatement statement = conn.prepareStatement("select season_type, max_matches from league_season where league_type=? and start<=? and end>=?");
|
||||||
try {
|
try {
|
||||||
statement.setString(1, league.getType());
|
statement.setString(1, league.getType());
|
||||||
statement.setInt(2, inTime);
|
statement.setInt(2, inTime);
|
||||||
|
|||||||
Reference in New Issue
Block a user