Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 28395 invoked from network); 3 Mar 2007 08:14:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Mar 2007 08:14:13 -0000 Received: (qmail 49628 invoked by uid 500); 3 Mar 2007 08:14:21 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 49604 invoked by uid 500); 3 Mar 2007 08:14:21 -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 49595 invoked by uid 99); 3 Mar 2007 08:14:21 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 03 Mar 2007 00:14:21 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 03 Mar 2007 00:14:11 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 8504971433A for ; Sat, 3 Mar 2007 00:13:51 -0800 (PST) Message-ID: <28835472.1172909631541.JavaMail.jira@brutus> Date: Sat, 3 Mar 2007 00:13:51 -0800 (PST) From: "Mamta A. Satoor (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Created: (DERBY-2396) conn/DefaultLocale.java test relies on internal Derby api to determine the database's territory MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org conn/DefaultLocale.java test relies on internal Derby api to determine the database's territory ----------------------------------------------------------------------------------------------- Key: DERBY-2396 URL: https://issues.apache.org/jira/browse/DERBY-2396 Project: Derby Issue Type: Bug Components: Test Affects Versions: 10.3.0.0 Reporter: Mamta A. Satoor I think Derby's testing philosphy is that the tests should be using the apis that are available to an end user ie JDBC api. conn/DefaultLocale.java doesn't follow this rule. It has a method called checkDatabaseLocale which uses following internal api to determine the database's territory. org.apache.derby.iapi.db.Factory.getDatabaseOfConnection().getLocale().toString(); The tests i18n/urlLocale and i18n/messageLocale rely on conn/DefaultLocale's checkDatabaseLocale implementation. Derby provides SYSCS_UTIL.SYSCS_GET_DATABASE_PROPERTY function to determine the value of a property. For instance, if I create a database with attribute logDevice=c:/dellater1 then I can later find the location of database's logDevice by following statement VALUES SYSCS_UTIL.SYSCS_GET_DATABASE_PROPERTY('logDevice') But for some reason, I can't use the same for the territory attribute. I tried VALUES SYSCS_UTIL.SYSCS_GET_DATABASE_PROPERTY('territory') but it returned null. I tried referencing the territory attribute by it's name in services.properties and that didn't work either VALUES SYSCS_UTIL.SYSCS_GET_DATABASE_PROPERTY('derby.serviceLocale") So, I guess there are 2 steps involved 1)Why isn't there a way to find the value of the territory attribute? 2)Once we know the answer to 1) and possibly fix it, then change the conn/DefaultLocale.java test to use the documented way of getting the territory rather than internal Derby api. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.