Hi Oracle.xs has: I32 constant(name=Nullch) char *name PROTOTYPE: The above defines an empty prototype, so the following fails: perl -MDBD::Oracle -e 'print DBD::Oracle::ORA_RSET(10), "\n";' Too many arguments for DBD::Oracle::ORA_RSET at -e line 1, near "10)"
I know I'm not supposed to run it as above. However, the AUTOLOAD in Oracle.pm has: my $val = constant($constname); which would always fail, if called. Basically PROTOTYPE: defines empty prototyping, whereas that's not the intended requirement, as the xsub constant() can also handle a param conditionally. I just commented out PROTOTYPE and it works fine. Tim, can this go into sources ? It'd be great if it does, so that we don't have to patch it & maintain the (though simple) patch. Note: The above may not be an issue to anyone, except for me :-( Basically I'm using a hacked version of mod_perl with FreshRestart facility. So on every restart of apache, everything bombs with the above error. Thanks a lot Sreeji __________________________________________________ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com