On Friday, February 26, 2016 at 10:58:16 AM UTC-8, Jonathan Greene wrote:
>
> Need some advice here. Our DBA is asking why our queries are not coming 
> with parameter markers. The way we understand the gem is that it is using 
> parameter markers but handles that before it sends to the database. 
> thoughts?
>
>
>
> This is an example of how we are using a select query.
>
>
> TableName
>
>             .where(query)
>
>             .where("act_bgn_ts >= ?", begin_date)
>
>             .all
>
>
>
> Thanks, 
>
>
> Jonathan 
>

That API does not use parameters.  Sequel does offer an API that supports 
parameters:

TableName.where(query).where("act_bgn_ts >= ?", :$begin_date).call(:all, 
:begin_date=>begin_date)

Thanks,
Jeremy

-- 
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 post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sequel-talk.
For more options, visit https://groups.google.com/d/optout.

Reply via email to