.bail command in SQLite
.bail command in SQLite stops after hitting an error. What does it mean. Can anyone explain through example
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Monika AroraPosted Nov 23, 2011, 5:57 AM
Pravin MorePosted Nov 23, 2011, 2:28 AM
Monika AroraPosted Nov 23, 2011, 1:49 AM
Pravin MorePosted Nov 15, 2011, 6:52 AM
Hi Monika,
The .bail command controls the error handling behaviour.it only affect noninteractive sesions ,when SQL commands are being read from a file or from standard input.
so,if the "bail" flag is set,any error will cause the processing to stop.
the default is off.
Thanks,
Pravin.