From: | Kris Jurka <books(at)ejurka(dot)com> |
---|---|
To: | Oliver Jowett <oliver(at)opencloud(dot)com> |
Cc: | <pgsql-jdbc(at)postgresql(dot)org> |
Subject: | Re: DatabaseMetaData oddities |
Date: | 2003-02-03 18:00:11 |
Message-ID: | Pine.LNX.4.33.0302031230450.9706-300000@leary.csoft.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-jdbc |
The getTypeInfo patch uses functionality not in Java 1.1 so it cannot be
used in the jdbc1 package.
The JDBC 3 additions look reasonable.
The getMaxTableNameLength patch is not a good idea. You're changing
something general to fix a very specific problem. I would recomend using
explicit constraint names or petitioning backend developers to create
non-conflicating auto generated names.
The toString patch is good. I have changed it to return "" instead of
super.toString() which I believe is a more reasonable value. I have also
fixed a problem with printing PreparedStatements with some parameters not
set. Attached is a test case and the new patch.
Kris Jurka
On Mon, 3 Feb 2003, Oliver Jowett wrote:
> Is there any interest in these patches? Should I resend them elsewhere?
>
> -O
>
> ----- Forwarded message from Oliver Jowett <oliver(at)opencloud(dot)com> -----
>
> Date: Tue, 17 Dec 2002 19:01:33 +1300
> To: pgsql-jdbc(at)postgresql(dot)org
> Subject: [JDBC] DatabaseMetaData oddities
> From: Oliver Jowett <oliver(at)opencloud(dot)com>
>
> These patches fix some oddities in the postgresql JDBC driver's
> implementation of DatabaseMetaData.
>
> The patches are against recent CVS; I've used them against a 7.2.3 server
> and the current CVS (7.4devel) server successfully.
>
> Quick summaries:
>
> pgsql_getTypeInfo-ordering.patch:
> correct ordering of results from DatabaseMetaData.getTypeInfo().
>
> pgsql_more-jdbc3-metadata.patch:
> implement some unimplemented JDBC3 DatabaseMetaData methods.
>
> pgsql_reduce-table-name-length.patch:
> reduce getMaxTableNameLength() by 5 to account for the server
> appending _pkey to generate an index name.
>
> and one non-metadata patch:
>
> pgsql_null-statement-tostring.patch:
> avoid NullPointerException in AbstractJdbc1Statement.toString()
>
> Hopefully these are useful to someone..
>
> -O
>
> [...]
>
> ----- End forwarded message -----
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo(at)postgresql(dot)org so that your
> message can get through to the mailing list cleanly
>
Attachment | Content-Type | Size |
---|---|---|
StmtNpe.java | text/plain | 505 bytes |
stmtnpe.patch | text/plain | 1.3 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Kris Jurka | 2003-02-03 18:20:53 | Re: PreparedStatement.setBytes on OIDs |
Previous Message | Barry Lind | 2003-02-03 17:08:01 | Re: DatabaseMetaData oddities |