From: | dmp <danap(at)ttc-cmc(dot)net> |
---|---|
To: | Thomas Kellerer <spam_eater(at)gmx(dot)net> |
Cc: | pgsql-jdbc(at)postgresql(dot)org |
Subject: | Re: Bug in DatabaseMetaData.getColumns() with columns based on domains |
Date: | 2010-10-21 17:57:01 |
Message-ID: | 4CC07EED.1030506@ttc-cmc.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-jdbc |
Thomas Kellerer wrote:
> Hi,
>
> consider the following table and domain:
>
> CREATE DOMAIN salary_domain AS numeric(12,2) NOT NULL CHECK (value > 0);
> CREATE TABLE employee (id integer not null, salary salary_domain);
>
> DatabaseMetaData.getColumns(null, "public", "employee", "%");
>
> returns "YES" for the column IS_NULLABLE in the ResultSet whereas it
> should flag that column as not nullable.
>
> Regards
> Thomas
>
>
Perhaps you could provide the Database and JDBC versions to help those that
will need to review the report. I have confirmed on PostgreSQL 9.0.1 and
JDBC postgresql-9.0-801.jdbc3.
Output:
Connection Created
SELECT * FROM "public"."employee" LIMIT 1
Column Name: id IS_NULLABLE: NO
Column Name: salary IS_NULLABLE: YES
Connection Closed
Attached files needed to setup test case and other reviewed data.
danap.
Attachment | Content-Type | Size |
---|---|---|
PostgreSQL_JDBC.java | text/plain | 5.7 KB |
public_employee_20101021.sql | text/plain | 585 bytes |
public_employee_columns.sql | text/plain | 326 bytes |
employee_columns_20101021.pdf | application/pdf | 2.1 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2010-10-21 17:57:59 | Re: [JDBC] Support for JDBC setQueryTimeout, et al. |
Previous Message | Bruce Momjian | 2010-10-21 17:49:24 | Re: [JDBC] Support for JDBC setQueryTimeout, et al. |