{"number":133,"pull_request":{"number":133,"issue_url":"https://github.com/rails-sqlserver/activerecord-sqlserver-adapter/issues/133","head":{"repo":{"master_branch":null,"name":"activerecord-sqlserver-adapter","created_at":"2011-10-20T19:04:32Z","size":136,"clone_url":"https://github.com/kalabiyau/activerecord-sqlserver-adapter.git","private":false,"updated_at":"2011-10-21T11:04:57Z","watchers":1,"ssh_url":"git@github.com:kalabiyau/activerecord-sqlserver-adapter.git","url":"https://api.github.com/repos/kalabiyau/activerecord-sqlserver-adapter","git_url":"git://github.com/kalabiyau/activerecord-sqlserver-adapter.git","language":"Ruby","fork":true,"svn_url":"https://svn.github.com/kalabiyau/activerecord-sqlserver-adapter","id":2615487,"pushed_at":"2011-10-21T11:04:57Z","open_issues":0,"homepage":"","description":"SQL Server Adapter For Rails","forks":0,"html_url":"https://github.com/kalabiyau/activerecord-sqlserver-adapter","owner":{"gravatar_id":"abc326a22518dfaa478dd9a1240d2898","avatar_url":"https://secure.gravatar.com/avatar/abc326a22518dfaa478dd9a1240d2898?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/kalabiyau","id":294998,"login":"kalabiyau"}},"label":"kalabiyau:master","sha":"32e949114b61cea97b3236b0f69296210ea440e7","ref":"master","user":{"gravatar_id":"abc326a22518dfaa478dd9a1240d2898","avatar_url":"https://secure.gravatar.com/avatar/abc326a22518dfaa478dd9a1240d2898?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/kalabiyau","id":294998,"login":"kalabiyau"}},"merged_by":null,"created_at":"2011-10-21T11:11:58Z","changed_files":1,"merged":false,"body":"Maybe u can check my idea about to set up user options for connection.\r\nactiverecord-sqlserver-adapter (ASA) uses sqlserver options. We cannot change this settings globally (maybe i'am wrong?) without recreating user with some defaults, but we can push some settings on session.\r\nI search in code for a place, to do this after TinyTds::Client.new but unfortunately did not found. Because ASA uses existing connection all the time which is created on start, i think.\r\n\r\nIn my PR user can use own statements to set up datetime or maybe some more settings on server without any changes on it configuration.\r\nI can do this by adding additional string to database.yml.\r\n\r\n```yaml\r\nsession_options: [\"SET language русский\", \"SET dateformat ymd\"]\r\n```\r\n\r\nPlease tell me if there is some more elegant method ...","comments":0,"title":"Custom optional statements execution to set up useroptions","additions":6,"diff_url":"https://github.com/rails-sqlserver/activerecord-sqlserver-adapter/pull/133.diff","updated_at":"2011-10-21T11:11:58Z","url":"https://api.github.com/repos/rails-sqlserver/activerecord-sqlserver-adapter/pulls/133","id":421882,"patch_url":"https://github.com/rails-sqlserver/activerecord-sqlserver-adapter/pull/133.patch","mergeable":null,"merged_at":null,"commits":1,"closed_at":null,"user":{"gravatar_id":"abc326a22518dfaa478dd9a1240d2898","avatar_url":"https://secure.gravatar.com/avatar/abc326a22518dfaa478dd9a1240d2898?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/kalabiyau","id":294998,"login":"kalabiyau"},"deletions":0,"html_url":"https://github.com/rails-sqlserver/activerecord-sqlserver-adapter/pull/133","base":{"repo":{"master_branch":null,"name":"activerecord-sqlserver-adapter","created_at":"2008-11-15T14:53:54Z","size":292,"clone_url":"https://github.com/rails-sqlserver/activerecord-sqlserver-adapter.git","private":false,"updated_at":"2011-10-21T11:11:58Z","watchers":300,"ssh_url":"git@github.com:rails-sqlserver/activerecord-sqlserver-adapter.git","url":"https://api.github.com/repos/rails-sqlserver/activerecord-sqlserver-adapter","git_url":"git://github.com/rails-sqlserver/activerecord-sqlserver-adapter.git","language":"Ruby","fork":false,"svn_url":"https://svn.github.com/rails-sqlserver/activerecord-sqlserver-adapter","id":76404,"pushed_at":"2011-10-21T11:11:58Z","open_issues":13,"homepage":"","description":"SQL Server Adapter For Rails","forks":70,"html_url":"https://github.com/rails-sqlserver/activerecord-sqlserver-adapter","owner":{"gravatar_id":"f8ae8659bf6bea4d0c746561fc7f4044","avatar_url":"https://secure.gravatar.com/avatar/f8ae8659bf6bea4d0c746561fc7f4044?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/rails-sqlserver","id":34626,"login":"rails-sqlserver"}},"label":"rails-sqlserver:master","sha":"65e56c3632b51fee23e7d7d57fb709cf8d57ac30","ref":"master","user":{"gravatar_id":"f8ae8659bf6bea4d0c746561fc7f4044","avatar_url":"https://secure.gravatar.com/avatar/f8ae8659bf6bea4d0c746561fc7f4044?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/rails-sqlserver","id":34626,"login":"rails-sqlserver"}},"state":"open"},"action":"opened"}