I'm trying to compose programmatically the .where()
clause.
It looks like
Post.where("description ?", @composite)
Where @composite
is a string which is constructed before. It may be something like = 'ABCD'
or maybe IS LIKE 'ABCD'
etc.
Problem is in the resulting SQL it's always single-quoted. For example:
Post Load (0.2ms) SELECT `posts`.* FROM `posts` WHERE (description 'IS LIKE "ABCD"')
Is there any way to "un-quote" it?