Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZSDhS-00061W-3n for pgsql-jdbc@arkaria.postgresql.org; Thu, 20 Aug 2015 00:27:22 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZSDhR-0004jn-G5 for pgsql-jdbc@arkaria.postgresql.org; Thu, 20 Aug 2015 00:27:21 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZSDhR-0004jg-2p for pgsql-jdbc@postgresql.org; Thu, 20 Aug 2015 00:27:21 +0000 Received: from rad0.itstriangle.com ([199.38.107.90]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZSDhM-0005Wh-Aj for pgsql-jdbc@postgresql.org; Thu, 20 Aug 2015 00:27:19 +0000 Received: from itstriangle.com (localhost [127.0.0.1]) by rad0.itstriangle.com (8.14.4/8.14.4) with ESMTP id t7K0R4Ug021674; Wed, 19 Aug 2015 20:27:05 -0400 Received: FROM [192.168.157.52] ([216.220.4.222]) BY itstriangle.com WITH ESMTP ; Wed, 19 Aug 2015 20:27:02 -0400 Message-ID: <55D521F0.60503@ttc-cmc.net> Date: Wed, 19 Aug 2015 18:40:16 -0600 From: dmp User-Agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Firefox/24.0 SeaMonkey/2.21 MIME-Version: 1.0 To: rcohen@e1b.org, PostgreSQL JDBC Subject: Re: sql type reported for enum References: <401084E5E73F4241A44F3C9E6FD79428011BBAC39B@exch-01> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-jdbc Precedence: bulk Sender: pgsql-jdbc-owner@postgresql.org 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