Quantcast
Channel: JetBrains Developer Community : Thread List - IntelliJ IDEA Users
Viewing all articles
Browse latest Browse all 5661

Stop on first error when running a (DB2) database script

$
0
0

Hello,

 

I was wondering if it is possible to stop executing a database script (DB2 in my case) as soon as an error occurs.

If I run an SQL script against my DB2 databse from within IntelliJ, the whole script is run, even if halfway some statements give errors. I would like the script to fail as soon as the first error occurs (which you get with the -s option when executing scripts from command line).

 

Does anyone know if this is currently possible? I couldn't find a way to do it.

If not, I'll file a bug for this to be implemented.

 

Thanks,

 

Guno


Viewing all articles
Browse latest Browse all 5661

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>