Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 58717 invoked from network); 22 Aug 2006 11:40:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 22 Aug 2006 11:40:24 -0000 Received: (qmail 12835 invoked by uid 500); 22 Aug 2006 11:40:24 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 12715 invoked by uid 500); 22 Aug 2006 11:40:23 -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 12706 invoked by uid 99); 22 Aug 2006 11:40:23 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Aug 2006 04:40:23 -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, 22 Aug 2006 04:40:22 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 5ACDA410010 for ; Tue, 22 Aug 2006 11:37:17 +0000 (GMT) Message-ID: <31334553.1156246637367.JavaMail.jira@brutus> Date: Tue, 22 Aug 2006 04:37:17 -0700 (PDT) From: "V.Narayanan (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Commented: (DERBY-1547) Add svn version number to DatabaseMetaData getDatabaseProductVersion and getDriverVersion() to improve supportability In-Reply-To: <11729882.1153401073826.JavaMail.jira@brutus> 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-1547?page=comments#action_12429677 ] V.Narayanan commented on DERBY-1547: ------------------------------------ Thank you for the comments on the patch. Going by your comments of using existing property files would it be possible to take a clue from the way this is done in the EmbeddedServer and client currently and get the product version the following way The class ProductVersionHolder is used to get derby product information in Embedded Server,Client and tools as a result of which it is a part of derby.jar,derbyclient.jar and derbytools.jar. The property files using which the information is constructed for each Genus or each product category are Embedded - DBMS.properties Client - dnc.properties tools - tools.properties 1) In the tests I would need the driver versions in the embedded and the network client case. I can get the product version in both the cases using the ProductVersionHolder class. For this I would need to have ProductVersionHolder class and files DBMS.properties and tools.properties in derbyTesting.jar. 2) When I need to get the version string for the EmbeddedServer I would do the following InputStream versionStream = getClass().getResourceAsStream(ProductGenusNames.DBMS_INFO); engineVersion = ProductVersionHolder.getProductVersionHolderFromMyEnv(versionStream); > Add svn version number to DatabaseMetaData getDatabaseProductVersion and getDriverVersion() to improve supportability > ----------------------------------------------------------------------------------------------------------------------- > > Key: DERBY-1547 > URL: http://issues.apache.org/jira/browse/DERBY-1547 > Project: Derby > Issue Type: Improvement > Components: JDBC > Affects Versions: 10.1.3.2 > Reporter: Kathey Marsden > Assigned To: V.Narayanan > Priority: Minor > Fix For: 10.2.1.0 > > Attachments: DERBY-1547_v1.diff, DERBY-1547_v1.stat > > > getDatabaseProductVersion and getDriverVersion() report only the four digit Derby version number and not the svn build number. It would be useful to return the full version including the build number as sysinfo does: e.g. "10.1.2.4 - (392472)", That way it will be clear from application logs that collect this information exactly what revision level they are running if they are using rolled up fixes on the maintenance branch between releases. > There may be risk in doing this however if applications are parsing the version information, but hopefully they will use getDatabaseMajorVersion() , getDatbaseMinorVersion, getDriverMajorVersion, and getDriverMinorVersion for such proccessing. -- 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