Skip to content
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

Fix some arjdbc mysql tests to support AR 7.1 #1152

Merged
merged 3 commits into from
Jul 26, 2024

Conversation

JesseChavez
Copy link
Contributor

Hi @headius & @enebo

Here we have more fixes.

Hopefully we will have mysql tests green.

Previously it used to be ActiveRecord::Result, now it seems to be an array
<ActiveRecord::StatementInvalid> expected but was
<ActiveRecord::JDBCError(<java.sql.SQLSyntaxErrorException: BLOB, TEXT, GEOMETRY or JSON column 'about' can't have a default value>)
@enebo enebo merged commit 8029660 into jruby:master Jul 26, 2024
3 of 13 checks passed
@enebo
Copy link
Member

enebo commented Jul 26, 2024

@JesseChavez cool!

You may have noticed this but the local tests are basically a subset of tests ripped out of Rails unit tests from many many years ago. As time moves forward tests get removed or updated for behavior. I think there is still value with these as they are a good selection of basic behavior and simpler to green before the full AR test suite. You can see from actual Rails test unit runs they do not catch a lot of stuff either. Just some background.

@headius
Copy link
Member

headius commented Jul 30, 2024

@JesseChavez Thank you! We really appreciate the help here!

@JesseChavez JesseChavez deleted the rails_71_support_mysql branch July 31, 2024 22:16
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.

3 participants