Skip site navigation (1) Skip section navigation (2)

Question

From: Franco Bruno Borghesi <franco(at)akyasociados(dot)com(dot)ar>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: Question
Date: 2004-11-13 16:51:06
Message-ID: 41963B7A.8080900@akyasociados.com.ar (view raw or flat)
Thread:
Lists: pgsql-jdbc
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.



Responses

pgsql-jdbc by date

Next:From: Kris JurkaDate: 2004-11-13 17:04:52
Subject: Re: Question
Previous:From: Kris JurkaDate: 2004-11-11 10:03:01
Subject: Re: Chinese translation update

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group