Skip to content

Commit eea99aa

Browse files
committed
Merge branch 'master' of github.com:rails-sqlserver/activerecord-sqlserver-adapter
2 parents 4ee1c54 + aa1f2e1 commit eea99aa

File tree

4 files changed

+26
-10
lines changed

4 files changed

+26
-10
lines changed

CHANGELOG

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11

2+
* 3.0.2
3+
4+
* Fix DSN'less code. [Erik Bryn]
5+
6+
27
* 3.0.1
38

49
* Support DSN'less connections. Resolves ticket 38.

README.rdoc

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -150,13 +150,24 @@ If you’d like to contribute a feature or bugfix, thanks! To make sure your fix
150150

151151
Many many people have contributed. If you do not see your name here and it should be let us know. Also, many thanks go out to those that have pledged financial contributions.
152152

153-
* Ken Collins
154-
* Murray Steele
155-
* Shawn Balestracci
156-
* Joe Rafaniello
157-
* Tom Ward
158-
159-
153+
=== Contributers
154+
Up-to-date list of contributors: http://github.com/rails-sqlserver/activerecord-sqlserver-adapter/contributors
155+
156+
* metaskills (Ken Collins)
157+
* h-lame (Murray Steele)
158+
* vegantech
159+
* cjheath (Clifford Heath)
160+
* jrafanie (Joe Rafaniello)
161+
* nerdrew (Andrew Ryan)
162+
* snowblink (Jonathan Lim)
163+
* koppen (Jakob Skjerning)
164+
* ebryn (Erik Bryn)
165+
* adzap (Adam Meehan)
166+
* neomindryan (Ryan Findley)
167+
* jeremydurham (Jeremy Durham)
168+
169+
=== Donators
170+
http://pledgie.com/campaigns/11630
160171

161172
== License
162173

activerecord-sqlserver-adapter.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Gem::Specification.new do |s|
33
s.platform = Gem::Platform::RUBY
44
s.name = "activerecord-sqlserver-adapter"
5-
s.version = "3.0.1"
5+
s.version = "3.0.2"
66
s.summary = "SQL Server 2005 and 2008 Adapter For ActiveRecord."
77
s.description = "SQL Server 2005 and 2008 Adapter For ActiveRecord"
88

lib/active_record/connection_adapters/sqlserver_adapter.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ class SQLServerAdapter < AbstractAdapter
181181
include Sqlserver::Errors
182182

183183
ADAPTER_NAME = 'SQLServer'.freeze
184-
VERSION = '3.0.1'.freeze
184+
VERSION = '3.0.2'.freeze
185185
DATABASE_VERSION_REGEXP = /Microsoft SQL Server\s+(\d{4})/
186186
SUPPORTED_VERSIONS = [2005,2008].freeze
187187

@@ -356,7 +356,7 @@ def connect
356356
if config[:dsn].include?(';')
357357
driver = odbc::Driver.new.tap do |d|
358358
d.name = config[:dsn_name] || 'Driver1'
359-
driver.attrs = dsn.split(';').map{ |atr| atr.split('=') }.reject{ |kv| kv.size != 2 }.inject({}){ |h,kv| k,v = kv ; h[k] = v ; h }
359+
d.attrs = config[:dsn].split(';').map{ |atr| atr.split('=') }.reject{ |kv| kv.size != 2 }.inject({}){ |h,kv| k,v = kv ; h[k] = v ; h }
360360
end
361361
odbc::Database.new.drvconnect(driver)
362362
else

0 commit comments

Comments
 (0)