pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Saurabh Jain <saurabhjain_2010@yahoo.co.in>
To: pgsql-jdbc@postgresql.org
Subject: Java equivalent data type for chkpass.
Date: Thu, 21 Jan 2010 20:17:29 +0530 (IST)
Message-ID: <278314.65519.qm@web8501.mail.in.yahoo.com> (raw)

Hello,

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
  Hint: You will need to rewrite or cast the expression.
  Position: 73
    at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2062)
    at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1795)
    at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:257)
    at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:479)
    at org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:367)
    at org.postgresql.jdbc2.AbstractJdbc2Statement.executeUpdate(AbstractJdbc2Statement.java:321)
    at com.servient.processor.utilities.ToolUtils.main(ToolUtils.java:58)

Is anybody aware of the data type we should set for this password column?

Thanks
--Saurabh


      The INTERNET now has a personality. YOURS! See your Yahoo! Homepage. http://in.yahoo.com/

view thread (2+ messages)  latest in thread

Message-ID: <278314.65519.qm@web8501.mail.in.yahoo.com>
Permalink:  ../278314.65519.qm@web8501.mail.in.yahoo.com/
Also on:    postgresql.org/message-id/278314.65519.qm@web8501.mail.in.yahoo.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: saurabhjain_2010@yahoo.co.in
  Subject: Re: Java equivalent data type for chkpass.
  In-Reply-To: <278314.65519.qm@web8501.mail.in.yahoo.com>
  References: <278314.65519.qm@web8501.mail.in.yahoo.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