Skip to content

Cannot deploy OIE with MySQL 9.2+ because of reserved word LIBRARY #607

In review

Description

@msmdcom

Hello,

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.

Thanks.

Activity

  1. added
    enhancement
    on Nov 27, 2026
  2. self-assigned this
    on Nov 27, 2026
  3. tonygermano commented on Nov 27, 2026

    @tonygermano
    Member

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancement

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions