Repository navigation
Quote the LIBRARY column for MySQL 9.2+ - #608
Open
tonygermano wants to merge 2 commits into
Open
tonygermano wants to merge 2 commits into
tonygermano wants to merge 2 commits into
Conversation
MySQL 9.2 made LIBRARY a reserved word, so creating CODE_TEMPLATE_LIBRARY failed with a syntax error and the rest of mysql-database.sql never ran. Quote the column with backticks in the MySQL schema, the 3.2.2-3.3.0 delta and the MySQL code template mapper. The migrators share their SQL across databases, so add Migrator.quoteColumn() to quote only when the database type is mysql and use it for the two LIBRARY statements there. MigratorTest covers it, since ServerMigratorTest runs on Derby only and never reaches the quoted path. Verified on MySQL 9.2.0: the schema script runs and the column can be inserted, updated and selected. Issue: OpenIntegrationEngine#607 Assisted-by: Claude:claude-sonnet-5-5 Signed-off-by: Tony Germano <tony@germano.name>
The mysql configuration actually ran MariaDB, which does not reserve LIBRARY, so it could not catch the MySQL 9.2 failure fixed in the previous commit. Rename it to alpine-temurin21-mariadb and make alpine-temurin21-mysql use the mysql image (9.7). Issue: OpenIntegrationEngine#607 Assisted-by: Claude:claude-sonnet-5-5 Signed-off-by: Tony Germano <tony@germano.name>
tonygermano
requested review from
a team,
NicoPiel,
gibson9583,
jonbartels,
kayyagari,
kpalang,
mgaffigan and
ssrowe
November 27, 2026 14:55
NicoPiel
approved these changes
Nov 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #607
MySQL 9.2 made
LIBRARYa reserved word, soCREATE TABLE CODE_TEMPLATE_LIBRARYfails and a fresh install can't create its schema.mysql-codeTemplate.xml.Migrator.quoteColumn()adds the backticks only when the database type ismysql.MigratorTestcovers it, sinceServerMigratorTestruns on Derby only.alpine-temurin21-mysqlCI configuration actually ran MariaDB, which doesn't reserveLIBRARY. It is renamed toalpine-temurin21-mariadb, andalpine-temurin21-mysqlnow runsmysql:9.7. This is the second commit, so it can be dropped separately.Claude checked:
mysql:9.2and runs cleanly onmysql:9.1.mysql:9.2andmysql:9.7, and insert, update and select on`LIBRARY`work on 9.2../gradlew clean buildpassed beforeMigratorTestwas added; after that onlyMigratorTestwas run.🤖 Drafted with Claude Code