Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 53601 invoked from network); 11 Jul 2006 13:57:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 11 Jul 2006 13:57:58 -0000 Received: (qmail 31989 invoked by uid 500); 11 Jul 2006 13:57:57 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 31957 invoked by uid 500); 11 Jul 2006 13:57:57 -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 31948 invoked by uid 99); 11 Jul 2006 13:57:57 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Jul 2006 06:57:57 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=UNPARSEABLE_RELAY X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [192.18.42.249] (HELO nwkea-pix-1.sun.com) (192.18.42.249) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Jul 2006 06:57:56 -0700 Received: from d1-sfbay-05.sun.com ([192.18.39.115]) by nwkea-pix-1.sun.com (8.13.6+Sun/8.12.9) with ESMTP id k6BDvVVl029967 for ; Tue, 11 Jul 2006 06:57:32 -0700 (PDT) Received: from conversion-daemon.d1-sfbay-05.sun.com by d1-sfbay-05.sun.com (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) id <0J2800D01RXTZF00@d1-sfbay-05.sun.com> (original mail from Richard.Hillegas@Sun.COM) for derby-dev@db.apache.org; Tue, 11 Jul 2006 06:57:31 -0700 (PDT) Received: from [129.150.21.182] by d1-sfbay-05.sun.com (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPSA id <0J2800BT6S3VF040@d1-sfbay-05.sun.com> for derby-dev@db.apache.org; Tue, 11 Jul 2006 06:57:31 -0700 (PDT) Date: Tue, 11 Jul 2006 06:57:43 -0700 From: Rick Hillegas Subject: Re: behavior of Statement.getGeneratedKeys() In-reply-to: <44B332CF.6000604@sbcglobal.net> Sender: Richard.Hillegas@Sun.COM To: derby-dev@db.apache.org Message-id: <44B3AE57.2030403@sun.com> MIME-version: 1.0 Content-type: text/plain; format=flowed; charset=ISO-8859-1 Content-transfer-encoding: 7BIT X-Accept-Language: en-us, en References: <44B29397.4030608@sun.com> <44B2A411.3050000@sbcglobal.net> <44B2B783.1090102@sun.com> <44B2CE1F.4030800@apache.org> <44B2E248.3080904@sun.com> <44B332CF.6000604@sbcglobal.net> User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Kathey Marsden wrote: > Rick Hillegas wrote: > >>>>>> >>>>>> 1) Is this a bug? Should Statement.getGeneratedKeys() return a >>>>>> ResultSet whose column has the same type as the underyling >>>>>> autogenerated column? >>>>>> > Reading from the JDBC 3.0 and JDBC 4.0 spec it seems clear to me that > we are not compliant and if non-compliance is a bug, this is a bug. > The spec says: "Calling ResultSet.getMetaData on the ResultSet object > returned by getGeneratedKeys will produce a ResultSetMetaData object > that can be used to determine the number, type and properties of the > generated keys." > >>>>>> 2) If this is a bug, is it permitted to change this behavior in a >>>>>> minor release? >>>>>> > > Of course debate continues, but I think it would be first good to > objectively assess what JDBC calls might be affected. Perhaps > whomever is considering making this change could do a thorough > analysis and present it to the community. After that we could use this > issue as a test case for our goal at > http://wiki.apache.org/db-derby/ForwardCompatibility as we look at > potential risk and what level of consultation is needed with the user > community for the change and when it is appropriate. It should be a > good test as our current documented behavior and the spec are at odds. Hi Kathey, I'm muddled. The affected JDBC call is Statement.getGeneratedKeys(). I don't think anyone is proposing to change the behavior of any other JDBC call. But your question makes me anxious. Why do you think other JDBC calls are affected? > > Kathey > >