Alexander Farber writes:
 > Hi Aglef,
 > 
 > On Tue, Oct 16, 2001 at 11:27:24AM +0200, [EMAIL PROTECTED] wrote:
 > > I don't know anything about sybase, but unsetting RaiseError can never be
 > > the solution.
 > > The errormessage you get from sybase is saying that it is not allowed to
 > > delete this
 > > record because there are records in other tables depending on this.
 > 
 > yes I know this - I've created the database myself and
 > one table references the other. But my questions is:
 > I don't want the script to die if someone tries to delete
 > a wrong record. I'd like to catch this and display a
 > nice error message instead of die-ing.

In that case use eval {} around the block that can die.

Michael
-- 
Michael Peppler - Data Migrations Inc. - http://www.mbay.net/~mpeppler
[EMAIL PROTECTED] - [EMAIL PROTECTED]
International Sybase User Group - http://www.isug.com

Reply via email to