mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-17 22:56:28 +00:00
#1507 - SqlUpdate.execute PersistenceException is not translated into more specific exception (like DuplicateKeyException)
This commit is contained in:
1 parent
2839434773
commit
aa7325b249
3 files changed
+84
-2
No files matched your search
@@ -55,8 +55,8 @@ class ExeUpdateSql {
|
||||
request.postExecute();
|
||||
return rowCount;
|
||||
}
|
||||
} catch (SQLException ex) {
|
||||
throw new PersistenceException(ex);
|
||||
} catch (SQLException e) {
|
||||
throw request.translateSqlException(e);
|
||||
|
||||
} finally {
|
||||
if (!batchThisRequest) {
|
||||
|
||||
Reference in new issue
Block a user