View Single Post

   
  #2 (permalink)  
Old 04-15-2008, 11:00 PM
Oliver Jowett
 
Posts: n/a
Default Re: PGResultSetMetaData

Barry Lind wrote:
>
>>>(Kris, any reason why PGResultSetMetadata does not extend
>>>ResultSetMetadata?)

>
>
> By ResultSetMetadata I assume you mean java.sql.ResultSetMetadata. The
> problem with having PGResultSetMetadata extend that interface is which
> one would you end up extending? The JDBC1, JDBC2, JDBC3 or JDBC4
> version?


Whichever one you're building against.. they're all called
java.sql.ResultSetMetadata.

The reason I ask is that the current scheme is a little awkward to use
if you want to use both the standard and extra interface methods. Either
you need two variables providing different interface views on the same
object, or you do a lot of casting.

-O


---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faq

Reply With Quote