You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are having issues with the following log being thrown when running our changeSets: Error: 1054-42S22: Unknown column 't.EXAMPLE_COLUMN' in 'field list'. This is given a WARN log level, but we see one of these logs for every columnExists preconditions in an addColumn changeSet that we have, and they fill up our logs. Our preconditions do pass, so this doesn't break anything, but these logs are a nuisance. Not sure if addColumn preconditions have a hard time with the <not><columnExists/></not> or what. Some extra information is that we use mariaDB, and configure our liquibase changelogs using XML.
Looks like this exact log was added in Liquibase 3.4.1 ([Core-2408] - Unknown column 'LABELS' in 'field list' from changelog.txt).
Steps To Reproduce
*We are using Spring Boot (projects on 2.x and 3.1.x both have this issue, with liquibase versions 4.9.x and 4.25.x both seeing this issue)
Start with a blank database, so that liquibase changelogs will run
Have a createTable changeSet that creates a table, say EXAMPLE_TABLE
In a later changeSet, have a addColumn changeSet (EXAMPLE_COLUMN) that adds a column to EXAMPLE_TABLE. Give this changeSet a precondition that checks if EXAMPLE_COLUMN already exists in EXAMPLE_TABLE, with the returned being not. Like this:
The suggestion does block the logs, but that is not a solution I would like to use. This does make me worry that this might not necessarily be a liquibase issue (considering I can't find in liquibase any mention this kind of error), but the solution to these undesirable logs should not be blocking all mariaDB JDBC driver error logs.
My hope would be to prevent these errors from being thrown in the first place
Hi @noahwenck, I can confirm that Liquibase doesn't have any say in the logs that come from external JDBC drivers. You will probably get those logs even with log-level=FINE.
I would suggest you consult with the MariaDB team, and they might be able to help you solve this.
Search first
Description
We are having issues with the following log being thrown when running our changeSets:
Error: 1054-42S22: Unknown column 't.EXAMPLE_COLUMN' in 'field list'
. This is given aWARN
log level, but we see one of these logs for everycolumnExists
preconditions in anaddColumn
changeSet that we have, and they fill up our logs. Our preconditions do pass, so this doesn't break anything, but these logs are a nuisance. Not sure ifaddColumn
preconditions have a hard time with the<not><columnExists/></not>
or what. Some extra information is that we use mariaDB, and configure our liquibase changelogs using XML.Looks like this exact log was added in Liquibase 3.4.1 (
[Core-2408] - Unknown column 'LABELS' in 'field list'
fromchangelog.txt
).Steps To Reproduce
*We are using Spring Boot (projects on 2.x and 3.1.x both have this issue, with liquibase versions 4.9.x and 4.25.x both seeing this issue)
createTable
changeSet that creates a table, sayEXAMPLE_TABLE
addColumn
changeSet (EXAMPLE_COLUMN
) that adds a column toEXAMPLE_TABLE
. Give this changeSet a precondition that checks ifEXAMPLE_COLUMN
already exists inEXAMPLE_TABLE
, with the returned being not. Like this:<preConditions onFail="MARK_RAN">
<not><columnExists tablename="EXAMPLE_TABLE" columnname="EXAMPLE_COLUMN"/></not>
</preConditions>
Expected/Desired Behavior
These logs should not be thrown when a precondition passes.
Liquibase Version
4.9.1 and 4.25.0
Database Vendor & Version
No response
Liquibase Integration
spring boot
Liquibase Extensions
No response
OS and/or Infrastructure Type/Provider
No response
Additional Context
No response
Are you willing to submit a PR?
The text was updated successfully, but these errors were encountered: