Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

test_select2(TestObj1) failed since e55cc41ad82b04338faeec9d3bd87a65facc63e9 #17

Closed
yahonda opened this Issue · 1 comment

2 participants

@yahonda

test_select2(TestObj1) gets a failure since e55cc41

$ make check
ruby -w setup.rb setup
setup.rb:278: warning: assigned but unused variable - vname
setup.rb:278: warning: assigned but unused variable - desc
setup.rb:278: warning: assigned but unused variable - default2
setup.rb:109: Use RbConfig instead of obsolete and deprecated Config.
---> lib
---> lib/oci8
<--- lib/oci8
---> lib/dbd
<--- lib/dbd
<--- lib
---> ext
---> ext/oci8
make
make[1]: Entering directory `/home/yahonda/git/ruby-oci8/ext/oci8'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/yahonda/git/ruby-oci8/ext/oci8'
<--- ext/oci8
<--- ext
ruby -w setup.rb test
setup.rb:278: warning: assigned but unused variable - vname
setup.rb:278: warning: assigned but unused variable - desc
setup.rb:278: warning: assigned but unused variable - default2
setup.rb:109: Use RbConfig instead of obsolete and deprecated Config.
mkdir -p ./test
/home/yahonda/.rvm/rubies/ruby-1.9.3-p194/bin/ruby -w -I/home/yahonda/git/ruby-oci8/ext/oci8 -I/home/yahonda/git/ruby-oci8/lib -I/home/yahonda/git/ruby-oci8/support -I/home/yahonda/git/ruby-oci8/test /home/yahonda/git/ruby-oci8/test/test_all.rb
/home/yahonda/git/ruby-oci8/lib/oci8/object.rb:397: warning: assigned but unused variable - args
lib/rational.rb is deprecated
/home/yahonda/git/ruby-oci8/test/test_bind_time.rb:86: warning: assigned but unused variable - day_in
/home/yahonda/git/ruby-oci8/test/test_bind_time.rb:87: warning: assigned but unused variable - time_out
/home/yahonda/git/ruby-oci8/test/test_oci8.rb:220: warning: assigned but unused variable - dttm
/home/yahonda/git/ruby-oci8/test/test_metadata.rb:897: warning: assigned but unused variable - descs
/home/yahonda/git/ruby-oci8/test/test_metadata.rb:997: warning: assigned but unused variable - descs
/home/yahonda/git/ruby-oci8/test/test_object.rb:143: warning: assigned but unused variable - ival
Run options:

# Running tests:

.............Skip test_bind_string_as_nchar. It needs Oracle server whose database chracter set is incompatible with unicode.
....................................................unsupported return type (MDSYS.SDO_GEOMETRY.GET_WKB)
unsupported return type (MDSYS.SDO_GEOMETRY.GET_WKT)
unsupported return type (MDSYS.SDO_GEOMETRY.ST_COORDDIM)
.....F......................F....................................................................

Finished tests in 42.528740s, 3.8092 tests/s, 220.4862 assertions/s.

... snip ...

  2) Failure:
test_select2(TestObj1) [/home/yahonda/git/ruby-oci8/test/test_object.rb:231]:
<#<DateTime: 1012-06-08T09:11:13+09:00 ((2090850j,673s,0n),+32400s,2299161j)>> expected but was
<#<DateTime: 1012-06-08T09:11:13+09:18 ((2090849j,85993s,0n),+33480s,2299161j)>>.

162 tests, 9377 assertions, 2 failures, 0 errors, 0 skips
$

Based on the git bisect result, It says

$ git bisect good
e55cc41ad82b04338faeec9d3bd87a65facc63e9 is the first bad commit
commit e55cc41ad82b04338faeec9d3bd87a65facc63e9
Author: Kubo Takehiro <kubo@jiubao.org>
Date:   Fri May 25 21:08:21 2012 +0900

    Add tests of the previous commit.

:100644 100644 f08cbf2358d7c17bd1dae0a2930bf29a2e986272 3ec7d8e66f95301442c58e7e9bccab1b9fae7303 M      ChangeLog
:040000 040000 b919948ac07e9187d1404643728da8a6367690cb 00770eb938c96a797b27aafe98b853a34813c176 M      test

Environment

  • ruby ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux]
  • Oracle Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production on Linux x64(CentOS 6.3)
@kubo kubo closed this issue from a commit
@kubo Change the ruby type which corresponds to Oracle object type's DATE f…
…ield from DateTime to Time.

fix #17
27e64e4
@kubo kubo closed this in 27e64e4
@yahonda

This fix has been verified in my environment. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.