Skip to content

More fixes to support Rails 7.2 #1169

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

Merged
merged 15 commits into from
Feb 7, 2025
Merged

Conversation

JesseChavez
Copy link
Contributor

Hi @enebo

Here is more fixes for the adapter.

I reckon the support for sqlite and Mysql is decent with exception the message pack support.

there are over 20 mysql compatibility tests failing which is not due to the adapter but to AR tests.

all of them pass with:

 class BaseCompatibilityTest < ActiveRecord::TestCase
   attr_reader :connection
 
+  self.use_transactional_tests = false
+
   def setup
     @connection = ActiveRecord::Base.lease_connection
     @pool = ActiveRecord::Base.connection_pool
...

…tests and it's hard to check if transaction is open with jdbc

 29) Failure:
ActiveRecord::AdapterConnectionTest#test_materialized_transaction_state_can_be_restored_after_a_reconnect [test/cases/adapter_test.rb:543]:
Expected false to be truthy.

 30) Failure:
ActiveRecord::AdapterConnectionTest#test_unmaterialized_transaction_state_can_be_restored_after_a_reconnect [test/cases/adapter_test.rb:577]:
Expected false to be truthy.

 31) Failure:
ActiveRecord::AdapterConnectionTest#test_materialized_transaction_state_is_reset_after_a_reconnect [test/cases/adapter_test.rb:533]:
Expected false to be truthy.

 32) Failure:
ActiveRecord::AdapterConnectionTest#test_materialized_transaction_state_is_reset_after_a_disconnect [test/cases/adapter_test.rb:553]:
Expected false to be truthy.
Could not log "sql.active_record" event. NoMethodError: undefined method `value_for_database' for
in the server we can use queries such as:

```
SELECT * FROM pg_stat_activity WHERE datname = 'dbname';
```
…e as CRuby adapter)"

This is causing a mutex relocking issue

This reverts commit a46bc66.
@JesseChavez
Copy link
Contributor Author

I reverted one commit that is causing mutex re-locking issue

look at it later

@enebo enebo merged commit 9117182 into jruby:master Feb 7, 2025
7 of 12 checks passed
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.

2 participants