X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id D71589DC99D for ; Fri, 10 Feb 2006 03:35:24 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 17556-05 for ; Fri, 10 Feb 2006 03:35:24 -0400 (AST) X-Greylist: whitelisted by SQLgrey- Received: from smtp1-g19.free.fr (smtp1-g19.free.fr [212.27.42.27]) by postgresql.org (Postfix) with ESMTP id 7804C9DC884 for ; Fri, 10 Feb 2006 03:35:22 -0400 (AST) Received: from [192.168.0.1] (bgn92-4-82-238-212-190.fbx.proxad.net [82.238.212.190]) by smtp1-g19.free.fr (Postfix) with ESMTP id 212715E1F8 for ; Fri, 10 Feb 2006 08:35:22 +0100 (CET) Message-ID: <43EC423A.1050101@free.fr> Date: Fri, 10 Feb 2006 08:35:22 +0100 From: tnodev User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: fr, en MIME-Version: 1.0 To: pgsql-jdbc@postgresql.org Subject: Re: Pb with Spring & Metadat References: <43EB7D89.4050406@free.fr> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0 required=5 tests=[none] X-Spam-Score: 0 X-Spam-Level: X-Archive-Number: 200602/75 X-Sequence-Number: 14672 I have both postgre8.0 and 8.1 on my station. 8.0 on port 5432 and 8.1 on port 54321 when I use pg8.0 and driver postgresql-8.0-315.jdbc3.jar, works fine... when I use pg8.1 and driver postgresql-8.1-404.jdbc3.jar error ! here's the full trace arc.bd.service.exception.ArcException: org.springframework.jdbc.support.MetaDataAccessException: Error while extracting DatabaseMetaData; nested exception is org.postgresql.util.PSQLException: ERROR: function information_schema._pg_keypositions() does not exist at arc.bd.spring.service.TableService.fillRelation1_1(TableService.java:194) at arc.bd.spring.service.TableService.fillTable(TableService.java:107) at arc.bd.spring.service.TableService.getTablePg(TableService.java:67) at arc.bd.spring.service.TestTableService.testTableService(TestTableService.java:15) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ... at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196) Caused by: org.springframework.jdbc.support.MetaDataAccessException: Error while extracting DatabaseMetaData; nested exception is org.postgresql.util.PSQLException: ERROR: function information_schema._pg_keypositions() does not exist at org.springframework.jdbc.support.JdbcUtils.extractDatabaseMetaData(JdbcUtils.java:180) at arc.bd.spring.service.TableService.fillRelation1_1(TableService.java:181) ... 18 more Caused by: org.postgresql.util.PSQLException: ERROR: function information_schema._pg_keypositions() does not exist at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:1471) at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1256) at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:175) at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:389) at org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:314) at org.postgresql.jdbc2.AbstractJdbc2Statement.executeQuery(AbstractJdbc2Statement.java:221) at org.postgresql.jdbc2.AbstractJdbc2DatabaseMetaData.getImportedExportedKeys(AbstractJdbc2DatabaseMetaData.java:3237) at org.postgresql.jdbc2.AbstractJdbc2DatabaseMetaData.getImportedKeys(AbstractJdbc2DatabaseMetaData.java:3533) at arc.bd.spring.callback.ImportedKeyInfo.processMetaData(ImportedKeyInfo.java:28) at org.springframework.jdbc.support.JdbcUtils.extractDatabaseMetaData(JdbcUtils.java:174) ... 19 more Kris Jurka a écrit : > > > On Thu, 9 Feb 2006, TNO wrote: > >> Hello, >> >> I want to get database information using metadata with Spring (1.2.4). >> It's OK with postGre8.0, but when I use postGre8.1, error... >> >> what about this function "information_schema._pg_keypositions()" ? >> >> org.postgresql.util.PSQLException: ERROR: function >> information_schema._pg_keypositions() does not exist >> at > > > If you're going to use a 8.1 server you need the 8.1 driver as well. > > Kris Jurka > > > >