Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 35700 invoked from network); 17 Feb 2011 00:20:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 17 Feb 2011 00:20:46 -0000 Received: (qmail 5524 invoked by uid 500); 17 Feb 2011 00:20:46 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 5327 invoked by uid 500); 17 Feb 2011 00:20:45 -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 5281 invoked by uid 99); 17 Feb 2011 00:20:45 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Feb 2011 00:20:44 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Feb 2011 00:20:44 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 6C7011A994A for ; Thu, 17 Feb 2011 00:20:24 +0000 (UTC) Date: Thu, 17 Feb 2011 00:20:24 +0000 (UTC) From: "Dag H. Wanvik (JIRA)" To: derby-dev@db.apache.org Message-ID: <1746892302.1473.1297902024440.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] Updated: (DERBY-4490) SYSCS_UTIL.SYSCS_GET_DATABASE_PROPERTY unexpectedly returns NULL when used in SELECT MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/DERBY-4490?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Dag H. Wanvik updated DERBY-4490: --------------------------------- Urgency: Low Labels: derby_triage10_8 (was: ) > SYSCS_UTIL.SYSCS_GET_DATABASE_PROPERTY unexpectedly returns NULL when used in SELECT > ------------------------------------------------------------------------------------ > > Key: DERBY-4490 > URL: https://issues.apache.org/jira/browse/DERBY-4490 > Project: Derby > Issue Type: Bug > Components: SQL > Affects Versions: 10.5.3.0, 10.6.1.0 > Reporter: Knut Anders Hatlen > Labels: derby_triage10_8 > Attachments: DERBY4490_null_database_property_diff_patch1.txt, DERBY4490_null_database_property_stat_patch1.txt > > > I see the following values returned when invoking SYSCS_UTIL.SYSCS_GET_DATABASE_PROPERTY on its own: > ij> values syscs_util.syscs_get_database_property('derby.database.collation'); > 1 > -------------------- > UCS_BASIC > 1 row selected > ij> values syscs_util.syscs_get_database_property('DataDictionaryVersion'); > 1 > --------------------- > 10.6 > 1 row selected > But when I query both properties at the same time, DataDictionaryVersion comes out as NULL: > ij> select p, syscs_util.syscs_get_database_property(p) from (values 'derby.database.collation', 'DataDictionaryVersion') props(p); > P |2 > ------------------------------------------------------------ > derby.database.collation|UCS_BASIC > DataDictionaryVersion |NULL > 2 rows selected -- This message is automatically generated by JIRA. - For more information on JIRA, see: http://www.atlassian.com/software/jira