Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 46724 invoked from network); 22 Apr 2009 12:21:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 22 Apr 2009 12:21:09 -0000 Received: (qmail 49490 invoked by uid 500); 22 Apr 2009 12:21:09 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 49423 invoked by uid 500); 22 Apr 2009 12:21:08 -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 49414 invoked by uid 99); 22 Apr 2009 12:21:08 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Apr 2009 12:21:08 +0000 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, 22 Apr 2009 12:21:08 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 06998234C041 for ; Wed, 22 Apr 2009 05:20:48 -0700 (PDT) Message-ID: <1029814817.1240402848025.JavaMail.jira@brutus> Date: Wed, 22 Apr 2009 05:20:48 -0700 (PDT) From: "Kristian Waagan (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Assigned: (DERBY-4171) Connections to on-disk db go to in-memory db if in-memory db with same name is booted In-Reply-To: <1501248569.1240233587470.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DERBY-4171?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Kristian Waagan reassigned DERBY-4171: -------------------------------------- Assignee: Kristian Waagan > Connections to on-disk db go to in-memory db if in-memory db with same name is booted > ------------------------------------------------------------------------------------- > > Key: DERBY-4171 > URL: https://issues.apache.org/jira/browse/DERBY-4171 > Project: Derby > Issue Type: Bug > Components: Store > Affects Versions: 10.5.1.1 > Reporter: Knut Anders Hatlen > Assignee: Kristian Waagan > Attachments: derby-4171-1a-fix.diff > > > When an in-memory database has been booted, subsequent attempts to connect to an ordinary (on-disk) database with the same name as the in-memory database will connect to the in-memory db. > ij version 10.5 > ij> connect 'jdbc:derby:memory:MyDB;create=true'; -- with subprotocol memory > ij> create table t (x varchar(30)); > 0 rows inserted/updated/deleted > ij> insert into t values 'This is the in-memory backend'; > 1 row inserted/updated/deleted > ij> connect 'jdbc:derby:MyDB;create=true'; --without subprotocol memory, should create disk db > WARNING 01J01: Database 'MyDB' not created, connection made to existing database instead. > ij(CONNECTION1)> select * from t; > X > ------------------------------ > This is the in-memory backend > 1 row selected -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.