Received: from maia.hub.org (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 0F09363FD9A for ; Thu, 21 Jan 2010 10:54:26 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 94017-07 for ; Thu, 21 Jan 2010 14:54:06 +0000 (UTC) X-Greylist: delayed 00:06:41.422853 by SQLgrey-1.7.6 Received: from web8501.mail.in.yahoo.com (web8501.mail.in.yahoo.com [202.43.219.163]) by mail.postgresql.org (Postfix) with SMTP id 78278632B6D for ; Thu, 21 Jan 2010 10:54:14 -0400 (AST) Received: (qmail 65962 invoked by uid 60001); 21 Jan 2010 14:47:29 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.in; s=s1024; t=1264085249; bh=hELLx7CT0b+ezxwS1z9908CDMWw/Gaxo5BmMKM3amEE=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=pLzVL1VO79zjU5eIITik5hNn21c4x3XaeqAAyR2vBVCjEr2i3/ZkBRPqd67EY8sxoPqslWn5jNLFjE43zahdhxsmgPS8Wqjgy+8uCEmUX4KpndF82R01CWdADr/E7fdYM/hqajYheC5zx1EKMJStdv5xdbkMe1I3iaxaurmrbqA= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.co.in; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=Deu3tsyR8nOZCuSRBopNdAkmExtyYroH4RNLjEnNgDk5ACGq4t+sJOLa7FTJB6yH5/ydoKaZ+MucC7c7epGdN8hl4Ku1RLwNzZ25+ft9Fn8wlr1yO1N7CqPaM4LDPRbL4RyLqjTsnn14eO5sZeIhUwOvPVmjCiEiIxLe787nH9I=; Message-ID: <278314.65519.qm@web8501.mail.in.yahoo.com> X-YMail-OSG: cuZOrZoVM1ld4xYNJl01VLAQxmuTliLFvq9vzsa50DR.QMUZUQshVosY7PdjVBc7whKL66oiGp6kIxTxdff9vszg36.hvsjhmftY.iJgYGgh7gHVcMX6.W.L7kn5K5APOBVk7PhGcl1nUX2lquuQSVLcvYU_eD9Sv.jHBXhY5WyedVchyuGuUFkFOg4Tn5YIX5BPdjw0P1.nRRvj0EmrH1rtV_KclFggToEq5pW5lmiq3yctCHkRuCvsqjTzOXiMI4hQRanKEQt48UeIeLDNe6gGeg..xTPuB6H01Z.QzgfQeonrqozeTzfFkivFNjBmGc2S5oKg8Cg61b3RbX1TkoP7Fg-- Received: from [202.71.143.50] by web8501.mail.in.yahoo.com via HTTP; Thu, 21 Jan 2010 20:17:29 IST X-Mailer: YahooMailRC/272.7 YahooMailWebService/0.8.100.260964 Date: Thu, 21 Jan 2010 20:17:29 +0530 (IST) From: Saurabh Jain Subject: Java equivalent data type for chkpass. To: pgsql-jdbc@postgresql.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-13017314-1264085249=:65519" X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.002 tagged_above=-10 required=5 tests=BAYES_50=0.001, HTML_MESSAGE=0.001 X-Spam-Level: X-Archive-Number: 201001/61 X-Sequence-Number: 20257 --0-13017314-1264085249=:65519 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hello,=0A=0AI am updating chkpass data type column using JDBC preparedstate= ment, but it give me following exception.=0A=0Aorg.postgresql.util.PSQLExce= ption: ERROR: column "password" is of type chkpass but expression is of typ= e character varying=0A Hint: You will need to rewrite or cast the expressi= on.=0A Position: 73=0A at org.postgresql.core.v3.QueryExecutorImpl.rece= iveErrorResponse(QueryExecutorImpl.java:2062)=0A at org.postgresql.core.= v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1795)=0A at o= rg.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:257)= =0A at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2= Statement.java:479)=0A at org.postgresql.jdbc2.AbstractJdbc2Statement.ex= ecuteWithFlags(AbstractJdbc2Statement.java:367)=0A at org.postgresql.jdb= c2.AbstractJdbc2Statement.executeUpdate(AbstractJdbc2Statement.java:321)=0A= at com.servient.processor.utilities.ToolUtils.main(ToolUtils.java:58)= =0A=0AIs anybody aware of the data type we should set for this password col= umn?=0A=0AThanks=0A--Saurabh=0A=0A=0A The INTERNET now has a personali= ty. YOURS! See your Yahoo! Homepage. http://in.yahoo.com/ --0-13017314-1264085249=:65519 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
Hello,

I am updating chkpass data type column u= sing 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
  &n= bsp; at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(Query= ExecutorImpl.java:2062)
    at org.postgresql.core.v3.Que= ryExecutorImpl.processResults(QueryExecutorImpl.java:1795)
  &= nbsp; at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl= .java:257)
    at org.postgresql.jdbc2.AbstractJdbc2State= ment.execute(AbstractJdbc2Statement.java:479)
    at org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2= Statement.java:367)
    at org.postgresql.jdbc2.AbstractJ= dbc2Statement.executeUpdate(AbstractJdbc2Statement.java:321)
  = ;  at com.servient.processor.utilities.ToolUtils.main(ToolUtils.java:5= 8)

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

Thanks
--Saurabh

=0A=0A

=0A=0A=0A= =0A
=0AThe INTERNET now has a personality. = YOURS! See your Yahoo! Homepage. --0-13017314-1264085249=:65519--