Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 10 of 12 total
Thread Issue about triggers
Wed, Jan 21 2009 10:48 AMPermanent Link

Francisco Fernandez
Hi.

I have an "AFTER UPDATE" trigger like that have this command:

.
.
IF OLDROW.CAJAS=NEWROW.CAJAS THEN LEAVE;
.
.

CAJAS is a field "DECIMAL NULLABLE" type


If value of field OLDROW.CAJAS=NULL and NEWROW.CAJAS=NULL don't leave the trigger but if
have another value yes.

Is correct this working?

Thank you
Wed, Jan 21 2009 12:55 PMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

Francisco


>I have an "AFTER UPDATE" trigger like that have this command:

Its a secret and if we find out what it is you have to kill us - right? Smiley

Roy Lambert
Wed, Jan 21 2009 3:00 PMPermanent Link

"Hüseyin Aliz"
Smile

"Roy Lambert" <roy.lambert@skynet.co.uk> skrev i en meddelelse
news:B6E3A0A7-B615-44F2-A2BF-4B4AD108E82E@news.elevatesoft.com...
> Francisco
>
>
>>I have an "AFTER UPDATE" trigger like that have this command:
>
> Its a secret and if we find out what it is you have to kill us - right?
> Smiley
>
> Roy Lambert
>

Wed, Jan 21 2009 6:36 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Francisco,

<< I have an "AFTER UPDATE" trigger like that have this command:

..
..
IF OLDROW.CAJAS=NEWROW.CAJAS THEN LEAVE;
..
..

CAJAS is a field "DECIMAL NULLABLE" type


If value of field OLDROW.CAJAS=NULL and NEWROW.CAJAS=NULL don't leave the
trigger but if
have another value yes.

Is correct this working? >>

Yes, what you want is this if you want to match NULLs also:

IF (OLDROW.CAJAS=NEWROW.CAJAS) OR
   ((OLDROW.CAJAS IS NULL) AND (NEWROW.CAJAS IS NULL)) THEN
   LEAVE;

--
Tim Young
Elevate Software
www.elevatesoft.com

Wed, Jan 21 2009 6:53 PMPermanent Link

Richard Harding
Francisco,

2 null values are not equal to each other so you need an additional check:
.
.
IF (OLDROW.CAJAS IS NULL) AND (NEWROW.CAJAS IS NULL) THEN LEAVE;
.
.
Depending on what you want to do, you probably should be checking in the BeforeUpdate
TRIGGER rather than AfterUpdate TRIGGER.

Richard Harding
Thu, Jan 22 2009 2:10 AMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

I was amazed when I saw Tim's response. I thought "where did he get the information". I think its a bug in my newsreader, probably to do with a single dot on a line but I'll find out later.

Roy Lambert
Thu, Jan 22 2009 5:02 AMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

It doesn't look as though its a bug in my newsreader (or at least not just mine). Winmail also fails. Its the single . on a line with nothing else being translated as the end of the message.


Can I ask who can read the full text of the post and what news reader you're using?

Francisco & Richard - what did you use to post?

Roy Lambert
Thu, Jan 22 2009 9:12 AMPermanent Link

"David Cornelius"
Roy Lambert wrote:

> It doesn't look as though its a bug in my newsreader (or at least not
> just mine). Winmail also fails. Its the single . on a line with
> nothing else being translated as the end of the message.
>
>
> Can I ask who can read the full text of the post and what news reader
> you're using?
>
> Francisco & Richard - what did you use to post?
>
> Roy Lambert

That's all I saw, also.  I use Xananews.

--
David Cornelius
CorneliusConcepts.com
Thu, Jan 22 2009 12:00 PMPermanent Link

Francisco Fernandez
>Roy Lambert wrote:

>It doesn't look as though its a bug in my newsreader (or at least not just mine). Winmail
also fails. Its the single . >on a line with nothing else being translated as the end of
the message.


>Can I ask who can read the full text of the post and what news reader you're using?

>Francisco & Richard - what did you use to post?

>Roy Lambert

Hi Roy.

I'm using  Newsgroups (Web) by firefox if is this that you are asking because with my
"spanglish" sometimes I don't understand well what are you writting.

Regards.
Thu, Jan 22 2009 12:03 PMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

Francisco


That's exactly what I wanted - thanks. It tells me its probably Tim's web interface or FireFox that's not quite doing things right.

Roy Lambert
Page 1 of 2Next Page »
Jump to Page:  1 2
Image