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

_cont filter adding extra quotes #1461

Open
lloydwatkin opened this issue Nov 9, 2023 · 1 comment
Open

_cont filter adding extra quotes #1461

lloydwatkin opened this issue Nov 9, 2023 · 1 comment

Comments

@lloydwatkin
Copy link

irb(main):002:0> Inbound.ransack(payload_cont: 'test').result
  [replica/1] Inbound Load (9.5ms)  SELECT `inbounds`.* FROM `inbounds` WHERE `webhook_inbounds`.`payload` LIKE '\"%test%\"'
=> []                                                                       
irb(main):003:0> Inbound.ransack(payload_contains: 'test').result
  [replica/1] Inbound Load (40.3ms)  SELECT `inbounds`.* FROM `inbounds`

We're not doing anything special with our Ransack setup.

Ransack @ 4.1.1
Rails @ 7.0.8

We're using MySQL.

Connects to activeadmin/activeadmin#8136

@lloydwatkin
Copy link
Author

I thought maybe it was because we were using Makara to handle our MySQL connection, I've taken this out and that's not the case. I'll try and upgrade Rails in this repo and see if that makes a difference.

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

No branches or pull requests

1 participant