mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-16 14:52:35 +00:00
#1567 - SqlUpdate addBatch() ... with named parameters errors with PersistenceException: No batched statement found for key
This commit is contained in:
1 parent
7fda8079c2
commit
fcffa92c55
2 files changed
+32
-1
No files matched your search
@@ -135,7 +135,7 @@ public final class DefaultPersister implements Persister {
|
||||
public int[] executeBatch(SpiSqlUpdate sqlUpdate, SpiTransaction transaction) {
|
||||
BatchControl batchControl = transaction.getBatchControl();
|
||||
try {
|
||||
return batchControl.execute(sqlUpdate.getSql(), sqlUpdate.isGetGeneratedKeys());
|
||||
return batchControl.execute(sqlUpdate.getGeneratedSql(), sqlUpdate.isGetGeneratedKeys());
|
||||
} catch (SQLException e) {
|
||||
throw transaction.translate(e.getMessage(), e);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user