League season detection.

This commit is contained in:
marcins78@gmail.com
2011-12-11 18:09:05 +00:00
parent 051245a083
commit 7b95ee7fbc

View File

@@ -42,7 +42,7 @@ public class LeagueSeasonDAO {
try {
Connection conn = _dbAccess.getDataSource().getConnection();
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 {
statement.setString(1, league.getType());
statement.setInt(2, inTime);