Received: from maia.hub.org (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 7CF63633F22 for ; Wed, 10 Mar 2010 22:20:58 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 28776-02 for ; Thu, 11 Mar 2010 02:20:39 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-iw0-f178.google.com (mail-iw0-f178.google.com [209.85.223.178]) by mail.postgresql.org (Postfix) with ESMTP id 82F756326F0 for ; Wed, 10 Mar 2010 22:20:47 -0400 (AST) Received: by iwn8 with SMTP id 8so1123424iwn.28 for ; Wed, 10 Mar 2010 18:20:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=4ZJ21xx5OR5GBZ4hwwCwOOHmDPjR3sNDgWP6226Exl8=; b=XmxnNyQiEmxRPcb3/cpC56vUWeTAMP/P3YkfPGKsR7VBgVldazejaoPAUlk2MW5OOg 4KLRZDTeAL9v5PjeI/lzXIboPWAodvHUXThPhHaJyGAi7CQt/fGbgrnNBcSZn33Fb7Y2 1qBStMbdVkfNy5uHMFxVX5tto2lKyD1HJWSec= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=x60+W7LxRN5bXxcEBTzkL2csEW5v8D9tcaHD3YJK7Nb9+AQHMpglrZqMvLL6MPfG8f tJLV5N0en5z+QGqu4pxMdlQ7ZjGNVyq9ZoyBHbY5lDK/u3B12xpgUr5MalMYvgxJSsdX H/DoUsGd5f1spDTGeZ7Jc/ko9AdCGFfxBD+RA= MIME-Version: 1.0 Received: by 10.231.192.131 with SMTP id dq3mr106864ibb.61.1268274045853; Wed, 10 Mar 2010 18:20:45 -0800 (PST) In-Reply-To: <98bbb46a1003101807m475f3812gac5b381685d6498a@mail.gmail.com> References: <98bbb46a1003101807m475f3812gac5b381685d6498a@mail.gmail.com> Date: Wed, 10 Mar 2010 21:20:45 -0500 Message-ID: <98bbb46a1003101820h2ef41b09w45ce304fa8c01469@mail.gmail.com> Subject: Re: Multiple Functions and Tables in different Schemas with COmposite Types From: Jason Tesser To: pgsql-jdbc Content-Type: multipart/alternative; boundary=0016367d6ff4fb1f2e04817d0f15 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.638 tagged_above=-10 required=5 tests=AWL=0.960, BAYES_00=-2.599, HTML_MESSAGE=0.001 X-Spam-Level: X-Archive-Number: 201003/45 X-Sequence-Number: 20385 --0016367d6ff4fb1f2e04817d0f15 Content-Type: text/plain; charset=ISO-8859-1 I guess my issues here is that the driver doesn't seem to provide me a way of handling tablenamespace when types of the same name live in 2 different schemas. Can I control this at all? On Wed, Mar 10, 2010 at 9:07 PM, Jason Tesser wrote: > I am getting this error function person_save(testclient.person, unknown, > testclient.email[], unknown) does not exist when using a prepared > statement. > > the reason for this is SELECT oid FROM pg_catalog.pg_type WHERE typname = > $1 > is called and $1 is person > it gets the wrong oid, multiple OID are returned > > I tried to make my type be schema.person but that doesn't work > This IN parameters are composite types so I had to create objects that > extended PGObject to make it work > > My procs all work as I can call from pgadmin by setting searchpath. But > from java with a prepared statement and ? as the IN parameters it fails even > with the searchpath set. > > --0016367d6ff4fb1f2e04817d0f15 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable I guess my issues here is that the driver doesn't seem to provide me a = way of handling tablenamespace when types of the same name live in 2 differ= ent schemas.

Can I control this at all?

On Wed, Mar 10, 2010 at 9:07 PM, Jason Tesser <jasontesser@gmail.com> wrot= e:
I am getting this error function person_save(testclient.person, unknown, te= stclient.email[], unknown)=A0 does not exist=A0 when using a prepared state= ment.

the reason for this is SELECT oid FROM pg_catalog.pg_type WHE= RE typname =3D $1
is called and $1 is person
it gets the wrong oid,=A0 multiple OID are re= turned

I tried to make my type be schema.person but that doesn't= work
This IN parameters are composite types so I had to create objects = that extended PGObject to make it work

My procs all work as I can call from pgadmin by setting searchpath.=A0 = But from java with a prepared statement and ? as the IN parameters it fails= even with the searchpath set.


--0016367d6ff4fb1f2e04817d0f15--