| From: | Jason Davies <jason(at)netspade(dot)com> |
|---|---|
| To: | PostgreSQL JDBC <pgsql-jdbc(at)postgresql(dot)org> |
| Subject: | Patch for ResultSetMetaData.getColumnClassName(), ResultSet.getObject() |
| Date: | 2002-06-09 00:10:30 |
| Message-ID: | 20020608191030.A23591@netspade.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-jdbc |
Hi,
This patch handles Types.{SMALLINT,DATE,TIME,BINARY,VARBINARY,ARRAY} properly in ResultSetMetaData.getColumnClassName(int col). The default return value has been improved slightly too.
In the case of Types.{BINARY,VARBINARY} it should be a byte[] class name, but AFAIK no such thing exists therefore I used "java.lang.Object" instead.
Also I optimized just a couple of things in ResultSet.getObject: there's no need to create a new Boolean object every time and there's no need to use (short)getInt(...) since getShort(...) does the same thing :-)
Thank you,
--Jase
--
Jason Davies
jason(at)netspade(dot)com
| Attachment | Content-Type | Size |
|---|---|---|
| patch.diff | text/plain | 5.5 KB |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | M. T. Argent | 2002-06-09 15:19:58 | Compiling postgres to is jdbc |
| Previous Message | Craig Longman | 2002-06-08 14:21:28 | more incorrect values for DatabaseMetaData.getColumns() |