On Tuesday, March 29, 2016 at 5:30:32 PM UTC-7, Jeremy Swartwood wrote:
>
> How do I run this command and make sure it applies to all subsequent
> DB.run commands?
>
> *ALTER SESSION SET optimizer_index_cost_adj = 1;*
>
> If I am looking at the correct parameter on the current_statement in TOAD,
> it appears it is not being set to 1.
>
You can set this via an :after_connect proc, via something like:
DB = Sequel.connect(..., :after_connect=>proc{|conn| conn.execute("ALTER
SESSION SET optimizer_index_cost_adj = 1")})
conn here is the underlying connection object, so you have to use the
underlying connection object's API to execute the query.
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.