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

order Supports Postgres JSON operators #43020

Closed

Commits on Sep 5, 2021

  1. Allow Postgres JSON operator to be used in order

    Previously, any JSON operator would return the error
    `ActiveRecord::UnknownAttributeReference`. This error is intended to
    protect against SQL injection. It requires the developer to wrap the
    query in `Arel.sql` to avoid the error. Referencing a JSON column should
    be treated the same as referencing a string column.
    
    This commit only allows `->>` to be used in order.
    ChaelCodes committed Sep 5, 2021
    Configuration menu
    Copy the full SHA
    2874d02 View commit details
    Browse the repository at this point in the history