Re: Metadata for tables, schema, and numeric

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Mike Finn <mike(dot)finn(at)tacticalExecutive(dot)com>
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: Metadata for tables, schema, and numeric
Date: 2001-07-04 15:06:39
Message-ID: 200107041506.f64F6dg05655@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Please try the newer jdbc driver at:

http://jdbc.fastcrypt.com

This may fix those problems.

> Using 7.1 the following don't ever seem to return anything
>
> getCatalogName(int)
> getSchemaName(int)
> getTableName(int)
>
> has this been implemented in a newer version of the JDBC driver
> If yes... where to get it?
> If no... is it planned?
>
> As well
> getPrecision(int)
> always returns 0 for type numeric(p,s). I checked the source for the driver
> (jdbc2) and it seems to always set this to zero as it is not a type checked
> for in the switch list (or cascading if's -- it was yesterday when I checked).
>
> Is this because the backend does not provide this information to a client or
> is it simply a matter of little more code to the driver to explicitly check
> for a few more types?
>
>
> gb=> \d customer
> Table "customer"
> Attribute | Type | Modifier
> ---------------------------+---------------+----------
> seqcustomer | numeric(15,0) | not null
> name | text | not null
> <other fields>
>
> and executing this query
>
> select customer.seqCustomer from customer
>
> gives the following
>
> getColumnName: seqcustomer
> getCatalogName:
> getColumnLabel: seqcustomer
> getSchemaName:
> getTableName:
> getPrecision: 0
> getScale: 0
>
>
> Thanks in advance.
> Mike
>
> ===================
> Mike Finn
> Tactical Executive Systems
> mike(dot)finn-pgsql-jdbc(at)tacticalExecutive(dot)com
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: Have you searched our list archives?
>
> http://www.postgresql.org/search.mpl
>

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Bruce Momjian 2001-07-04 15:07:52 Re: Patch to remove connection hook and JDK 1.3 dependencies
Previous Message Mike Finn 2001-07-04 13:56:39 Metadata for tables, schema, and numeric