pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jason Tesser <jasontesser@gmail.com>
To: pgsql-jdbc <pgsql-jdbc@postgresql.org>
Subject: Multiple Functions and Tables in different Schemas with COmposite Types
Date: Wed, 10 Mar 2010 21:07:31 -0500
Message-ID: <98bbb46a1003101807m475f3812gac5b381685d6498a@mail.gmail.com> (raw)

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.

view thread (4+ messages)  latest in thread

Message-ID: <98bbb46a1003101807m475f3812gac5b381685d6498a@mail.gmail.com>
Permalink:  ../98bbb46a1003101807m475f3812gac5b381685d6498a@mail.gmail.com/
Also on:    postgresql.org/message-id/98bbb46a1003101807m475f3812gac5b381685d6498a@mail.gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: jasontesser@gmail.com
  Subject: Re: Multiple Functions and Tables in different Schemas with COmposite Types
  In-Reply-To: <98bbb46a1003101807m475f3812gac5b381685d6498a@mail.gmail.com>
  References: <98bbb46a1003101807m475f3812gac5b381685d6498a@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox