Skip site navigation (1) Skip section navigation (2)

Re: DatabaseMetaData patch

From: Rene Pijlman <rpijlman(at)wanadoo(dot)nl>
To: Liam Stewart <liams(at)redhat(dot)com>
Cc: pgsql-patches(at)postgresql(dot)org
Subject: Re: DatabaseMetaData patch
Date: 2001-08-17 21:17:45
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-patches
On Fri, 17 Aug 2001 15:59:38 -0400, you wrote:
>Here is a small patch for the DatabaseMetaData class (both jdbc1 and
>jdbc2) that gets the unimplemented methods that should return a
>ResultSet to throw an SQLException -- correct according the JDBC API.
>They used to return null. 

Looks good. Fix in 7.2 documented on (work
in progress).

>Also the getTypeInfo method will throw an
>SQLException if the ExecSQL call returns null.


   throw new PSQLException("metadata unavailable");

in getTypeInfo() be something like: 

   throw new PSQLException("postgresql.meta.unavailable");

to allow translation of the error message in the
errors*.properties files?

René Pijlman

In response to


pgsql-patches by date

Next:From: Peter EisentrautDate: 2001-08-17 23:16:43
Subject: Re: encoding names
Previous:From: John GrayDate: 2001-08-17 20:34:31
Subject: New version of XML support routines (0.2)

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group