Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 81434 invoked from network); 23 Mar 2006 10:15:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 23 Mar 2006 10:15:44 -0000 Received: (qmail 4737 invoked by uid 500); 23 Mar 2006 10:15:39 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 4695 invoked by uid 500); 23 Mar 2006 10:15:38 -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 4686 invoked by uid 99); 23 Mar 2006 10:15:38 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Mar 2006 02:15:38 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Mar 2006 02:15:37 -0800 Received: from ajax (localhost.localdomain [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id E649BD4A08 for ; Thu, 23 Mar 2006 10:15:16 +0000 (GMT) Message-ID: <1809153639.1143108916939.JavaMail.jira@ajax> Date: Thu, 23 Mar 2006 10:15:16 +0000 (GMT) From: "Knut Anders Hatlen (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Updated: (DERBY-970) Add new metadata methods to network client driver In-Reply-To: <461963406.1139866482483.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-970?page=all ] Knut Anders Hatlen updated DERBY-970: ------------------------------------- Attachment: derby-970-part3-v1.diff derby-970-part3-v1.stat Attaching patch derby-970-part3-v1.diff which implements the new JDBC 4 methods getSchemas(String, String) and getClientInfoProperties() on the client driver. Description of changes on the embedded side: 1) Moved getSchemas(String, String) from EmbedDatabaseMetaData40 to EmbedDatabaseMetaData so that a server running JVM < 1.6 does not fail. 2) Extended SystemProcedures.SQLTABLES() (aka SYSIMB.SQLTABLES) to support getSchemas(String, String). It already has support for the zero-parameter getSchemas() by passing an option string "GETSCHEMAS=1". The new getSchemas() is invoked by passing "GETSCHEMAS=2". Description of changes on the client side: 3) New SQLSTATE and error message for the case when a JDBC method is not supported by the server (i.e., when running a new client against an old server). Message text: "JDBC method {0} is not supported by the server. Please upgrade the server." 4) DatabaseMetaData.getClientInfoProperties() returns an empty result set with the correct column names. The query is hard-coded so that an empty result set is returned regardless of server version. (Same pattern is used as in the existing methods getSuperTypes(), getSuperTables() and getAttributes().) 5) DatabaseMetaData.getSchemas(String, String) is implemented as a call to SYSIBM.SQLTABLES with the GETSCHEMAS=2 option. Since GETSCHEMAS=2 is not supported by older servers, the JDBC version of the server is checked. If the server does not support JDBC 4, an exception is thrown (without this check, the result of a call to getTables() would have been returned). Description of test changes: 6) In TestDbMetaData, removed try/catch blocks which were added to make the test continue to run when the methods were not implemented. (The test is still not enabled in DerbyNetClient because getFunctions() and getFunctionParameters() are not implemented yet.) > Add new metadata methods to network client driver > ------------------------------------------------- > > Key: DERBY-970 > URL: http://issues.apache.org/jira/browse/DERBY-970 > Project: Derby > Type: Sub-task > Reporter: David Van Couvering > Assignee: Knut Anders Hatlen > Attachments: derby-970-part1-v1.diff, derby-970-part1-v1.stat, derby-970-part2-v1.diff, derby-970-part2-v1.stat, derby-970-part3-v1.diff, derby-970-part3-v1.stat > > Implement new JDBC 4.0 DatabaseMetaData methods in the client driver: > - supportsStoredFunctionsUsingCallSyntax() > - autoCommitFailureClosesAllResultSets() > - getClientInfoProperties() > - providesQueryObjectGenerator() > - getSchemas() > - getRowIdLifetime() -- 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