-----Original Message-----
From: Kurt Welgehausen [mailto:[EMAIL PROTECTED]
Sent: Saturday, February 07, 2004 5:40 PM
To: [EMAIL PROTECTED]
Subject: Re: [sqlite] tcl/sqlite executing code on failed transaction
You should take a look at tcl's catch command. You could
put all your SQLite code in one catch command,
if {[catch {
db eval begin ;# or maybe {begin on conflict rollback}
db eval {... }
db eval {... }
db eval {... }
db eval commit} err]} {
doSomething $err
}
or you could catch each 'db eval ...', or anything in between.
Regards
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Thanks very much Kurt. That is exactly what I needed.
later,
marvin
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]