This is already implemented as of 4.1

http://api.rubyonrails.org/classes/ActiveRecord/ConnectionAdapters/MysqlAdapter.html

Cheers
Thong
On 4 Oct 2014 18:33, "Vipul A M" <vipulnsw...@gmail.com> wrote:

> I came across a use case where I needed provide session variables for
> a connection.
> For example some of these [1]. I see it was reported here [2] 5 years ago.
>
> Would something like passing:
>
> session_variables: time_zone=UTC,someVar=someValue
>
> in the database.yml config be acceptable as a solution?
>
> Thanks,
>
> [1] http://dev.mysql.com/doc/refman/5.1/en/server-system-variables.html
> [2]
> https://rails.lighthouseapp.com/projects/8994/tickets/3579-activerecord-not-settingchecking-mysql-session-variable-time_zone
>
>
> Vipul A.M.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Core" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to rubyonrails-core+unsubscr...@googlegroups.com.
> To post to this group, send email to rubyonrails-core@googlegroups.com.
> Visit this group at http://groups.google.com/group/rubyonrails-core.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-core+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-core@googlegroups.com.
Visit this group at http://groups.google.com/group/rubyonrails-core.
For more options, visit https://groups.google.com/d/optout.

Reply via email to