Return-Path: Delivered-To: apmail-db-ddlutils-dev-archive@www.apache.org Received: (qmail 78322 invoked from network); 15 Mar 2007 16:01:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 15 Mar 2007 16:01:16 -0000 Received: (qmail 94105 invoked by uid 500); 15 Mar 2007 16:01:24 -0000 Delivered-To: apmail-db-ddlutils-dev-archive@db.apache.org Received: (qmail 94090 invoked by uid 500); 15 Mar 2007 16:01:24 -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 94079 invoked by uid 99); 15 Mar 2007 16:01:24 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Mar 2007 09:01:24 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Mar 2007 09:01:15 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id B32D571407B for ; Thu, 15 Mar 2007 09:00:53 -0700 (PDT) Message-ID: <6332497.1173974453731.JavaMail.jira@brutus> Date: Thu, 15 Mar 2007 09:00:53 -0700 (PDT) From: "Thomas Dudziak (JIRA)" To: ddlutils-dev@db.apache.org Subject: [jira] Updated: (DDLUTILS-164) Unicode datatypes not recognised by databaseToDdl task In-Reply-To: <18074185.1173956589688.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/DDLUTILS-164?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Thomas Dudziak updated DDLUTILS-164: ------------------------------------ Component/s: (was: Core - Oracle) Core (No specific database) > Unicode datatypes not recognised by databaseToDdl task > ------------------------------------------------------ > > Key: DDLUTILS-164 > URL: https://issues.apache.org/jira/browse/DDLUTILS-164 > Project: DdlUtils > Issue Type: Improvement > Components: Core (No specific database) > Affects Versions: 1.0 > Environment: WinXP > Reporter: Dave Sunerton-Burl > Assigned To: Thomas Dudziak > Fix For: 1.1 > > > If you run the databaseToDdl task against Oracle 9.2 (using the oracle9 identifier), any unicode columns (e.g. NVARCHAR) come out in the XML as "OTHER". This means that it's impossible to recreate the database from the XML. Even "search and replace" doesn't work as BLOBs are read in as "OTHER" too, so there's no way to tell them apart (except manually with the real database in front of you!). > This is probably related to DDLUTILS-108. For creating a database from the XML, the most useful solution would be to allow a flag on the task which allows you to specify whether to use unicode versions or not. This would be on the *task*, not in the XML file. As discussed in DDLUTILS-108, databases tend to be set up with one language in mind and you might need to create schemas in different environments/languages from the same XML, so the XML needs to be language/unicode neutral. The situation we're in - maintaining a multi-lingual web application (where translations are in the database) - needs to use unicode columns. It is an all or nothing situation though - I don't see why you would choose to have some columns unicode (or a specific language) and not others - so a global setting outside of the XML would be fine. > For reading the DDL from the database, it's vital that unicode columns are recognised (i.e. NVARCHAR is recognised as JDBC VARCHAR). This is the important bit. If the columns aren't recognised to start with, then it's all over for automated database maintenance. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.