Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #9432

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

From John Gordon <gordon@panix.com>
Newsgroups comp.lang.python
Subject Re: python error PLS-00306: wrong number or types of arguments in
Date 2011-07-13 20:09 +0000
Organization PANIX Public Access Internet and UNIX, NYC
Message-ID <ivku18$s45$1@reader1.panix.com> (permalink)
References (2 earlier) <9e937261-d05d-477a-90d2-a690e85e124d@h17g2000yqn.googlegroups.com> <ivkn1u$17t$1@reader1.panix.com> <d45161dc-648c-4a44-a563-317b5f5e5699@h14g2000yqd.googlegroups.com> <ivko10$hvc$1@reader1.panix.com> <e7fd08c5-e2e4-4699-b75d-5bcf796484ff@m18g2000vbl.googlegroups.com>

Show all headers | View raw


> It's taking an OUT parameter.. I'm just following the examples as
> documented by zxJDBC.  How can I fix it?

I suspect the example you're looking at was for a procedure which has no
arguments, so in that case it would make sense to pass an empty parameter
list.

I haven't worked with OUT parameters so I don't know if this will work,
but try it and see what happens:

  my_string = ""
  p = [my_string]
  c.callproc('c2_pkg.RS22', p);
  print p

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

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

python error PLS-00306: wrong number or types of arguments in Adeoluwa Odein <stratfordtenants@gmail.com> - 2011-07-13 10:11 -0700
  Re: python error PLS-00306: wrong number or types of arguments in John Gordon <gordon@panix.com> - 2011-07-13 17:40 +0000
    Re: python error PLS-00306: wrong number or types of arguments in Adeoluwa Odein <stratfordtenants@gmail.com> - 2011-07-13 10:58 -0700
      Re: python error PLS-00306: wrong number or types of arguments in John Gordon <gordon@panix.com> - 2011-07-13 18:10 +0000
        Re: python error PLS-00306: wrong number or types of arguments in Adeoluwa Odein <stratfordtenants@gmail.com> - 2011-07-13 11:18 -0700
          Re: python error PLS-00306: wrong number or types of arguments in John Gordon <gordon@panix.com> - 2011-07-13 18:26 +0000
            Re: python error PLS-00306: wrong number or types of arguments in Adeoluwa Odein <stratfordtenants@gmail.com> - 2011-07-13 11:32 -0700
              Re: python error PLS-00306: wrong number or types of arguments in John Gordon <gordon@panix.com> - 2011-07-13 20:09 +0000
                Re: python error PLS-00306: wrong number or types of arguments in Adeoluwa Odein <stratfordtenants@gmail.com> - 2011-07-13 13:33 -0700
                Re: python error PLS-00306: wrong number or types of arguments in John Gordon <gordon@panix.com> - 2011-07-13 21:02 +0000
                Re: python error PLS-00306: wrong number or types of arguments in Adeoluwa Odein <stratfordtenants@gmail.com> - 2011-07-13 14:06 -0700
                Re: python error PLS-00306: wrong number or types of arguments in John Gordon <gordon@panix.com> - 2011-07-13 21:19 +0000
                Re: python error PLS-00306: wrong number or types of arguments in Adeoluwa Odein <stratfordtenants@gmail.com> - 2011-07-13 14:28 -0700
                Re: python error PLS-00306: wrong number or types of arguments in Adeoluwa Odein <stratfordtenants@gmail.com> - 2011-07-13 14:28 -0700
                Re: python error PLS-00306: wrong number or types of arguments in Terry Reedy <tjreedy@udel.edu> - 2011-07-13 17:18 -0400
            Re: python error PLS-00306: wrong number or types of arguments in Adeoluwa Odein <stratfordtenants@gmail.com> - 2011-07-13 11:33 -0700

csiph-web