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
{{ message }}
Repository navigation
Cannot deploy OIE with MySQL 9.2+ because of reserved word LIBRARY #607
MySQL in 9.2.0 version introduced reserved word LIBRARY
The problem now occurs during the installation if you want to use MySQL 9.2 or newer for OIE installation.
If you will extract oie\server-lib\mirth-dbconf.jar and check mirth-dbconf\mysql\mysql-database.sql file it has the following table:
CREATE TABLE CODE_TEMPLATE_LIBRARY
(ID VARCHAR(255) NOT NULL PRIMARY KEY,
NAME VARCHAR(255) NOT NULL UNIQUE,
REVISION INTEGER, LIBRARY LONGTEXT
) ENGINE=InnoDB;
As with MySQL 9.2+ LIBRARY is reserved word it cannot create this table and do further things.
It would work only if this would be in quotes LIBRARY. However I am not sure where else this table is used and which part of OIE code might query or write to this table.
Would it be possible in the future releases to review all OIE code and either use different column name or change everywhere LIBRARY > LIBRARY ?
Otherwise OIE will be not working with MySQL 9.2 and newer versions.
Thank you for the report. I verified the issue. It was not caught in our automated testing because we were running against MariaDB, which doesn't reserve the word. I opened #608 to address the issue.
Activity
Quote the LIBRARY column for MySQL
Test against real MySQL in CI
tonygermano commentedon Nov 27, 2026
Thank you for the report. I verified the issue. It was not caught in our automated testing because we were running against MariaDB, which doesn't reserve the word. I opened #608 to address the issue.