python error PLS-00306: wrong number or types of arguments in

John Gordon gordon at panix.com
Wed Jul 13 23:02:37 CEST 2011


In <86b9e6f2-e18e-41b9-92a2-86ea8d7b4592 at f35g2000vbr.googlegroups.com> Adeoluwa Odein <stratfordtenants at gmail.com> writes:

> The same error. The sample were found on the following site --I copied
> exactly what is written there:
> 1. http://www.jython.org/archive/21/docs/zxjdbc.html

Ah, I see.  You're supposed to call c.fetchall() afterwards to retrieve
the OUT parameter.

Also, the example page defines the called object as a function, not a
procedure.  Maybe that's the problem?  Try defining RS22 as a function
and see if that helps.

You might also try defining it outside of a package, as that is how the
example code does it.

-- 
John Gordon                   A is for Amy, who fell down the stairs
gordon at panix.com              B is for Basil, assaulted by bears
                                -- Edward Gorey, "The Gashlycrumb Tinies"




More information about the Python-list mailing list