summaryrefslogtreecommitdiffstats
path: root/src/main/java/com/iciql/Db.java
diff options
context:
space:
mode:
authorJames Moger <james.moger@gitblit.com>2014-11-01 11:49:52 -0400
committerJames Moger <james.moger@gitblit.com>2014-11-03 12:51:16 -0500
commit3e0597adb83904ad1093b23a7b2fa69e6386999b (patch)
tree7e685983d22133d2182d91df7d780866e2946025 /src/main/java/com/iciql/Db.java
parent8b6657a93b050718fa9642eabf0ee8ff453d0995 (diff)
downloadiciql-3e0597adb83904ad1093b23a7b2fa69e6386999b.tar.gz
iciql-3e0597adb83904ad1093b23a7b2fa69e6386999b.zip
Allow dialects to determine if they support savepoints
Diffstat (limited to 'src/main/java/com/iciql/Db.java')
-rw-r--r--src/main/java/com/iciql/Db.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/iciql/Db.java b/src/main/java/com/iciql/Db.java
index ebcd352..4c99037 100644
--- a/src/main/java/com/iciql/Db.java
+++ b/src/main/java/com/iciql/Db.java
@@ -572,7 +572,7 @@ public class Db implements AutoCloseable {
Savepoint prepareSavepoint() {
// don't change auto-commit mode.
// don't create save point.
- if (!autoSavePoint) {
+ if (!autoSavePoint || !dialect.supportsSavePoints()) {
return null;
}
// create a savepoint