Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 31658 invoked from network); 10 Aug 2005 23:55:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 10 Aug 2005 23:55:10 -0000 Received: (qmail 9027 invoked by uid 500); 10 Aug 2005 23:55:09 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 9000 invoked by uid 500); 10 Aug 2005 23:55:09 -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: "Derby Development" Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 8987 invoked by uid 99); 10 Aug 2005 23:55:09 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Aug 2005 16:55:09 -0700 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=DNS_FROM_RFC_ABUSE,DNS_FROM_RFC_POST,DNS_FROM_RFC_WHOIS,SPF_HELO_FAIL X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [32.97.182.143] (HELO e3.ny.us.ibm.com) (32.97.182.143) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Aug 2005 16:55:28 -0700 Received: from d01relay04.pok.ibm.com (d01relay04.pok.ibm.com [9.56.227.236]) by e3.ny.us.ibm.com (8.12.11/8.12.11) with ESMTP id j7ANt3uV026514 for ; Wed, 10 Aug 2005 19:55:03 -0400 Received: from d01av03.pok.ibm.com (d01av03.pok.ibm.com [9.56.224.217]) by d01relay04.pok.ibm.com (8.12.10/NCO/VERS6.7) with ESMTP id j7ANt31t236886 for ; Wed, 10 Aug 2005 19:55:03 -0400 Received: from d01av03.pok.ibm.com (loopback [127.0.0.1]) by d01av03.pok.ibm.com (8.12.11/8.13.3) with ESMTP id j7ANt20M030946 for ; Wed, 10 Aug 2005 19:55:02 -0400 Received: from [127.0.0.1] (sig-9-48-127-108.mts.ibm.com [9.48.127.108]) by d01av03.pok.ibm.com (8.12.11/8.12.11) with ESMTP id j7ANt0Yn030744 for ; Wed, 10 Aug 2005 19:55:02 -0400 Message-ID: <42FA93D2.1060309@sbcglobal.net> Date: Wed, 10 Aug 2005 16:54:58 -0700 From: Kathey Marsden User-Agent: Mozilla Thunderbird 0.7.3 (Windows/20040803) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Derby Development Subject: Re: [VOTE] Support the ANSI-SQL standard BOOLEAN datatype. References: <42FA5C14.8030605@sun.com> <42FA84A7.9030904@sbcglobal.net> <42FA8C5D.6000902@sun.com> In-Reply-To: <42FA8C5D.6000902@sun.com> X-Enigmail-Version: 0.85.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1 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 Rick Hillegas wrote: > Hi Kathey, > > I have found two tests which look like they monitor datatype > conformity for PreparedStatements and ResultSets: > > jdbcapi/parameterMapping.java > jdbcapi/resultSet.java > > BOOLEAN support was removed from these tests and I intend to put it > back in. This will verify that you can use jdbc to set BOOLEAN > parameters and retrieve BOOLEAN columns. > > Are there other jdbc tests which I should amend? What other client > behavior should I track down? I think you will find that Network Server sends BOOLEAN as a SMALLINT because at least at the time it was written there was no BOOLEAN type in the protocol specification. Maybe that has changed. You could check the specs at http://www.opengroup.org/dbiop. I think this means that as things are now, the client ResultSet Metadata will show SMALLINT instead of BOOLEAN, getString will show 1 or 0 instead of true/false and any other jdbc differences between BOOLEAN and SMALLINT will exist. If that is the way it would stay it would make for a really awkward differences between embedded and client. Watch out just checking that tests pass, because the test harness even still has code I think to mask out this difference so that tests will appear to pass. Kathey