From: Robert Manning <robert.manning@gm...> - 2007-09-18 22:50:34
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
> 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.