-
Notifications
You must be signed in to change notification settings - Fork 697
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use testcontainers for MySQL instead of mysql-connector-mxj #957
Use testcontainers for MySQL instead of mysql-connector-mxj #957
Conversation
This comment has been minimized.
This comment has been minimized.
aee667d
to
44b662b
Compare
This comment has been minimized.
This comment has been minimized.
Could you please run tests with Java8 as gradle JDK? |
Should be fixed in master, please check. |
44b662b
to
7ee4f64
Compare
This is now ready for another review. It looks like it successfully removes mxj. |
@KushalP , in the current implementation you removed the possibility to run tests with |
@Tapac are they run in TeamCity? If possible, is it possible to get them added to TeamCity so that my PR shows up as red in this case. If I'd seen that feedback, I would have gone and fixed it. I'll work on that next. |
The mxj library is flaky and doesn't work on various platforms due to being outdated.
Without this, we'll see the following permission exceptions for some of our tests: ``` com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Access denied for user 'test'@'%' to database 'two' org.jetbrains.exposed.exceptions.ExposedSQLException: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Access denied for user 'test'@'%' to database 'two' SQL: [CREATE SCHEMA IF NOT EXISTS two] at org.jetbrains.exposed.sql.statements.Statement.executeIn$exposed_core(Statement.kt:63) at org.jetbrains.exposed.sql.Transaction.exec(Transaction.kt:129) at org.jetbrains.exposed.sql.Transaction.exec(Transaction.kt:115) ```
e3e6125
to
621889b
Compare
@Tapac I've tested it and it's now possible to run the |
The mxj library is flaky and doesn't work on various platforms due to being outdated.
This PR is related to #894 and #947.