-
Notifications
You must be signed in to change notification settings - Fork 392
Rails 8.0 Support, Postgres fixes #1222
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
base: master
Are you sure you want to change the base?
Changes from 10 commits
64021ef
49a13bc
dab401b
b6a1bc3
a3a866f
0131de7
c687b0c
376e562
dfd7620
246a640
84ca553
dc722cc
2b7118d
7c62084
6a4a88f
3a3e045
0286957
9929c0a
eb8975b
d4a6b20
974f9d4
e9fe057
84b926e
58068df
924b346
95d6cd6
0eda888
fda88d0
ccde2eb
5bfebe0
cb595b7
1831186
c672e9f
9accad2
7e6d672
bbeafdc
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| # frozen_string_literal: true | ||
|
|
||
| require "active_model/type/helpers/time_value" | ||
|
|
||
| # The caller only handles ArgumentError as a failure, | ||
| # but JRuby raises TypeError for invalid formats in Time.new() (non-standard), | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'd like to have a JRuby bug reference here so we can revert this patch when JRuby gets fixed. |
||
| # which isn't handled by the caller. | ||
| # We just return nil here as it will result in fallback parsing, same as raising. | ||
| module ActiveModel | ||
| module Type | ||
| module Helpers | ||
| module TimeValue | ||
| module JRubyCompat | ||
| private | ||
| def fast_string_to_time(string) | ||
| super | ||
| rescue TypeError | ||
| nil | ||
| end | ||
| end | ||
| prepend JRubyCompat | ||
| end | ||
| end | ||
| end | ||
| end | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| exclude :test_url_invalid_adapter, "sqlserver is not a built-in adapter, so rails complains when validating the error" | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Very annoying that the Rails tests implicitly require there be no other adapters. This warrants a patch to Rails imho. |
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| exclude :test_url_invalid_adapter, "sqlserver is not a built-in adapter, so rails complains when validating the error" |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,3 @@ | ||
| exclude :test_some_time, 'intermittent failures, leaks thread, fires at high frequency' | ||
| exclude :test_connection_pool_starts_reaper, 'intermittent failures, leaks thread, fires at high frequency' | ||
| exclude :test_reaper_works_after_pool_discard, 'deadlocks under JDBC due to high frequency discard' | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do we know why this deadlocks? Of course we have lots of excludes but this seems like one we should try to fix rather than excluding. |
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| exclude :test_url_invalid_adapter, "sqlserver is not a built-in adapter, so rails complains when validating the error" |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| exclude :test_url_invalid_adapter, "sqlserver is not a built-in adapter, so rails complains when validating the error" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be temporary; we need to work with rbs folks to get a release out with JRuby support.