Return-Path: Delivered-To: apmail-db-ddlutils-user-archive@www.apache.org Received: (qmail 64610 invoked from network); 14 Dec 2006 05:22:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 14 Dec 2006 05:22:26 -0000 Received: (qmail 52136 invoked by uid 500); 14 Dec 2006 05:22:32 -0000 Delivered-To: apmail-db-ddlutils-user-archive@db.apache.org Received: (qmail 52125 invoked by uid 500); 14 Dec 2006 05:22:32 -0000 Mailing-List: contact ddlutils-user-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: ddlutils-user@db.apache.org Delivered-To: mailing list ddlutils-user@db.apache.org Received: (qmail 52114 invoked by uid 99); 14 Dec 2006 05:22:32 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Dec 2006 21:22:32 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of tomdzk@gmail.com designates 66.249.92.172 as permitted sender) Received: from [66.249.92.172] (HELO ug-out-1314.google.com) (66.249.92.172) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Dec 2006 21:22:22 -0800 Received: by ug-out-1314.google.com with SMTP id o2so396966uge for ; Wed, 13 Dec 2006 21:22:01 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=WjQdh3b4djgn0bQt2c5Lo3+XeZ5kxOfaF71gOxcF0JYsWNPVBHG0/FEQhbQUHF5KXpzICikiHGEM/ZRoIEqSjlbigTvvfIkeHSi6Zoppd1tTT3bO83IYhGFhkyu+OAqks1oZ85rJbohKQAxE/ZenBClUNPMyD4Y4CSzLNwoHNfo= Received: by 10.67.106.3 with SMTP id i3mr740209ugm.1166073319173; Wed, 13 Dec 2006 21:15:19 -0800 (PST) Received: by 10.67.87.10 with HTTP; Wed, 13 Dec 2006 21:15:19 -0800 (PST) Message-ID: <224f32340612132115o55b4c0e0gb946fba7ba9a581@mail.gmail.com> Date: Wed, 13 Dec 2006 21:15:19 -0800 From: "Thomas Dudziak" To: ddlutils-user@db.apache.org Subject: Re: Booleans and converter(Subelement) In-Reply-To: <20061213184850.75629.qmail@web34410.mail.mud.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20061213184850.75629.qmail@web34410.mail.mud.yahoo.com> X-Virus-Checked: Checked by ClamAV on apache.org On 12/13/06, Laurent ROCHE wrote: > I am moving a PostgreSQL db into a Derby db, using the Ant tasks. > > As I have boolean columns in my PG db (and that there's none in Derby) I have done a search and replace in the generated schema.xml file (from PG), to replace all BOOLEAN by SMALLINT. > That works fine but reading the doc I realise there's a converter subelement to go from one type to another. > > But that's for data. Is there something equivalent for the schema ? > Or does that do the transformation on the schema too ? DdlUtils will take care of that, simply leave the schema as it is. DdlUtils will use the most appropriate native type that the database has to offer. Tom