Hi Jeremy

I use Models and i do not have access to DB instance using Rails module. 
Due to this I tried to use *Model.with_sql.*

MemberModel.with_sql('select *
            from members t
            where data @? \'$.alternate_emails[*] ? (@ like_regex 
".*?.*")\'', query.to_s).all


However, I got: *Mismatched number of placeholders (3) and placeholder 
arguments (2) when using placeholder string*

Well, there are 3 question marks indeed but first two of them is not 
parameterized. It belongs to query. Third question mark, however, indeed a 
parameter so query should be passed there.

How can I solve this issue?

Thank you,
-Den

-- 
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sequel-talk/e5eb878b-1e26-4784-86f0-ab169c6600ac%40googlegroups.com.

Reply via email to