Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Transactions are not supported #22

Open
VadimSimonov opened this issue Mar 25, 2022 · 1 comment
Open

Transactions are not supported #22

VadimSimonov opened this issue Mar 25, 2022 · 1 comment

Comments

@VadimSimonov
Copy link

VadimSimonov commented Mar 25, 2022

Hello everyone.
I'm trying to use your library on a sprig boot(2.5.7) application. This error happens

error:

[app] Caused by: liquibase.exception.MigrationFailedException: Migration failed for change set db/changesets/1/createTables-clickhouse.yml::create-database::1:
[app]      Reason: liquibase.exception.DatabaseException: liquibase.exception.DatabaseException: java.sql.SQLFeatureNotSupportedException: **Transactions are not supported**

It looks like your extension is not being picked up.

application.yml

spring:
  liquibase:
    url: "jdbc:clickhouse://${ip}:${port}"
    driverClassName: "ru.yandex.clickhouse.ClickHouseDriver"
    change-log: classpath:db/liquibase-click-changelog.yml

liquibase-click-changelog.yml

databaseChangeLog:
  - include:
      file: changesets/1/createTables-clickhouse.yml
      relativeToChangelogFile: true

createTables-clickhouse.yml

databaseChangeLog:
  - changeSet:
      id: 1
      author: 1
      changes:
        - sql: create database if not exist dbname;

gradle:

    implementation 'org.liquibase:liquibase-core:4.3.5'
    implementation group: 'com.mediarithmics', name: 'liquibase-clickhouse', version: '0.7.2'
@lavoiemathieu
Copy link

@VadimSimonov I don't if you were able to solve your issue but it looks like the JDBC connection 0.3.1 works but not the 0.3.2.

ru.yandex.clickhouse:clickhouse-jdbc:0.3.1 -> Works
ru.yandex.clickhouse:clickhouse-jdbc:0.3.2 -> Does not work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants