Return-Path: Delivered-To: apmail-ibatis-user-java-archive@www.apache.org Received: (qmail 38864 invoked from network); 13 Feb 2010 23:58:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 13 Feb 2010 23:58:59 -0000 Received: (qmail 74262 invoked by uid 500); 13 Feb 2010 23:58:58 -0000 Delivered-To: apmail-ibatis-user-java-archive@ibatis.apache.org Received: (qmail 74186 invoked by uid 500); 13 Feb 2010 23:58:58 -0000 Mailing-List: contact user-java-help@ibatis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user-java@ibatis.apache.org Delivered-To: mailing list user-java@ibatis.apache.org Received: (qmail 74178 invoked by uid 99); 13 Feb 2010 23:58:58 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 13 Feb 2010 23:58:58 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of clinton.begin@gmail.com designates 74.125.92.150 as permitted sender) Received: from [74.125.92.150] (HELO qw-out-1920.google.com) (74.125.92.150) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 13 Feb 2010 23:58:51 +0000 Received: by qw-out-1920.google.com with SMTP id 4so664465qwk.60 for ; Sat, 13 Feb 2010 15:58:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:content-type; bh=oGC/Na+Ttf3VdzmDK/qxDRqTem0AJXHv5sUmH7oNDJc=; b=ah6M1guCISziZnmMZiGNISTb5ujXPMVevwI3bzl7NDxjCkDm1y4wCCSnb1GcX7aZz2 Z/IS8D9uDxGGbruT/caoUQZrmL6hQdeUjlFVrJobQjV8o7P0zbTPrPXiz1a9H+tRKgBC qDEvVaUJ//HfICQsJyx19u9VS15oejNCJd9rs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; b=e7hveUveb1+eSsXlH2x+LBiZDFfYg/HURMtC0CF5Ikov0P0YnHMwkoWvnt9IJllpXo W6LkarREg+N7rcwBH8Xxhsw2Ls2pG+lq4MlzxKRBEB4zi6/6vA/VFEwdil+3E3c5UwWJ HN86aqn1nTJiqefV4mWh+LjqsM3Es+Vs5kiPE= MIME-Version: 1.0 Received: by 10.224.72.10 with SMTP id k10mr1595346qaj.32.1266105511091; Sat, 13 Feb 2010 15:58:31 -0800 (PST) In-Reply-To: <81cfe9551002131521o6a7127f9he645a18b63a1ca59@mail.gmail.com> References: <81cfe9551002131521o6a7127f9he645a18b63a1ca59@mail.gmail.com> From: Clinton Begin Date: Sat, 13 Feb 2010 16:58:11 -0700 Message-ID: <16178eb11002131558k40454885j211f6232e9d90cf6@mail.gmail.com> Subject: Re: Migrator and exit error code To: user-java@ibatis.apache.org Content-Type: multipart/alternative; boundary=00c09fa21e613ca193047f8429e7 --00c09fa21e613ca193047f8429e7 Content-Type: text/plain; charset=ISO-8859-1 Absolutely. On Sat, Feb 13, 2010 at 4:21 PM, Marco Speranza wrote: > Hi all, I'm using migrator into a Continuous integration tool, to automate > and test our database scripts. The problem is that when one SQL error is > encountered, migrator does not return the error code to the shell, and my CI > tool does not report correctly the error. Yesterday night I've made a little > patch for this problem: when migrator command fails and force argument is > false, the program exits with an error code greater then 0. Can I open a > Jira issue and drop it the patch? best regards > > > -- > Marco Speranza > --00c09fa21e613ca193047f8429e7 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Absolutely.

On Sat, Feb 13, 2010 at 4:21 = PM, Marco Speranza <marco.speranza79@gmail.com> wrote:
Hi all, I'm using migrator into a Continuous integration tool, to automate and = test our database scripts.=20 The problem is that when one SQL error is encountered, migrator does not re= turn the error code to the shell, and my CI tool does not report correctly = the error. Yesterday night I've made a little patch for this problem: when migrato= r command fails and force argument is false, the program exits with an erro= r code greater then 0. Can I open a Jira issue and drop it the patch? best regards


--
Marco Speranza <marco.speranza79@gmail.com>

--00c09fa21e613ca193047f8429e7--