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

Re: DatabaseMetaData.getCatalogs()

From: jason(at)netspade(dot)com
To: Peter Eisentraut <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: DatabaseMetaData.getCatalogs()
Date: 2001-07-09 17:44:57
Message-ID: 2814131.994700696717.JavaMail.jason@www2.kc.aoindustries.com (view raw or flat)
Thread:
Lists: pgsql-jdbc
[[[ Original Message from Peter Eisentraut <peter_e(at)gmx(dot)net> ]]]

> The list of columns you return is wrong.  There is no COLUMN_NAME column.

Does PostgreSQL actually support privileges for individual columns?

> TABLE_CAT should be filled in with the database name (should be available
> via getConnection().getCatalog()).  A missing TABLE_SCHEM should be set to
> null (in the SQL sense).  Also you have GRANTOR and GRANTEE mixed up,
> besides the fact that PostgreSQL doesn't store the GRANTEE at all (yet).

Sorry about that. Surely the grantee is the username in the relacl field e.g. {"=","jason=arwR"} and the grantor is the owner of the table?

Jason

Responses

pgsql-jdbc by date

Next:From: Joseph ShraibmanDate: 2001-07-09 18:14:31
Subject: Re: Patch to remove connection hook and JDK 1.3 dependencies
Previous:From: Steve WamplerDate: 2001-07-09 17:27:28
Subject: Re: Too much data received?

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