Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 91327 invoked from network); 15 Sep 2006 17:54:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 15 Sep 2006 17:54:40 -0000 Received: (qmail 12215 invoked by uid 500); 15 Sep 2006 17:54:40 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 12186 invoked by uid 500); 15 Sep 2006 17:54:40 -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 12177 invoked by uid 99); 15 Sep 2006 17:54:40 -0000 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; Fri, 15 Sep 2006 10:54:39 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 5273F714353 for ; Fri, 15 Sep 2006 17:50:23 +0000 (GMT) Message-ID: <25653956.1158342623335.JavaMail.jira@brutus> Date: Fri, 15 Sep 2006 10:50:23 -0700 (PDT) From: "Andrew McIntyre (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_12435064 ] Andrew McIntyre commented on DERBY-1547: ---------------------------------------- Since svn versions can be of the form {rev} or {rev}:{rev} where rev is an integer, and the M may or may not be attached, I think the following regex should match all possible values in context, allowing for only one regex to be added instead of two: - [(][0-9]+:*[0-9]*M*[)] And yes, the other ones could use improvement, but that's outside the scope of this issue. > 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-sed-v1.diff, DERBY-1547-sed-v1.stat, DERBY-1547-sed.diff, DERBY-1547-sed.stat, DERBY-1547_v1.diff, DERBY-1547_v1.stat, derbyall_fail.txt > > > 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