Received: from localhost.localdomain (postgresql.org [64.49.215.8]) by localhost (Postfix) with ESMTP id C72F4475B2E for ; Tue, 28 May 2002 08:12:45 -0400 (EDT) Received: from net2.micro-automation.com (net2.micro-automation.com [64.7.141.29]) by postgresql.org (Postfix) with SMTP id 395F44759CB for ; Tue, 28 May 2002 08:11:58 -0400 (EDT) Received: (qmail 29985 invoked from network); 28 May 2002 12:12:00 -0000 Received: from dcdsl.ebox.com (HELO ?192.168.123.128?) (64.7.143.116) by net2.micro-automation.com with SMTP; 28 May 2002 12:12:00 -0000 Subject: Re: bug in jdbc From: Dave Cramer To: Marek Koniew Cc: "pgsql-jdbc@postgresql.org" In-Reply-To: <000801c20259$36b26100$14876ad4@juni.gliwice.pl> References: <000801c20259$36b26100$14876ad4@juni.gliwice.pl> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.3 (1.0.3-6) Date: 28 May 2002 08:11:20 -0400 Message-Id: <1022587880.1694.14.camel@inspiron.cramers> Mime-Version: 1.0 X-AntiVirus: scanned for viruses by AMaViS 0.2.1 (http://amavis.org/) X-Archive-Number: 200205/112 X-Sequence-Number: 3936 I think this is a case of using the jdbc 1.1 driver in a 1.2 environment? There are similiar messages in the archive Dave On Thu, 2002-05-23 at 08:56, Marek Koniew wrote: > i got the buggy driver from http://jdbc.postgresql.org/download/pgjdbc2.jar > jdbc7.0-1.2 driver working OK > > there is exception : > > Something unusual has occured to cause the driver to fail. Please report this exception: Exception: java.sql.SQLException: ERROR: No such function 'pg_encoding_to_char' with the specified attributes > > Stack Trace: > > java.sql.SQLException: ERROR: No such function 'pg_encoding_to_char' with the specified attributes > > at org.postgresql.core.QueryExecutor.execute(QueryExecutor.java:94) > at org.postgresql.Connection.ExecSQL(Connection.java:398) > at org.postgresql.Connection.ExecSQL(Connection.java:381) > at org.postgresql.Connection.openConnection(Connection.java:314) > at org.postgresql.Driver.connect(Driver.java:149) > at java.sql.DriverManager.getConnection(DriverManager.java:517) > at java.sql.DriverManager.getConnection(DriverManager.java:177) > at board.userbase(board.java) > at board.doPost(board.java) > at board.doGet(board.java) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:271) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:311) > at org.apache.jserv.JServConnection.processRequest(JServConnection.java:317) > at org.apache.jserv.JServConnection.run(JServConnection.java:188) > at java.lang.Thread.run(Thread.java:484) > End of Stack Trace > >