Return-Path: Delivered-To: apmail-db-ddlutils-dev-archive@www.apache.org Received: (qmail 71790 invoked from network); 4 Feb 2006 14:28:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 4 Feb 2006 14:28:27 -0000 Received: (qmail 78438 invoked by uid 500); 4 Feb 2006 14:28:27 -0000 Delivered-To: apmail-db-ddlutils-dev-archive@db.apache.org Received: (qmail 78412 invoked by uid 500); 4 Feb 2006 14:28:27 -0000 Mailing-List: contact ddlutils-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: ddlutils-dev@db.apache.org Delivered-To: mailing list ddlutils-dev@db.apache.org Received: (qmail 78401 invoked by uid 99); 4 Feb 2006 14:28:27 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 04 Feb 2006 06:28:27 -0800 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id F3B5DCB for ; Sat, 4 Feb 2006 15:28:05 +0100 (CET) Message-ID: <1647872500.1139063285996.JavaMail.jira@ajax.apache.org> Date: Sat, 4 Feb 2006 15:28:05 +0100 (CET) From: "Thomas Dudziak (JIRA)" To: ddlutils-dev@db.apache.org Subject: [jira] Resolved: (DDLUTILS-65) DdlUtils does not yet provide a mechanism for specifying the catalog/schema to work in In-Reply-To: <1245623926.1138718253160.JavaMail.jira@ajax.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/DDLUTILS-65?page=all ] Thomas Dudziak resolved DDLUTILS-65: ------------------------------------ Resolution: Fixed The platforms now provide alterTables and getAlterTablesSql variants that allow to specify the catalog, schema, and table types to read from the existing database > DdlUtils does not yet provide a mechanism for specifying the catalog/schema to work in > -------------------------------------------------------------------------------------- > > Key: DDLUTILS-65 > URL: http://issues.apache.org/jira/browse/DDLUTILS-65 > Project: DdlUtils > Type: Bug > Environment: Oracle > Reporter: Tim Dudgeon > Assignee: Thomas Dudziak > > On 1/31/06, Tim Dudgeon wrote: > > >> public void run() throws Exception { > >> > >> OracleDataSource ods = new OracleDataSource(); > >> > >> ods.setURL("jdbc:oracle:thin:@localhost:1521:orcl"); > >> ods.setUser("my_user"); > >> ods.setPassword("my_password"); > >> > >> String sql = "CREATE TABLE MY_TABLE( " + > >> "prop_name VARCHAR2(200) NOT NULL PRIMARY KEY, " + > >> "prop_value VARCHAR2(200), prop_value_ext LONG RAW NULL)"; > >> > >> Connection conn = ods.getConnection(); > >> Statement stmt = conn.createStatement(); > >> stmt.execute(sql); > >> stmt.close(); > >> conn.close(); > >> > >> String schema = "MY_SCHEMA"; > >> > >> Platform platform = PlatformFactory.createNewPlatformInstance(ods); > >> Database db = platform.readModelFromDatabase("test", null, > >> schema, null); > >> > >> dumpDb(db); > >> > >> platform.alterTables(db, false, false, false); > This is the problem here: DdlUtils does not yet provide a mechanism > for specifying the catalog/schema to work in (. Could you create an > improvement in JIRA for this ? > Tom -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira