pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: dmp <danap@ttc-cmc.net>
To: rcohen@e1b.org, PostgreSQL JDBC <pgsql-jdbc@postgresql.org>
Subject: Re: sql type reported for enum
Date: Wed, 19 Aug 2015 18:40:16 -0600
Message-ID: <55D521F0.60503@ttc-cmc.net> (raw)
In-Reply-To: <OF710D760D.ABBEB025-ON85257EA6.0052FC2C-85257EA6.00646726@e1b.org>
References: <OF37F46C75.EF149EDF-ON85257EA5.0073D73F-85257EA5.00755ED5@e1b.org>
	<401084E5E73F4241A44F3C9E6FD79428011BBAC39B@exch-01>
	<CADK3HHJPE9+kKkbz5WGZPKhwh-pRSaOF=HT+1xU=jtiZTdN2hg@mail.gmail.com>
	<OF710D760D.ABBEB025-ON85257EA6.0052FC2C-85257EA6.00646726@e1b.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-jdbc>

rcohen@e1b.org wrote:
> It breaks the jdbc meta-data; that is for an enum column
>
>          columnsResultSet./getInt/("DATA_TYPE")
>
> now returns Types.VARCHAR.
>
> This breaks some of my code;  it also breaks DBUnit's support for postgres.  Now
> I can code around this, but should the metadata be reporting that an enum column
> is of  type Types.VARCHAR? This seems like incorrect behavior.
>
> Yes, enums should probably be avoided, but that isn't an option for me
> right now.
>
> Ross

Seems an Enum is only a set of characters and the MySQL database does define it
as such. So how does DBUnit handle that databases enum types?


Name		Class			Type	Type Name	
enum_type	java.lang.String	1	CHAR

danap.	








-- 
Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-jdbc



view thread (11+ messages)  latest in thread

Message-ID: <55D521F0.60503@ttc-cmc.net>
Permalink:  ../55D521F0.60503@ttc-cmc.net/
Also on:    postgresql.org/message-id/55D521F0.60503@ttc-cmc.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: danap@ttc-cmc.net
  Subject: Re: sql type reported for enum
  In-Reply-To: <55D521F0.60503@ttc-cmc.net>
  References: <OF37F46C75.EF149EDF-ON85257EA5.0073D73F-85257EA5.00755ED5@e1b.org> <401084E5E73F4241A44F3C9E6FD79428011BBAC39B@exch-01> <CADK3HHJPE9+kKkbz5WGZPKhwh-pRSaOF=HT+1xU=jtiZTdN2hg@mail.gmail.com> <OF710D760D.ABBEB025-ON85257EA6.0052FC2C-85257EA6.00646726@e1b.org> <55D521F0.60503@ttc-cmc.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox