-
Notifications
You must be signed in to change notification settings - Fork 899
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
Postgres Date Ranges not reify-ing correctly #1486
Comments
On the rails side its dying because it's failing to parse the ruby string style range from with the postgres style range splitter: # https://github.com/rails/rails/blob/16882b886e245f363cd61f5ea553fe2bc525d070/activerecord/lib/active_record/connection_adapters/postgresql/oid/range.rb#L69
def extract_bounds(value)
from, to = value[1..-2].split(",", 2)
{
from: (from == "" || from == "-infinity") ? infinity(negative: true) : unquote(from),
to: (to == "" || to == "infinity") ? infinity : unquote(to),
exclude_start: value.start_with?("("),
exclude_end: value.end_with?(")")
}
end I'm not totally sure if this is something we should fix here in papertrails, or upstream in rails. |
This issue has been automatically marked as stale due to inactivity. |
Bueller? Bueller? |
Thank you for your contribution!
Due to limited volunteers, issues that do not follow these instructions will be
closed without comment.
Check the following boxes:
paper_trail
gemDue to limited volunteers, we cannot answer usage questions. Please ask such
questions on StackOverflow.
Bug reports must use the following template:
The text was updated successfully, but these errors were encountered: