mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
#1567 - SqlUpdate addBatch() ... with named parameters errors with PersistenceException: No batched statement found for key
This commit is contained in:
@@ -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