From: Tom Lane <tgl@sss.pgh.pa.us>
To: Steven Dahlin <pgdb.sldahlin@gmail.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: getting PSQLException Can't infer the SQL type to use with Native Query call
Date: Mon, 02 May 2011 12:30:18 -0400
Message-ID: <26841.1304353818@sss.pgh.pa.us> (raw)
In-Reply-To: <BANLkTim6xx=1SoYg7XY_J6iQ7cPurU5MKg@mail.gmail.com>
References: <BANLkTim6xx=1SoYg7XY_J6iQ7cPurU5MKg@mail.gmail.com>
Steven Dahlin <pgdb.sldahlin@gmail.com> writes:
> In trying to call a postgresql 8.4 stored function I am passing a
> class as well as a List (I have to save a master record as well as the
> detail records). This is being done with a native query using
> EclipseLink 2.1. However, I am getting back a message for the first
> item:
> PSQLException: Can't infer the SQL type to use for an instance of
> com.hwcs.veri.shared.dto.MyClass. Use setObject() with an explicit
> Types value to specify the type to use.
That looks like a complaint from JDBC, so possibly you'd have better
luck asking on pgsql-jdbc.
regards, tom lane
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 using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: tgl@sss.pgh.pa.us, pgdb.sldahlin@gmail.com
Subject: Re: getting PSQLException Can't infer the SQL type to use with Native Query call
In-Reply-To: <26841.1304353818@sss.pgh.pa.us>
* 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