Re: Object Tree not loading on DB2 8.1 for Linux

View: New views
1 Messages — Rating Filter:   Alert me  

Parent Message unknown Re: Object Tree not loading on DB2 8.1 for Linux

by manningr :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On 9/18/07, Gerd Wagner <birgit-und-gerd@...> wrote:

> Hi Rob,
>
> I just fixed a bug that occurred on DB2 8.1 for Linux. In ResultSetReader the
> call _rsmd.getColumnTypeName(1) failed saying invalid column index.
>
> It looks much like a driver bug to me but I think fix is justified because it's
> DB2.
>
> Please have a look at it. You did some changes to that code recently.
>

Yes, I added the code to get the column type name.  It's required to
lookup any custom types installed by a plugin.  There are no custom
types installed by the DB2 plugin - yet - so not really a big deal
that it is not a supported JDBC API method.  In any case, I followed
the plugin API for custom data types pretty much as Glenn wrote it
originally.  My only deviation was to introduce factories for
producing new instances instead of using reflection which also
happened to depend on a particular constructor signature.  I think he
may not have finished it the custom data type framework because there
was no support for custom types in the ResultSetReader - or that class
may have come along afterward; I'm not sure how it came about, I was
just completing the work.
I'll only add an INFO logger message to your try/catch to give an
indication that this is occurring and that custom types might not be
available because of it.

Rob

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Squirrel-sql-develop mailing list
Squirrel-sql-develop@...
https://lists.sourceforge.net/lists/listinfo/squirrel-sql-develop
LightInTheBox - Buy quality products at wholesale price!