pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Franco Bruno Borghesi <franco@akyasociados.com.ar>
To: pgsql-jdbc@postgresql.org
Subject: Question
Date: Sat, 13 Nov 2004 13:51:06 -0300
Message-ID: <41963B7A.8080900@akyasociados.com.ar> (raw)

Hi all.

I've donwloaded pg80b1.308.jdbc3.jar from jdbc.postgresql.org and now my 
calls to PreparedStatement.setObject(int, Object) are failing, when they 
used to work with the previous driver version.

The message I get is: "Cant infer the SQL type to use for an instance of 
{0}. Use setObject() with an explicit Types value to specify the type to 
use.".

Calling setObject(int, Object, Types.xxxxx) works ok, but I need 
setObject(int, Object). I've tryied setObject(int, Character) and 
setObject(int, java.util.Date) and both fail with the same message. 
Haven't tested other cases.

Is there anything that has changed? I've searched the lists but I didn't 
find anything about it.
Thanks in advance.





view thread (17+ messages)  latest in thread

Message-ID: <41963B7A.8080900@akyasociados.com.ar>
Permalink:  ../41963B7A.8080900@akyasociados.com.ar/
Also on:    postgresql.org/message-id/41963B7A.8080900@akyasociados.com.ar

 · 

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: franco@akyasociados.com.ar
  Subject: Re: Question
  In-Reply-To: <41963B7A.8080900@akyasociados.com.ar>
  References: <41963B7A.8080900@akyasociados.com.ar>

* 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