On Mon, Sep 28, 2009 at 1:38 PM, Knut Anders Hatlen <[email protected]>wrote:
> Hiranya Jayathilaka <[email protected]> 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. Thanks, Hiranya > > -- > Knut Anders > -- Hiranya Jayathilaka Software Engineer; WSO2 Inc.; http://wso2.org E-mail: [email protected]; Mobile: +94 77 633 3491 Blog: http://techfeast-hiranya.blogspot.com
