[Fwd: [Fwd: Re: [JDBC] Patch for ResultSetMetaData.getColumnClassName(), ResultSet.getObject()]]

From: Barry Lind <barry(at)xythos(dot)com>
To: jason(at)netspade(dot)com
Cc: pgman(at)candle(dot)pha(dot)pa(dot)us, pgsql-patches <pgsql-patches(at)postgresql(dot)org>
Subject: [Fwd: [Fwd: Re: [JDBC] Patch for ResultSetMetaData.getColumnClassName(), ResultSet.getObject()]]
Date: 2002-06-24 05:12:22
Message-ID: 3D16AA36.2050903@xythos.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

Patch applied.

thanks,
--Barry

-------- Original Message --------
Subject: Re: [JDBC] Patch for ResultSetMetaData.getColumnClassName(),
ResultSet.getObject()
Date: Sat, 15 Jun 2002 20:42:14 -0400 (EDT)
From: Bruce Momjian
To: Jason Davies
CC: PostgreSQL JDBC

Jdbc folks, have you reviewed this patch?

---------------------------------------------------------------------------

Jason Davies wrote:
> 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, skipping... ]

>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister
> command
> (send "unregister YourEmailAddressHere" to majordomo(at)postgresql(dot)org)

--
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

Attachment Content-Type Size
/bjm/0 text/plain 5.5 KB
file:///tmp/nsmail-2.txt text/plain 152 bytes

Browse pgsql-patches by date

  From Date Subject
Next Message Barry Lind 2002-06-24 05:16:05 Re: [PATCH]errors_zh_TW.properties for JDBC driver
Previous Message Hiroshi Inoue 2002-06-24 05:10:51 Re: ODBC Patch to prevent setting of KSQO on 7.3+ servers