On Wednesday, June 4, 2014 2:38:11 AM UTC-7, Yaroslav Zemlyanukhin wrote:
>
> Jeremy, thanks for the answer.
> I've figured out that explicit setting *'CONCAT_NULL_YIELDS_NULL, 
> ANSI_WARNINGS, ANSI_PADDING' *to* 'on'* makes the thing.
> I can pull request method in Sequel::MSSQL::DatabaseMethods 
> It set params in session:
>       def set_mssql_params(params_hash)
>         params_hash.each do |k, v|
>           run("set #{ k } #{ v }")
>         end
>       end
>
> Should I?
>

Note that using Database#run as you are doing is not safe, as it only 
affects a single connection. Connection-specific configuration must be done 
in Database#connect or via an :after_connect proc.  I don't think the need 
is common enough to warrant explicit support in Database#connect, so I 
think you should just use an :after_connect proc.

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 http://groups.google.com/group/sequel-talk.
For more options, visit https://groups.google.com/d/optout.

Reply via email to