Received: from maia.hub.org (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id C88D86323EA for ; Wed, 10 Mar 2010 22:07:44 -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 26157-08 for ; Thu, 11 Mar 2010 02:07:25 +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 D0EFF633F22 for ; Wed, 10 Mar 2010 22:07:33 -0400 (AST) Received: by iwn8 with SMTP id 8so1113575iwn.28 for ; Wed, 10 Mar 2010 18:07:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=U1yhPRdkBU1/dzn5zfv3kjW+eKZ8tdUEybOxx4Aj6qI=; b=WRHWUpK/fBi1mtEeRRWSRNe0wr0vEJoVqZBiJyrztZ5NC3lJDkLsKn9g3OaGLj6d5G rAMPe7Tnuw0z6XmR0BKpRBgYjCNkWuum+cwTcx6Mdn4fS7rNc1Oy0plwmtR0BEeMopy4 dh8GRTsm9bc2K1UxL3PzgxFNtVGWNYZ0ftM3c= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=U8HT0emgQfVtYIzT42f0ff+vA1iT0WLfzhuiYpswICa+gSXlhNJG2XxFWv0xnJAvcJ NP9OJDPHOb4MZWnqGdyKnZ8vKteZKev/ACRWWtia+31JwVIGgaJPflgYYL9fnZoYDtKa XzoZZKuUADOT2ktmmTFqVjTz8bKaJserY5DrY= MIME-Version: 1.0 Received: by 10.231.154.207 with SMTP id p15mr238225ibw.71.1268273251702; Wed, 10 Mar 2010 18:07:31 -0800 (PST) Date: Wed, 10 Mar 2010 21:07:31 -0500 Message-ID: <98bbb46a1003101807m475f3812gac5b381685d6498a@mail.gmail.com> Subject: Multiple Functions and Tables in different Schemas with COmposite Types From: Jason Tesser To: pgsql-jdbc Content-Type: multipart/alternative; boundary=0050450140c4a559a804817ce06c X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.785 tagged_above=-10 required=5 tests=AWL=0.324, BAYES_05=-1.11, HTML_MESSAGE=0.001 X-Spam-Level: X-Archive-Number: 201003/44 X-Sequence-Number: 20384 --0050450140c4a559a804817ce06c Content-Type: text/plain; charset=ISO-8859-1 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. --0050450140c4a559a804817ce06c Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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.

--0050450140c4a559a804817ce06c--