Bugs: Browse | Submit New | Admin

[#29475] array_to_datetime needs 2 arguments in ruby-oci8 2.1.0

Date:
2011-12-13 13:43
Priority:
3
Submitted By:
LeoŇ° Bitto (leos)
Assigned To:
Kubo Takehiro (kubo)
Category:
None
State:
Open
Summary:
array_to_datetime needs 2 arguments in ruby-oci8 2.1.0

Detailed description
D:/Ruby/1.9.2-p180/lib/ruby/gems/1.9.1/gems/ruby-oci8-2.1.0-x86-mingw32/lib/oci8/datetime.rb:139:in `array_to_datetime':
wrong number of arguments (1 for 2) (ArgumentError)
        from D:/Ruby/1.9.2-p180/lib/ruby/gems/1.9.1/gems/ruby-oci8-2.1.0-x86-mingw32/lib/oci8/object.rb:446:in `block
in check_metadata'
        from D:/Ruby/1.9.2-p180/lib/ruby/gems/1.9.1/gems/ruby-oci8-2.1.0-x86-mingw32/lib/oci8/object.rb:510:in `call'
        from D:/Ruby/1.9.2-p180/lib/ruby/gems/1.9.1/gems/ruby-oci8-2.1.0-x86-mingw32/lib/oci8/object.rb:510:in `block
in attributes'
        from D:/Ruby/1.9.2-p180/lib/ruby/gems/1.9.1/gems/ruby-oci8-2.1.0-x86-mingw32/lib/oci8/object.rb:508:in `each'
        from D:/Ruby/1.9.2-p180/lib/ruby/gems/1.9.1/gems/ruby-oci8-2.1.0-x86-mingw32/lib/oci8/object.rb:508:in
`attributes'
        from D:/Ruby/1.9.2-p180/lib/ruby/gems/1.9.1/gems/ruby-oci8-2.1.0-x86-mingw32/lib/oci8/object.rb:502:in
`to_value'
        from D:/Ruby/1.9.2-p180/lib/ruby/gems/1.9.1/gems/ruby-oci8-2.1.0-x86-mingw32/lib/oci8/object.rb:543:in
`get_coll_element'
        from D:/Ruby/1.9.2-p180/lib/ruby/gems/1.9.1/gems/ruby-oci8-2.1.0-x86-mingw32/lib/oci8/object.rb:543:in
`attributes'
        from D:/Ruby/1.9.2-p180/lib/ruby/gems/1.9.1/gems/ruby-oci8-2.1.0-x86-mingw32/lib/oci8/object.rb:533:in
`to_value'
        from D:/Ruby/1.9.2-p180/lib/ruby/gems/1.9.1/gems/ruby-oci8-2.1.0-x86-mingw32/lib/oci8/object.rb:574:in `get'

Add A Comment: Notepad

Please login


Followup

Message
Date: 2011-12-15 14:51
Sender: Kubo Takehiro

I fixed it.
See: https://github.com/kubo/ruby-oci8/commit/bf50f41f105b3f6750b
ae8285c23fd838218c35d#diff-1

Use svn trunk or git master.
Otherwise, wait ruby-oci8 2.1.1.

Date datatype in a object type has been retrieved as a DST-unaware
DateTime.
But it may be retrieved as Time in the next release.
Date: 2011-12-13 15:17
Sender: Kubo Takehiro

I'll fix it two days later.

Attached Files:

Name Description Download
No Files Currently Attached

Changes:

Field Old Value Date By
assigned_tonone2011-12-13 14:55kubo