Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 2768 invoked from network); 3 Mar 2006 20:02:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 3 Mar 2006 20:02:54 -0000 Received: (qmail 30311 invoked by uid 500); 3 Mar 2006 20:03:40 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 30083 invoked by uid 500); 3 Mar 2006 20:03:39 -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 30068 invoked by uid 99); 3 Mar 2006 20:03:39 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Mar 2006 12:03:39 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=HTML_MESSAGE,UNPARSEABLE_RELAY X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [192.18.98.43] (HELO brmea-mail-2.sun.com) (192.18.98.43) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Mar 2006 12:03:38 -0800 Received: from fe-amer-01.sun.com ([192.18.108.175]) by brmea-mail-2.sun.com (8.12.10/8.12.9) with ESMTP id k23K3H8u021137 for ; Fri, 3 Mar 2006 13:03:17 -0700 (MST) Received: from conversion-daemon.mail-amer.sun.com by mail-amer.sun.com (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) id <0IVK00J01HXEFG00@mail-amer.sun.com> (original mail from Lance.Andersen@Sun.COM) for derby-dev@db.apache.org; Fri, 03 Mar 2006 13:03:17 -0700 (MST) Received: from [129.150.65.212] by mail-amer.sun.com (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPSA id <0IVK00FE8IDGVRO0@mail-amer.sun.com> for derby-dev@db.apache.org; Fri, 03 Mar 2006 13:03:17 -0700 (MST) Date: Fri, 03 Mar 2006 15:03:17 -0500 From: "Lance J. Andersen" Subject: Re: JDBC4 Spec exegesis needed, was: [jira] Commented: (DERBY-925) Implement new JDBC 4 metadata API getFunctionParameters() In-reply-to: <44087A47.9020108@apache.org> Sender: Lance.Andersen@Sun.COM To: derby-dev@db.apache.org Message-id: <4408A105.1040301@sun.com> MIME-version: 1.0 Content-type: multipart/alternative; boundary="Boundary_(ID_Lu8I7/B7C0WHOiGBLHAf/g)" References: <2124723271.1141384732886.JavaMail.jira@ajax.apache.org> <4408748F.50904@sun.com> <44087A47.9020108@apache.org> User-Agent: Thunderbird 1.5 (Windows/20051201) X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N This is a multi-part message in MIME format. --Boundary_(ID_Lu8I7/B7C0WHOiGBLHAf/g) Content-type: text/plain; format=flowed; charset=ISO-8859-1 Content-transfer-encoding: 7BIT Daniel John Debrunner wrote: > Rick Hillegas wrote: > > >> Hi Lance, >> >> Is it OK for a JDBC3 implementation to return more information than the >> spec demands? In particular, consider the various result sets returned >> by DatabaseMetaData calls. Is it OK for these result sets to contain >> additional, trailing columns, above and beyond the columns required by >> the JDBC3 spec? To be even more pedantic, can JDBC3 implementations >> return the fatter JDBC4 result sets? >> > > JDBC tutorial & reference, version 2.0, sdection 15.2.2, page 369 says: > > "A DBMS may define additional columns for a ResultSet object that is > returned by a DatabaseMetaData method". > > Not officially part of the spec, but I've always assumed the tutorial > books are a good guideline of the spec, given the authors. > While it is a good guideline, it in fact has differed at times resulting in driver implementation differences. The methods in DatabaseMetaData which allow additional columns is documented in the javadocs. However, it would not have been wise as a programmer to use anything but the column name when accessing non-standard columns. -lance > Dan. > > > --Boundary_(ID_Lu8I7/B7C0WHOiGBLHAf/g) Content-type: text/html; charset=ISO-8859-1 Content-transfer-encoding: 7BIT

Daniel John Debrunner wrote:
Rick Hillegas wrote:

  
Hi Lance,

Is it OK for a JDBC3 implementation to return more information than the
spec demands? In particular, consider the various result sets returned
by DatabaseMetaData calls. Is it OK for these result sets to contain
additional, trailing columns, above and beyond the columns required by
the JDBC3 spec? To be even more pedantic, can JDBC3 implementations
return the fatter JDBC4 result sets?
    

JDBC tutorial & reference, version 2.0, sdection 15.2.2, page 369 says:

"A DBMS may define additional columns for a ResultSet object that is
returned by a DatabaseMetaData method".

Not officially part of the spec, but I've always assumed the tutorial
books are a good guideline of the spec, given the authors.
  
While it is a good guideline, it in fact has differed at times resulting in driver implementation differences.

The methods in DatabaseMetaData which allow additional columns is documented in the javadocs.    However, it would not have been wise as a programmer to use anything but the column name when accessing non-standard columns.

-lance
Dan.


  
--Boundary_(ID_Lu8I7/B7C0WHOiGBLHAf/g)--