Skip to content

test: check MySQL and MariaDB together in the mysqldump script test - #2961

Open
minleejae wants to merge 1 commit into
JSQLParser:masterfrom
minleejae:test/mysqldump-mariadb-executable-comments
Open

minleejae wants to merge 1 commit into
JSQLParser:masterfrom
minleejae:test/mysqldump-mariadb-executable-comments

Conversation

@minleejae

@minleejae minleejae commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

67c6fe6 fixed MySqlLockTablesTest.parsesAMysqldumpScript on master with the expectations this PR had: Dialect.MYSQL and Dialect.MARIADB run the /*!40000 ... */ statements of the mysqldump script, and without a dialect they stay comments. This PR is now rebased on e716d5b and keeps only what is left:

  • The comment above the assertions still says that only the MySQL dialect runs these statements. It now says that MySQL and MariaDB run them and that they are comments without a dialect.
  • MYSQL and MARIADB expect the same seven statements, so they are checked in one loop. The no-dialect case becomes a plain assertion instead of a one-element loop.

The expected statements do not change. For reference, MariaDB 11.8.9 runs /*!40000 ... */, skips /*!50700 ... */ and runs /*M!100000 ... */.

Validation

  • On e716d5b with this change: MySqlLockTablesTest (75 tests) and MySqlCommentTest (49 tests) pass; checkstyleTest passes.

AI assistance: prepared with Claude Code.

67c6fe6 made the mysqldump test expect MARIADB to run the
/*!40000 ... */ statements, but the comment above the assertions still
says that only the MySQL dialect runs them. MYSQL and MARIADB now
expect the same statements, so the test checks them in one loop under
a comment that says so, and keeps the separate check that without a
dialect the statements stay comments.

Signed-off-by: minleejae <mmj9808@gmail.com>
@minleejae
minleejae force-pushed the test/mysqldump-mariadb-executable-comments branch from 6fe135c to 5a44ffb Compare November 26, 2026 15:27
@minleejae minleejae changed the title test: expect MariaDB to run the /*!40000 */ statements of a mysqldump script test: check MySQL and MariaDB together in the mysqldump script test Nov 26, 2026

This branch has not been deployed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant