Runtime error after moving to 1.8.7

Ruby/Informix works fine on Ruby 1.8.6, but after installing Ruby
1.8.7 and calling CursorBase#drop I get the following error message

    wrong number of arguments (0 for 1) (ArgumentError)

CursorBase#drop is declared as
[http://github.com/santana/ruby-informix/tree/master/ext/informixc.ec:3332]

    rb_define_method(rb_cCursorBase, "drop", rb_cursorbase_drop, 0);

Thanks in advance for any help

Thanks in advance for any help
could ask core

Thanks Roger!

On 19/12/2008, Gerardo S. Gómez Garrido [email protected]
wrote:

Ruby/Informix works fine on Ruby 1.8.6, but after installing Ruby
1.8.7 and calling CursorBase#drop I get the following error message

    wrong number of arguments (0 for 1) (ArgumentError)

CursorBase#drop is declared as
[http://github.com/santana/ruby-informix/tree/master/ext/informixc.ec:3332]

    rb_define_method(rb_cCursorBase, "drop", rb_cursorbase_drop, 0);

You did not provide enough information (such as the failing method or
the full backtrace) for diagnosing the problem.

In general it is not unusual for code that works fine on 1.8.6 to fail
on 1.8.7 or the other way around as there are several incompatible
changes between these two versions.

You are probably using a stdlib method that has changed.

Thanks

Michal

On Fri, Jan 16, 2009 at 7:38 AM, Michal S. [email protected]
wrote:

You did not provide enough information (such as the failing method

As mentioned above, CursorBase#drop is the failing method as in it’s
the one that raises the unexpected exception when it’s called.
CursorBase#drop is declared as recieving no arguments but it asks for
one anyways in Ruby 1.8.7. This is not the case in Ruby 1.8.6.

I’m providing also the declaration line

http://github.com/santana/ruby-informix/tree/master/ext/informixc.ec:3332

which says

rb_define_method(rb_cCursorBase, “drop”, rb_cursorbase_drop, 0);

You see?, it’s declared as receiving no arguments. It works as
advertised in Ruby 1.8.6. It doesn’t in Ruby 1.8.7.

or
the full backtrace) for diagnosing the problem.

Let me work on that and mail you back.

Thanks Michal for your attention. Actually I’m just using the
rb_define_method function to define a method as receiving no arguments
but it’s asking for one anyways.

Thanks in advance for your help.