Is AdequateRecord supposed to work with mysql2?

Hi *,

I’ve realised our 4.2.3 application is printing this to the log when
a basic User.find(1):

SELECT users.* FROM users WHERE = 1 LIMIT 1

When I would’ve expected:

SELECT users.* FROM users WHERE = ? LIMIT 1 [[“id”,

I tried various things and found out that it only happens when using the
mysql2 adapter. The mysql and pg ones seem to print the expected

Does it mean mysql2 doesn’t get the full advantage of the improvements
provided by AdequateRecord? Or is it just a difference in the way it


This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs