Hi,

I've been developing a program with the postgres jdbc 2 driver, jdk-1.3.0 and
postgres 6.5.

When I start my program up it bombs like so:

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)

Does anyone know what any of this means...?

Regards,
Youenn

--------------------------------------------------------------------------------
Universitï¿½ de Bretagne sud                               http://www.univ-ubs.fr/


Fri, 17 May 2002 10:02:18 +0200
youenn.ballouard2@etud.univ-ubs.fr
Trouble with pg_encoding_to_char
It means you are running a jdbc driver from 7.2 (perhaps 7.1, but I 
think 7.2) against a 6.5 database.  While we try to make the jdbc driver 
backwardly compatable, we don't go back that far.  You really should 
consider upgrading your database to something remotely current.

thanks,
--Barry

youenn.ballouard2@etud.univ-ubs.fr wrote:
> Hi,
> 
> I've been developing a program with the postgres jdbc 2 driver, jdk-1.3.0 and
> postgres 6.5.
> 
> When I start my program up it bombs like so:
> 
> 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)
> 
> Does anyone know what any of this means...?
> 
> Regards,
> Youenn
> 
> --------------------------------------------------------------------------------
> Universitï¿½ de Bretagne sud                               http://www.univ-ubs.fr/
> 
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org
> 



Fri, 17 May 2002 18:54:32 -0700
Barry Lind <barry@xythos.com>
Re: Trouble with pg_encoding_to_char