Return-Path: Delivered-To: apmail-db-torque-user-archive@www.apache.org Received: (qmail 17934 invoked from network); 13 Nov 2009 07:12:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 13 Nov 2009 07:12:52 -0000 Received: (qmail 40226 invoked by uid 500); 13 Nov 2009 07:12:52 -0000 Delivered-To: apmail-db-torque-user-archive@db.apache.org Received: (qmail 39805 invoked by uid 500); 13 Nov 2009 07:12:52 -0000 Mailing-List: contact torque-user-help@db.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Apache Torque Users List" Reply-To: "Apache Torque Users List" Delivered-To: mailing list torque-user@db.apache.org Received: (qmail 39699 invoked by uid 99); 13 Nov 2009 07:12:51 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Nov 2009 07:12:51 +0000 X-ASF-Spam-Status: No, hits=-2.6 required=5.0 tests=BAYES_00 X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [217.24.207.26] (HELO mail.seitenbau.net) (217.24.207.26) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Nov 2009 07:12:49 +0000 Received: from [192.168.15.18] (helo=www.seitenbau.net) by router.seitenbau.net with esmtp (Exim 4.43) id 1N8qKY-0004aH-Oo for torque-user@db.apache.org; Fri, 13 Nov 2009 08:12:27 +0100 In-Reply-To: <4AFC8289.7020701@simmgene.com> References: <4AFB4EC8.4040005@simmgene.com> <4AFC6F14.4070807@simmgene.com> <55B8568AFA5F144F886F18186BAD5B2C05FA44C764@durham-e2k7mb1.dukece.com> <4AFC7C2A.5070102@simmgene.com> <4AFC7DF1.6050806@simmgene.com> <4AFC8289.7020701@simmgene.com> Subject: Re: Criteria needs write permissions? X-KeepSent: 3F043174:D2719177-C125766D:0026D957; type=4; name=$KeepSent To: "Apache Torque Users List" X-Mailer: Lotus Notes Release 8.5 December 05, 2008 Message-ID: From: Thomas Fischer Date: Fri, 13 Nov 2009 08:12:25 +0100 X-MIMETrack: Serialize by Router on www/seitenbau(Release 8.5HF467 | May 15, 2009) at 13.11.2009 08:12:25 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII X-Spam-Score: -1.4 (-) X-Spam-Report: -1.4 ALL_TRUSTED Passed through trusted hosts only via SMTP > Ok, I apologize for the traffic. No reason to apologize for anything. This is a perfectly valid question. > Here goes, when you build the database objects, it hardcodes in the > database name that exists in your schema.xml. The code is in the > doBuild() method of the ${Table}MapBuild.java > > public void doBuild() throws TorqueException > { > dbMap = Torque.getDatabaseMap("defaultdb"); > > Therefore when you query against a different database, the table names > never get added to the tables hash for that database. > > I would consider this a bug as I don't think this would affect only me. > Should I report it to the dev mailing list or something. Not sure of the > etiquette there. I'm not sure whether this is a bug or not, I need to think about it. If i remember correctly, the database name is used for the database connection (including credentials) and the table layout. Probably there are some cases where this wants to be treated differently. But please open a jira issue on this ( https://issues.apache.org/jira/secure/Dashboard.jspa), so it will not be forgotten. Thomas --------------------------------------------------------------------- To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org For additional commands, e-mail: torque-user-help@db.apache.org