From: Kris Jurka <books@ejurka.com>
To: Saurabh Jain <saurabhjain_2010@yahoo.co.in>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Java equivalent data type for chkpass.
Date: Thu, 21 Jan 2010 10:22:23 -0500 (EST)
Message-ID: <alpine.BSO.2.00.1001211021180.25745@leary.csoft.net> (raw)
In-Reply-To: <278314.65519.qm@web8501.mail.in.yahoo.com>
References: <278314.65519.qm@web8501.mail.in.yahoo.com>
On Thu, 21 Jan 2010, Saurabh Jain wrote:
> I am updating chkpass data type column using JDBC preparedstatement, but it
> give me following exception.
>
> org..postgresql.util.PSQLException: ERROR: column "password" is of type
> chkpass but expression is of type character varying
>
> Is anybody aware of the data type we should set for this password column?
>
You should use setObject(index, value, Types.OTHER) to indicate that it's
not the exact type of value (String apparently), but something else
instead.
Kris Jurka
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: books@ejurka.com, saurabhjain_2010@yahoo.co.in
Subject: Re: Java equivalent data type for chkpass.
In-Reply-To: <alpine.BSO.2.00.1001211021180.25745@leary.csoft.net>
References: <278314.65519.qm@web8501.mail.in.yahoo.com> <alpine.BSO.2.00.1001211021180.25745@leary.csoft.net>
* 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