Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 28078 invoked from network); 11 Jun 2005 21:18:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 11 Jun 2005 21:18:41 -0000 Received: (qmail 83578 invoked by uid 500); 11 Jun 2005 21:18:40 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 83513 invoked by uid 500); 11 Jun 2005 21:18: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: "Derby Development" Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 83497 invoked by uid 99); 11 Jun 2005 21:18:39 -0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of gcaddd-derby-dev@m.gmane.org designates 80.91.229.2 as permitted sender) Received: from main.gmane.org (HELO ciao.gmane.org) (80.91.229.2) by apache.org (qpsmtpd/0.28) with ESMTP; Sat, 11 Jun 2005 14:18:38 -0700 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1DhDIF-0001PQ-0a for derby-dev@db.apache.org; Sat, 11 Jun 2005 23:13:27 +0200 Received: from td9091a3b.pool.terralink.de ([217.9.26.59]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 11 Jun 2005 23:13:26 +0200 Received: from Peter.Nabbefeld by td9091a3b.pool.terralink.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 11 Jun 2005 23:13:26 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: derby-dev@db.apache.org From: Peter Nabbefeld Subject: Re: 10.1 branch created / please review open 10.1 JIRA issues Date: Sat, 11 Jun 2005 23:27:02 +0200 Lines: 48 Message-ID: References: <155E5416-F701-4485-BB21-290405E0A261@gmail.com> <22B2C628-2138-42D2-81E9-3881E0CABAE0@gmail.com> <42AAFACD.8080705@debrunners.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: td9091a3b.pool.terralink.de User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; de-AT; rv:1.7.3) Gecko/20040910 X-Accept-Language: de, en In-Reply-To: Sender: news X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Dyre.Tjeldvoll@Sun.COM schrieb: > Peter Nabbefeld writes: > > [snip] > > >>Is the default schema the owner of the trigger then? Or why is the >>default schema needed, if I set a trigger on a table in a non-default >>schema? > > > Creating a trigger reequires a "compile schema". And the default > schema is used. (Even if you write something like CREATE TRIGGER > schemaX.t1...) > > >>>A schema that is being used but does not exist (has not been >>>created persistently) has a null UUID. >>>JDBC Connection's don't have a UUID that represents the identity of >>>the >>>owner. Derby's engine code is centered around the >>>LanguageConnectionContext (LCC) and not the JDBC Connection object. The >>>JDBC object could be seen as just a wrapper on top of LCC. Thus most of >>>the connection's state that is relevant to the SQL language layer is >>>held in the LCC. >> >>I cannot find any UUID getter methods neither in LLC nor its >>superclass, while from my point of view there should exist some ... > > > LCC->SchemaDescriptor->getUUId() > > http://incubator.apache.org/derby/javadoc/engine/org/apache/derby/iapi/sql/conn/LanguageConnectionContext.html > > http://incubator.apache.org/derby/javadoc/engine/org/apache/derby/iapi/sql/dictionary/SchemaDescriptor.html > I've looked at it. As I've seen, LLC supports only to get the default schema (so it seems to be difficult to get a non-default schema for compilation; probably "getSchema(String name)" should be added to LLC). However, if there is no default user schema, default schema should be "APP", not null (if I've understood the comment for "protected SchemaDescriptor initDefaultSchemaDescriptor() ..." in GenericLanguageConnectionContext correct). Kind regards Peter