Skip site navigation (1) Skip section navigation (2)

Re: Patch for handling unknown data types in jdbc driver

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Dave(at)micro-automation(dot)net
Cc: "'PostgreSQL Patches'" <pgsql-patches(at)postgresql(dot)org>
Subject: Re: Patch for handling unknown data types in jdbc driver
Date: 2001-10-04 15:46:45
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-patches
Patch applied.  Thanks.

> 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, skipping... ]

> ---------------------------(end of broadcast)---------------------------
> TIP 3: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo(at)postgresql(dot)org so that your
> message can get through to the mailing list cleanly

  Bruce Momjian                        |
  pgman(at)candle(dot)pha(dot)pa(dot)us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026

In response to

pgsql-patches by date

Next:From: Bruce MomjianDate: 2001-10-04 15:47:56
Subject: Re: [PATCH] Patch for more verbose error reporting in pl/tcl
Previous:From: Bruce MomjianDate: 2001-10-04 15:45:47
Subject: Re: Patch to make int8 values work inside plpython functions

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group