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 prepared statements and array queries with certain syntax result in PG::InvalidTextRepresentation
#51617
Comments
Frankly, I feel like this is a [largely accidental] feature -- interpolating I also don't think there's much we can do about it: it's not reasonable for us to guarantee the exact characters that will be interpolated... at that point you might as well use |
I won't be heartbroken if this doesn't work anymore. Rails only documents the A basic GitHub code search yields some results though, see here, so deprecation/better error message? I don't know if this warants that. |
Yeah, I think we can close this. I don't think a specific deprecation would be helpful or needed, this seems extremely niche. |
This will be broken in the next major rails version: rails/rails#51617
Just for posterity, a better replacement for my case above would be |
Expected behavior
I have the following testcase which passes on Rails 7.1 but errors on main:
System configuration
Rails version: master
Ruby version: 3.2.2
The text was updated successfully, but these errors were encountered: