db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kristian Waagan (JIRA)" <j...@apache.org>
Subject [jira] Commented: (DERBY-4171) Connections to on-disk db go to in-memory db if in-memory db with same name is booted
Date Wed, 10 Jun 2009 08:29:07 GMT

    [ https://issues.apache.org/jira/browse/DERBY-4171?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12717983#action_12717983

Kristian Waagan commented on DERBY-4171:

I think patch 1b broke something on Windows, I see errors in BasicInMemoryDbTest on all the
Windows platforms. Not having a Windows machine to debug on, this may have to wait until tomorrow
before I can debug the problem.

> 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:,
>            Reporter: Knut Anders Hatlen
>            Assignee: Kristian Waagan
>             Fix For:,
>         Attachments: derby-4171-1a-fix.diff, derby-4171-1b-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
> 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.

View raw message