Skip to content

Commit

Permalink
Don't blame me. @OverRide wasn't declared ...
Browse files Browse the repository at this point in the history
  • Loading branch information
chenson42 committed Nov 9, 2012
1 parent 65f2765 commit 82ef960
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -16,7 +16,8 @@ public SqliteJdbcSqlTemplate(DataSource dataSource, SqlTemplateSettings settings
super(dataSource, settings, lobHandler, databaseInfo);
}

public boolean isUniqueKeyViolation(Exception ex) {
@Override
public boolean isUniqueKeyViolation(Throwable ex) {
SQLException sqlEx = findSQLException(ex);
return (sqlEx != null && sqlEx.getMessage() != null && sqlEx.getMessage().contains("[SQLITE_CONSTRAINT]"));
}
Expand Down

0 comments on commit 82ef960

Please sign in to comment.