mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-14 06:45:21 +00:00
Ddl fixes for clickhouse platform
This commit is contained in:
1 parent
897a97d415
commit
b88e4a35f8
6 files changed
+15
-10
No files matched your search
@@ -106,7 +106,10 @@ final class DScriptRunner implements ScriptRunner {
|
||||
try (Connection connection = obtainConnection()) {
|
||||
DdlRunner runner = new DdlRunner(useAutoCommit, scriptName, platformName);
|
||||
runner.runAll(content, connection);
|
||||
connection.commit();
|
||||
if (!connection.getAutoCommit()) {
|
||||
// Clickhouse fails: Cannot commit when auto-commit is enabled
|
||||
connection.commit();
|
||||
}
|
||||
runner.runNonTransactional(connection);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user