Patch for handling unknown data types in jdbc driver

From: "Dave Cramer" <Dave(at)micro-automation(dot)net>
To: "'PostgreSQL Patches'" <pgsql-patches(at)postgresql(dot)org>
Subject: Patch for handling unknown data types in jdbc driver
Date: 2001-10-03 18:57:14
Message-ID: 003a01c14c3d$3b162e70$c201a8c0@inspiron
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

Attached is a patch which deals with

select 'id' as xxx from table

The issue is:

When the driver gets a data type which does not map into the SQL.Types
it attempts to load the object into a java object. Eventually throwing
an exception indicating that the type "unknown" was not found.

Since the backend defaults "unknown" types to text it was suggested that
the jdbc driver do the same.

This patch does just that.

I have tested it on the above select statement as well as a small
program that serializes, and deserializes a class

Dave

Attachment Content-Type Size
unknown.diff application/octet-stream 1.9 KB

In response to

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Bruce Momjian 2001-10-03 19:11:15 Re: Patch to make int8 values work inside plpython functions
Previous Message Bradley McLean 2001-10-03 18:48:28 Patch to make int8 values work inside plpython functions