79112981

Date: 2024-10-22 08:05:59
Score: 0.5
Natty:
Report link

Probably your bindings are done incorrectly. Try something like this:

query = "SELECT * FROM accounts WHERE name = $1 AND description = $2"
ActiveRecord::Base.connection.exec_query(query, "SQL", [[nil, "Some account"], [nil, "Some Desc"]])
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Taras