question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[MariaDB] Error on generatechangelog due to sequence error

See original GitHub issue

Environment

Liquibase Version: 3.8.9

Liquibase Integration & Version: CLI

Liquibase Extension(s) & Version: none

Database Vendor & Version: MariaDB Skysql

Operating System Type & Version: N/A

Description

C:\dev\skysql>liquibase generatechangelog
Liquibase Community 3.8.9 by Datical
Unexpected error running Liquibase: liquibase.exception.UnexpectedLiquibaseException: Don't know how to query for sequences on <username> @ jdbc:mariadb://<domain>:<port>/mysql?useSSL=true&serverSslCert=/<path>/skysql_chain.pem (Default Schema: mysql)
For more information, please use the --logLevel flag

Steps To Reproduce

  1. Create account at https://cloud.mariadb.com/skysql
  2. Create a Skysql database.
  3. Get the connection information and run snapshot or generatechangelog.

Actual Behavior

See above.

Expected/Desired Behavior

Generates a changelog.

Additional Context

note the two params at the end of the url: useSSL and serverSslCert. You’ll need those to connect…

Workaround

This error can be avoided by excluding any sequences when running any diff commands, for example:

liquibase --diffTypes=catalog,tables,functions,views,columns,indexes,foreignkeys,primarykeys,uniqueconstraints,storedprocedure,triggers --changeLogFile=newChangeLog.xml generateChangeLog

QA Manual Test Requirements

Setup
  • Follow the steps in the description to setup and connect to a SkySQL database OR use MariaDB 10.4.12 locally.

  • Create a sequence on the database

  • Execute a Liquibase snapshot without using --diffTypes

  • Execute a Liquibase generateChangeLog without using --diffTypes

  • Execute a Liquibase diffChangeLog without using --diffTypes For all test cases, ASSERT ::

  • Liquibase operation is successful

  • The sequence is included in the output file (snapshot or changelog).

QA Automation Requirements

  • None

┆Issue is synchronized with this Jira Bug by Unito ┆fixVersions: Liquibase 3.10.2

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
sync-by-unito[bot]commented, Jul 1, 2020

➤ Nathan Voxland commented:

The fix for this is in # 1176 LB-287

1reaction
robstollcommented, May 29, 2020

Bug also occurs with MariaDB 10.5.3

Read more comments on GitHub >

github_iconTop Results From Across the Web

Sequence creation error - MariaDB Knowledge Base
Hi, I am new to this so any help appreciated. I have installed MariaDB 10.2.18 and have created a new user, when I...
Read more >
Bad changelog from generateChangeLog with MariaDB
You are right, the problem is that Liquibase is thinking it is an unknown database and doesn't know it is almost mysql.
Read more >
generateChangeLog fails with java.lang ... - Liquibase Forum
mariadb-java-client-2.7.2.jar ... I have removed sequences and views , just in case. ... Unexpected error running Liquibase: java.lang.
Read more >
[MDEV-13005] Fixing bugs in SEQUENCE, part 3 - Jira
This is a list smaller bugs for SEQUENCE's that should be fixed ... Result = Error 4061 (HY000) Sequence 'test.x' values are conflicting...
Read more >
Using Liquibase with MariaDB, skySQL, or MariaDB AWS RDS
This page guides you through the process of creating a new Liquibase project with MariaDB.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found