db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hiranya Jayathilaka <hiranya...@gmail.com>
Subject Re: Using ij to Run Scripts
Date Mon, 28 Sep 2009 08:53:15 GMT
On Mon, Sep 28, 2009 at 1:38 PM, Knut Anders Hatlen <Knut.Hatlen@sun.com>wrote:

> Hiranya Jayathilaka <hiranya911@gmail.com> writes:
> > Hi Folks,
> >
> > I'm using ij#runScript method to execute a script against a database.
> When ij
> > encounters an error while running the script (say due to a syntax error
> in the
> > script) it simply logs it and continues to execute the rest of the
> script. Can
> > I get ij to throw an exception and halt instead?
> I don't think you can currently, so you'll probably need to check the
> output for lines starting with ERROR for now. Adding a switch to stop on
> errors could be a useful feature addition, as an error in the middle of
> a large SQL script size may be difficult to spot just by looking at the
> output.

Thanks for the quick response Knut. I guess I'll have to live with this
limitation for the moment. I'll raise a JIRA regarding this as a new feature
request and devote sometime on implementing it once I'm done with the dblook
test case.


> --
> Knut Anders

Hiranya Jayathilaka
Software Engineer;
WSO2 Inc.;  http://wso2.org
E-mail: hiranya@wso2.com;  Mobile: +94 77 633 3491
Blog: http://techfeast-hiranya.blogspot.com

View raw message