Skip to content

Commit

Permalink
[1524] Fix exception when evolutions has errors.
Browse files Browse the repository at this point in the history
[1375] Update to Junit 4.10
  • Loading branch information
xael-fry authored and pepite committed May 29, 2012
1 parent bc77610 commit 4093655
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion framework/dependencies.yml
Expand Up @@ -29,7 +29,7 @@ require: &allDependencies
- javax.inject 1.0
- jaxen 1.1
- joda-time 2.1
- junit 4.8.1
- junit 4.10
- jregex 1.2_01
- log4j 1.2.16
- net.sf.ehcache -> ehcache-core 2.4.3
Expand Down
Binary file added framework/lib/junit-4.10.jar
Binary file not shown.
Binary file removed framework/lib/junit-4.8.1.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion framework/src/play/db/Evolutions.java
Expand Up @@ -279,7 +279,7 @@ public static synchronized boolean applyScript(boolean runScript) {
SQLException ex = (SQLException) e;
message += " [ERROR:" + ex.getErrorCode() + ", SQLSTATE:" + ex.getSQLState() + "]";
}
PreparedStatement ps = connection.prepareStatement("update play_evolutions set last_problem = ?1 where id = ?2");
PreparedStatement ps = connection.prepareStatement("update play_evolutions set last_problem = ? where id = ?");
ps.setString(1, message);
ps.setInt(2, applying);
ps.execute();
Expand Down

0 comments on commit 4093655

Please sign in to comment.