mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-18 14:58:47 +00:00
Fix for #235: Stored procedures not commited
This commit is contained in:
1 parent
6a582c0eef
commit
c638ad8d56
4 files changed
+69
-8
No files matched your search
@@ -76,13 +76,6 @@ public final class PersistRequestCallableSql extends PersistRequest {
|
||||
public void setGeneratedKey(Object idValue) {
|
||||
}
|
||||
|
||||
/**
|
||||
* False for CallableSql.
|
||||
*/
|
||||
public boolean useGeneratedKeys() {
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Perform post execute processing for the CallableSql.
|
||||
*/
|
||||
@@ -98,6 +91,8 @@ public final class PersistRequestCallableSql extends PersistRequest {
|
||||
|
||||
if (tableEvents != null && !tableEvents.isEmpty()) {
|
||||
transaction.getEvent().add(tableEvents);
|
||||
} else {
|
||||
transaction.markNotQueryOnly();
|
||||
}
|
||||
|
||||
}
|
||||
@@ -141,7 +136,7 @@ public final class PersistRequestCallableSql extends PersistRequest {
|
||||
|
||||
for (int i = 0; i < list.size(); i++) {
|
||||
pos++;
|
||||
BindParams.Param param = (BindParams.Param) list.get(i);
|
||||
BindParams.Param param = list.get(i);
|
||||
if (param.isOutParam()) {
|
||||
Object outValue = cstmt.getObject(pos);
|
||||
param.setOutValue(outValue);
|
||||
|
||||
@@ -361,6 +361,11 @@ public class JdbcTransaction implements SpiTransaction {
|
||||
return depth;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void markNotQueryOnly() {
|
||||
this.queryOnly = false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isReadOnly() {
|
||||
if (!isActive()) {
|
||||
|
||||
Reference in new issue
Block a user