Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 22728 invoked from network); 4 Mar 2009 16:26:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 Mar 2009 16:26:21 -0000 Received: (qmail 40897 invoked by uid 500); 4 Mar 2009 16:26:20 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 40877 invoked by uid 500); 4 Mar 2009 16:26:19 -0000 Mailing-List: contact dev-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@jackrabbit.apache.org Delivered-To: mailing list dev@jackrabbit.apache.org Received: (qmail 40868 invoked by uid 99); 4 Mar 2009 16:26:19 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Mar 2009 08:26:19 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Mar 2009 16:26:17 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 9AFE6234C4B6 for ; Wed, 4 Mar 2009 08:25:56 -0800 (PST) Message-ID: <520546140.1236183956633.JavaMail.jira@brutus> Date: Wed, 4 Mar 2009 08:25:56 -0800 (PST) From: "Eric Wout van der Steen (JIRA)" To: dev@jackrabbit.apache.org Subject: [jira] Commented: (JCR-1366) DbDataStore: tablePrefix not accomodated during init test for existing DATASTORE table In-Reply-To: <16740586.1202499127633.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 [ https://issues.apache.org/jira/browse/JCR-1366?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12678772#action_12678772 ] Eric Wout van der Steen commented on JCR-1366: ---------------------------------------------- Hi, no, I don't actually need it. We're helped by the schemaObjectPrefix (which is in line rest of the configurations already :) ). So if I understand it correctly by your comment, you implemented option B? I didn't fully get that. If so, you can disregard my comment, since I thought there would still be two parameters. On the Wiki I already changed the documentation slightly based on comments from the user group, see http://wiki.apache.org/jackrabbit/DataStore?action=diff Is that still correct? > DbDataStore: tablePrefix not accomodated during init test for existing DATASTORE table > -------------------------------------------------------------------------------------- > > Key: JCR-1366 > URL: https://issues.apache.org/jira/browse/JCR-1366 > Project: Jackrabbit Content Repository > Issue Type: New Feature > Components: jackrabbit-core > Affects Versions: 1.4 > Environment: jdk 1.6, win xp, SQL SERVER 2007, jTDS jdbc driver > Reporter: Tyson Norris > Priority: Minor > Fix For: 1.6.0 > > Attachments: datastore_prefix.patch > > > we are providing a test db deployment with prepopulated data, including jackrabbit DataStore. I tried specifying the tablePrefix when creating the initial repository, and tables are created properly. > However, when a clean installation is run with a fresh database that has an existing DataStore (stored at JACKRABBIT_DS_DATASTORE table), the startup fails, because during init, the meta data only checks for tables name matching the tableSQL property: > ResultSet rs = meta.getTables(null, null, tableSQL, null); > but the tableSQL property is never modified based on the tablePrefix property (other uses of tableSQL modify queries based on the prefix). > I think the init method should modify the tested table name based on the tablePrefix. > Note: I assume different JDBC drivers may handle this differently (we are using SQL Server 2007 and jTDS driver), since the DatabaseMetaData is API is unclear on the parameter to getTables being a "tableNamePattern" - should wildcards work? Or should a specific table be specified? > My DataStore config is below: > > > > > > > > > > > > > -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.