![]() | ![]() Products ![]() ![]() ![]() ![]() |
Home » Technical Support » ElevateDB Technical Support » Support Forums » ElevateDB General » View Thread |
Messages 1 to 10 of 12 total |
![]() |
Wed, Jan 21 2009 10:48 AM | Permanent 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 PM | Permanent Link |
Roy Lambert NLH Associates ![]() | 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? ![]() Roy Lambert |
Wed, Jan 21 2009 3:00 PM | Permanent Link |
"Hüseyin Aliz" | ![]() "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? > ![]() > > Roy Lambert > |
Wed, Jan 21 2009 6:36 PM | Permanent Link |
Tim Young [Elevate Software] Elevate Software, Inc. ![]() | 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 PM | Permanent 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 AM | Permanent Link |
Roy Lambert NLH Associates ![]() | 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 AM | Permanent Link |
Roy Lambert NLH Associates ![]() | 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 AM | Permanent 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 PM | Permanent 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 PM | Permanent Link |
Roy Lambert NLH Associates ![]() | 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 2 | Next Page » | |
Jump to Page: 1 2 |
This web page was last updated on Wednesday, August 14, 2024 at 03:12 PM | Privacy Policy![]() © 2024 Elevate Software, Inc. All Rights Reserved Questions or comments ? ![]() |