db-ddlutils-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Masker71 (Created) (JIRA)" <j...@apache.org>
Subject [jira] [Created] (DDLUTILS-276) Impossible to use one DataSource to read/update 2 database models from the same DB server.
Date Mon, 27 Feb 2012 02:09:50 GMT
Impossible to use one DataSource to read/update 2 database models from the same DB server.
------------------------------------------------------------------------------------------

                 Key: DDLUTILS-276
                 URL: https://issues.apache.org/jira/browse/DDLUTILS-276
             Project: DdlUtils
          Issue Type: Bug
          Components: Core - MySql
    Affects Versions: 1.0, 1.1
         Environment: Ubuntu 10.02, 64 bit, MySQL 5
            Reporter: Masker71
            Assignee: Thomas Dudziak
            Priority: Critical


My jdbc URL does not contain catalog (database) name:
jdbc:mysql://localhost:3306?autoReconnect=true&zeroDateTimeBehavior=convertToNull&characterEncoding=UTF8

DBs test1 and test2 are located on the same server.

I tried different hacks to make it working with the same DataSource.
But it keeps throwing exception saying that database not selected, even though I am sending
database name AND catalog.
I am not sure why would you need two, but neither of them is switching current database anyway
(at least not for MySQL).

Database test1 = platform.readModelFromDatabase( "test1" );
Database test2 = platform.readModelFromDatabase( "test2" );

These two lines are not working also:
Database test1 = platform.readModelFromDatabase( "test1", "test1", false, false );
Database test2 = platform.readModelFromDatabase( "test2", "test2", false, false );


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message