mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
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
This commit is contained in:
parent
272729e0a3
commit
09751e57b0
2 changed files with 3 additions and 1 deletions
|
@ -1,5 +1,7 @@
|
||||||
*SVN*
|
*SVN*
|
||||||
|
|
||||||
|
* Fixed db2 connection with empty user_name and auth options #3622 [phurley@gmail.com]
|
||||||
|
|
||||||
* Fixed validates_length_of to work on UTF-8 strings by using characters instead of bytes #3699 [Masao Mutoh]
|
* Fixed validates_length_of to work on UTF-8 strings by using characters instead of bytes #3699 [Masao Mutoh]
|
||||||
|
|
||||||
* Fixed that reflections would bleed across class boundaries in single-table inheritance setups #3796 [lars@pind.com]
|
* Fixed that reflections would bleed across class boundaries in single-table inheritance setups #3796 [lars@pind.com]
|
||||||
|
|
2
activerecord/lib/active_record/vendor/db2.rb
vendored
2
activerecord/lib/active_record/vendor/db2.rb
vendored
|
@ -66,7 +66,7 @@ module DB2
|
||||||
end
|
end
|
||||||
|
|
||||||
def connect(server_name, user_name = '', auth = '')
|
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
|
end
|
||||||
|
|
||||||
def set_connect_attr(attr, value)
|
def set_connect_attr(attr, value)
|
||||||
|
|
Loading…
Reference in a new issue