aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2006-02-26 00:01:13 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2006-02-26 00:01:13 +0000
commit09751e57b0f56153ba7a3038021e741774e0b63d (patch)
tree0df56ab77d2cf4f2d6f720497b79cdf4ea90f8f0 /activerecord/lib/active_record
parent272729e0a339d80bc422fcbdfc86dd60e3e4c030 (diff)
downloadrails-09751e57b0f56153ba7a3038021e741774e0b63d.tar.gz
rails-09751e57b0f56153ba7a3038021e741774e0b63d.tar.bz2
rails-09751e57b0f56153ba7a3038021e741774e0b63d.zip
Fixed db2 connection with empty user_name and auth options (closes #3622) [phurley@gmail.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3655 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r--activerecord/lib/active_record/vendor/db2.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/vendor/db2.rb b/activerecord/lib/active_record/vendor/db2.rb
index ec652f8706..812c8cc517 100644
--- a/activerecord/lib/active_record/vendor/db2.rb
+++ b/activerecord/lib/active_record/vendor/db2.rb
@@ -66,7 +66,7 @@ module DB2
end
def connect(server_name, user_name = '', auth = '')
- check_rc(SQLConnect(@handle, server_name, user_name, auth))
+ check_rc(SQLConnect(@handle, server_name, user_name.to_s, auth.to_s))
end
def set_connect_attr(attr, value)