db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Army <qoz...@sbcglobal.net>
Subject Re: [jira] Updated: (DERBY-499) Expose BOOLEAN datatype to end users
Date Wed, 23 Nov 2005 17:34:53 GMT
Daniel John Debrunner wrote:

>>Okay, sounds good.  Then what should we return for the metadata "class
>>name"? Esp. ResultSetMetaData.getColumnClassName()?
> 
> How about "java.sql.SQLXML" ?

I guess that would work since the user's attempt to call "getObject()" would 
fail before the class was instantiated.  But something about returning a 
non-existent (for JDBC 3.0) class name seemed funny to me.  *shrug*  Maybe 
that's the way to go, though...

Another option is to simply return "java.lang.Object" since, per the JDBC API, 
"ResultSet.getObject _may_ return a _subclass_ of the class returned by this 
method" (emphasis is my own).  Then we'd at least be returning a valid JDBC 3.0 
class name.  When JDBC 4.0 support is available, changing to "java.sql.SQLXML" 
seems okay to me; i.e. there wouldn't be any compatibility problems there, would 
there?

Army


Mime
View raw message