[ruby-oci8-commit] [331] trunk/ruby-oci8: * ext/oci8/bind.c: fix an error when executing " select NULL from dual".

nobody at rubyforge.org nobody at rubyforge.org
Sat Apr 4 03:32:50 EDT 2009


Revision: 331
Author:   kubo
Date:     2009-04-04 03:32:50 -0400 (Sat, 04 Apr 2009)

Log Message:
-----------
* ext/oci8/bind.c: fix an error when executing "select NULL from dual".
    http://rubyforge.org/forum/forum.php?thread_id=32468&forum_id=1078
    (contributed by Raimonds Simanovskis)

Modified Paths:
--------------
    trunk/ruby-oci8/ChangeLog
    trunk/ruby-oci8/ext/oci8/bind.c

Modified: trunk/ruby-oci8/ChangeLog
===================================================================
--- trunk/ruby-oci8/ChangeLog	2009-03-24 15:08:37 UTC (rev 330)
+++ trunk/ruby-oci8/ChangeLog	2009-04-04 07:32:50 UTC (rev 331)
@@ -1,3 +1,8 @@
+2009-04-04  KUBO Takehiro  <kubo at jiubao.org>
+	* ext/oci8/bind.c: fix an error when executing "select NULL from dual".
+	    http://rubyforge.org/forum/forum.php?thread_id=32468&forum_id=1078
+	    (contributed by Raimonds Simanovskis)
+
 2009-03-24  KUBO Takehiro  <kubo at jiubao.org>
 	* ext/oci8/extconf.rb, ext/oci8/oci8.h, ext/oci8/oraconf.rb:
 	    fix a problem when compiling with Oracle 8.0.

Modified: trunk/ruby-oci8/ext/oci8/bind.c
===================================================================
--- trunk/ruby-oci8/ext/oci8/bind.c	2009-03-24 15:08:37 UTC (rev 330)
+++ trunk/ruby-oci8/ext/oci8/bind.c	2009-04-04 07:32:50 UTC (rev 331)
@@ -46,7 +46,7 @@
     } else {
         sz = NUM2INT(length);
     }
-    if (sz <= 0) {
+    if (sz < 0) {
         rb_raise(rb_eArgError, "invalid bind length %d", sz);
     }
     sz += sizeof(sb4);




More information about the ruby-oci8-commit mailing list