X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 4A2C652805 for ; Wed, 18 May 2005 05:31:31 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 19401-07 for ; Wed, 18 May 2005 08:31:22 +0000 (GMT) Received: from mnc.ch (www.mnc.ch [212.23.250.43]) by svr1.postgresql.org (Postfix) with ESMTP id 0AFF752800 for ; Wed, 18 May 2005 05:31:20 -0300 (ADT) Received: (qmail 1659 invoked from network); 18 May 2005 10:31:20 +0200 Received: from 62-2-77-202.business.cablecom.ch (HELO meuh.mnc.ch) (62.2.77.202) by www.mnc.ch with SMTP; 18 May 2005 10:31:20 +0200 Received: by meuh.mnc.ch (Postfix, from userid 1000) id C39C931E798; Wed, 18 May 2005 10:31:17 +0200 (CEST) To: Kris Jurka Cc: pgsql-jdbc@postgresql.org Subject: Re: convert 'foobar'::text to the string foobar References: <87mzqzb58t.fsf@meuh.mnc.ch> From: Guillaume Cottenceau Date: 18 May 2005 10:31:17 +0200 In-Reply-To: Message-ID: <878y2d5416.fsf@meuh.mnc.ch> Lines: 13 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.4 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.051 tagged_above=0 required=5 tests=AWL, FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200505/84 X-Sequence-Number: 12915 Kris Jurka writes: > On Fri, 13 May 2005, Guillaume Cottenceau wrote: > > > I want to retrieve the default value of a TEXT column of a table. > > You might want to consider DatabaseMetaData.getColumns() and using the > COLUMN_DEF column. Ah, yes, this is cleaner. Thanks Kris. -- Guillaume Cottenceau