Return-Path: Delivered-To: apmail-db-ddlutils-user-archive@www.apache.org Received: (qmail 40142 invoked from network); 13 Apr 2006 13:24:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 13 Apr 2006 13:24:12 -0000 Received: (qmail 52659 invoked by uid 500); 13 Apr 2006 13:23:51 -0000 Delivered-To: apmail-db-ddlutils-user-archive@db.apache.org Received: (qmail 52585 invoked by uid 500); 13 Apr 2006 13:23:50 -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 52574 invoked by uid 99); 13 Apr 2006 13:23:50 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Apr 2006 06:23:50 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of philip.donaghy@gmail.com designates 66.249.82.202 as permitted sender) Received: from [66.249.82.202] (HELO xproxy.gmail.com) (66.249.82.202) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Apr 2006 06:23:47 -0700 Received: by xproxy.gmail.com with SMTP id s9so1216575wxc for ; Thu, 13 Apr 2006 06:23:26 -0700 (PDT) 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=Lv5so5msQaMBmSsjfbfcNZDXAKJ76M/Rc6AQHT7KuBD38lyjD+/ZexXyTq0Vo1TcTlrAiHR+aAqW0s8AAFsQc7njs2mIQyodKS5jFPEuh7YB33Mc0I59Oo3Gxs4Io49FRCnBaT4lp7vBPXGwtlyBo6ZgOMjqVo46QHN8reGyhUw= Received: by 10.70.115.2 with SMTP id n2mr312707wxc; Thu, 13 Apr 2006 06:23:26 -0700 (PDT) Received: by 10.70.65.16 with HTTP; Thu, 13 Apr 2006 06:23:26 -0700 (PDT) Message-ID: Date: Thu, 13 Apr 2006 15:23:26 +0200 From: "Philip Mark Donaghy" To: ddlutils-user@db.apache.org Subject: Re: problem writing sql to file In-Reply-To: <224f32340604130521t70e01e86pfddb71fc85a43441@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <35c7dcbc0604120021r66855148m833176c82a6e9916@mail.gmail.com> <35c7dcbc0604122120u40ec5a5an272c5c9a0f87a0d1@mail.gmail.com> <224f32340604130237y468b5562we4f3f81e28e61bef@mail.gmail.com> <224f32340604130521t70e01e86pfddb71fc85a43441@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Done, the title was not intentional. I didn't do that on purpose. My navigator was hidding the rest of the text as I copied and pasted several times. Suse 10 Firefox (allows line breaks in input fields, althought the text is hidden) I've never seen this before. Sorry for the confusion. Phil On 4/13/06, Thomas Dudziak wrote: > On 4/13/06, Philip Mark Donaghy wrote: > > > OK I'm starting to understand. With alterDatabase true it will alter > > existing schema given that it has a connection. But correct me if I am > > wrong, when there is no connection and the objective is to obtain a > > ddl creation script for a given database using writeSchemaSqlToFile, > > the alterDatabase false is required. You explained this to me at > > ApacheCon San Diego but it's still unclear. > > > > writeSchemaSqlToFile should just test if a connection has been > > established ignore alterDatabase attribute and write the file. Is this > > possible? There may be some logic that I am missing but I only use > > ddlutils for this purpose. I think I will do some more work with it in > > the future for dumping data. > > Well, I could add something that uses the failOnError attribute to > this purpose (or a similar new one defined): if no connection was > found and failOnError=3Dtrue, then an error is reported and the task > stops. If failOnError=3Dfalse, then an empty database would be assumed > (which is the same effect as alterDatabase=3Dfalse). Could you add an > issue to JIRA for this ? > > Tom > -- Philip Donaghy donaghy.blogspot.com del.icio.us/donaghy/philip Skype: philipmarkdonaghy Office: +33 5 56 60 88 02 Mobile: +33 6 20 83 22 62