I am trying to run a SQL query on a model with a value that has a colon ':' in it.
Something like:
Model.find_by_sql([SELECT * FROM table WHERE field1 = ? AND field2 ='some:value'], params)
This causes the following error:
ActiveRecord::PreparedStatementInvalid
Any one know how to properly escape the colon ':' in the value text to field2 above?