Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 54011 invoked from network); 11 Nov 2005 02:20:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 11 Nov 2005 02:20:10 -0000 Received: (qmail 57763 invoked by uid 500); 11 Nov 2005 02:20:09 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 57733 invoked by uid 500); 11 Nov 2005 02:20:08 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 57724 invoked by uid 99); 11 Nov 2005 02:20:08 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Nov 2005 18:20:08 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [32.97.110.154] (HELO e36.co.us.ibm.com) (32.97.110.154) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Nov 2005 18:20:01 -0800 Received: from westrelay02.boulder.ibm.com (westrelay02.boulder.ibm.com [9.17.195.11]) by e36.co.us.ibm.com (8.12.11/8.12.11) with ESMTP id jAB2Jj4e011288 for ; Thu, 10 Nov 2005 21:19:45 -0500 Received: from d03av04.boulder.ibm.com (d03av04.boulder.ibm.com [9.17.195.170]) by westrelay02.boulder.ibm.com (8.12.10/NCO/VERS6.8) with ESMTP id jAB2JdhE062798 for ; Thu, 10 Nov 2005 19:19:40 -0700 Received: from d03av04.boulder.ibm.com (loopback [127.0.0.1]) by d03av04.boulder.ibm.com (8.12.11/8.13.3) with ESMTP id jAB2Jj2O007057 for ; Thu, 10 Nov 2005 19:19:45 -0700 Received: from [127.0.0.1] (bandaram-009030145106.svl.ibm.com [9.30.145.106]) by d03av04.boulder.ibm.com (8.12.11/8.12.11) with ESMTP id jAB2JhMu007028 for ; Thu, 10 Nov 2005 19:19:45 -0700 Message-ID: <4373FF7C.2040502@Sourcery.Org> Date: Thu, 10 Nov 2005 18:18:36 -0800 From: Satheesh Bandaram User-Agent: Mozilla Thunderbird 0.7.3 (Windows/20040803) X-Accept-Language: en-us, en MIME-Version: 1.0 To: derby-dev@db.apache.org Subject: Re: New features for next release .... (Was: Grant and Revoke ... DERBY-464...) References: <435FCD22.3050607@Sourcery.Org> <7921d3e40510261152j5d8c9de8md9b3092cb89d8268@mail.gmail.com> <435FEE85.4040801@Sourcery.Org> <7921d3e40510261551m6e6a6accxcf300af1fba23352@mail.gmail.com> <4360146A.9000707@debrunners.com> <4360745F.8010306@Sourcery.Org> <17248.40844.445037.524756@gargle.gargle.HOWL> <43710C04.4000705@Sourcery.Org> <43711EBE.5020200@sun.com> <437125C8.7040502@sbcglobal.net> <437135B6.7060605@sun.com> <43713EA2.6090906@sbcglobal.net> <437211E0.5030208@sun.com> <43737897.2020604@sbcglobal.net> <4373A294.5070307@sun.com> In-Reply-To: <4373A294.5070307@sun.com> X-Enigmail-Version: 0.85.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi Rick, Rick Hillegas wrote: > > We will probably have to collaborate here. If you select an XML > column, the ResultSetMetaData needs to say that the column is of type > java.sql.SQLXML. This, at least, was the consensus of the community > which prevented me from re-enabling the BOOLEAN datatype a couple > months ago: Kathey and David pointed out that it was not OK for > ResultSetMetaData to report a boolean column's type as SMALLINT. > Similarly, it's not going to be OK for ResultSetMetaData to report the > type of an XML column as java.sql.LONGVARCHAR. It doesn't seem right to expose a JDBC 4.0 type to a JDBC 3.0 client. What good would that do, since JDBC 3.0 clients are probably written to expect JDBC 3.0 functionality only? I wonder if we might even break GUIs and other generic tools that expect 3.0 types only. Since we may be close to enabling full JDBC 4.0 in the near term, why not expose only JDBC 3.0 types to 3.0 clients? That is to expose XML type as a CLOB under JDBC 3.0 and as SQLXML for a JDBC 4.0 client. This would expose a new type to Derby server, XML, to JDBC by mapping it to it's closest match. Remember the TINYINT discussion and Dan's point? I don't remember what was discussed about this during the BOOLEAN discussion... but if JDBC already supports a boolean type, that would seem correct to map it to, rather than say SMALLINT. Satheesh