Permalink
Browse files

Fix password string cast.

  • Loading branch information...
1 parent b832b1a commit 0a37aaddae4b172103725eeb50a145755097810e @metaskills metaskills committed Nov 12, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/tiny_tds/client.rb
  2. +1 −1 lib/tiny_tds/version.rb
View
@@ -55,7 +55,7 @@ def transpose_iconv_encoding(encoding)
def initialize(opts={})
if opts[:password] && opts[:password].to_s.strip != ''
- opts[:password].to_s!
+ opts[:password] = opts[:password].to_s
warn 'FreeTDS may have issues with passwords longer than 30 characters!' if opts[:password].length > 30
end
raise ArgumentError, 'missing :username option' if opts[:username].to_s.empty?
View
@@ -1,3 +1,3 @@
module TinyTds
- VERSION = '0.5.2.rc2'
+ VERSION = '0.5.2.rc3'
end

0 comments on commit 0a37aad

Please sign in to comment.