🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.interbase.sql
Article #56

Re: exception strange behavior

#56
From: Martijn Tonies
Date: Sun, 25 May 2008 13:31
32 lines
1976 bytes
Isaac,

> I am facing a strange behavior when raising an exception from inside a
> stored procedure
>
> I have three triggers that call one stored proc after insert , after
> update and after delete
>
> I check in the stored proc if a bal is < 0 if so then I raise an exception
>
> I also had to do the same check in my app so I can make sure bal is
> never < 0, so the result was one time the store exception is fired
> immediately after insert a record but all other tries never raised again
> and only my application check exception is the one that always raised
> although I made the check in a save button after the user inserted as
> many item as he want
>
> Please advice why the stored exception did not raised first !!

Hard to tell if you don't show us anything.


-- 
Martijn Tonies
Database Workbench - tool for InterBase, Firebird, MySQL, NexusDB, Oracle &
MS SQL Server
Upscene Productions
http://www.upscene.com
My thoughts:
http://blog.upscene.com/martijn/
Database development questions? Check the forum!
http://www.databasedevelopmentforum.com
Technical Details
Message-ID: <48396938$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!proxad.net!feeder1-2.proxad.net!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <4836d7b3@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 114a0e,c20e0dc1cd267813
X-Google-Attributes: gid114a0e,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Martijn Tonies" <m.tonies@upscene.removethis.com>
Newsgroups: borland.public.interbase.sql
References: <4836d7b3@newsgroups.borland.com>
Subject: Re: exception strange behavior
Date: Sun, 25 May 2008 15:31:37 +0200
Lines: 34
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1914
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1914
NNTP-Posting-Host: 212.238.159.172
Message-ID: <48396938$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1211722040 212.238.159.172 (25 May 2008 06:27:20 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!proxad.net!feeder1-2.proxad.net!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail