Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 8948 invoked from network); 13 Jun 2006 14:11:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 13 Jun 2006 14:11:49 -0000 Received: (qmail 93017 invoked by uid 500); 13 Jun 2006 14:11:48 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 92988 invoked by uid 500); 13 Jun 2006 14:11:48 -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 92979 invoked by uid 99); 13 Jun 2006 14:11:48 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Jun 2006 07:11:48 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Jun 2006 07:11:48 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id A801371428E for ; Tue, 13 Jun 2006 14:10:31 +0000 (GMT) Message-ID: <2525167.1150207831685.JavaMail.jira@brutus> Date: Tue, 13 Jun 2006 14:10:31 +0000 (GMT+00:00) From: "Rick Hillegas (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Closed: (DERBY-915) EmbedDatabaseMetadata, EmbedDatabaseMetadata40, and client.net.NetDatabaseMetadata40 should not throw a "not implemented" exception In-Reply-To: <524675991.1138922403541.JavaMail.jira@ajax.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 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 [ http://issues.apache.org/jira/browse/DERBY-915?page=all ] Rick Hillegas closed DERBY-915: ------------------------------- > EmbedDatabaseMetadata, EmbedDatabaseMetadata40, and client.net.NetDatabaseMetadata40 should not throw a "not implemented" exception > ----------------------------------------------------------------------------------------------------------------------------------- > > Key: DERBY-915 > URL: http://issues.apache.org/jira/browse/DERBY-915 > Project: Derby > Type: Bug > Components: JDBC > Reporter: David Van Couvering > > Per this email from Lance Andersen, JDBC4 spec lead: > "The JDBC spec requires DatabaseMetaData to be fully implemented. > For non DatabaseMetaData methods not implement and not required, a SQLException must be thrown and in the case of JDBC 4.0 SQLFeatureNotSupportedException must be thrown. > Any drivers which fail to implement DatabaseMetaData methods and throw an Exception would not pass the conformance tests. > HTH > Lance" > These metadata calls need to be modified to return either true/false for boolean methods, or an empty result set for methods that return result sets. > The client.am.DatabaseMetadata.getSuperTypes() has a good example of how to generate an empty result set: > String sql = "SELECT CAST(NULL AS VARCHAR(128)) AS TYPE_CAT," + > "CAST(NULL AS VARCHAR(128)) AS TYPE_SCHEM," + > "VARCHAR('', 128) AS TYPE_NAME," + > "CAST(NULL AS VARCHAR(128)) AS SUPERTYPE_CAT," + > "CAST(NULL AS VARCHAR(128)) AS SUPERTYPE_SCHEM," + > "VARCHAR('', 128) AS SUPERTYPE_NAME " + > "FROM SYSIBM.SYSDUMMY1 WHERE 1=0 WITH UR "; -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira