Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 6 of 6 total
Thread Build 6: #700 Error
Fri, Jan 19 2007 1:42 PMPermanent Link

Charalabos Michael
Hello Tim,

SQL:
UPDATE Folders
SET TotalCount = TotalCount + 1
WHERE Name = 'test'
AND (UserID=0 or UserID=NULL)'

<UserID and TotalCount are Integers>

Error:
ElevateDB Error #700 An error was found in the statement at
line 4 and column 25 (Expected NULL, Boolean, SmallInt, Integer,
BigInt, Float, Decimal, Interval Year, Interval Day, Interval Hour,
Interval Minute, Interval Second, Interval or MilliSecond expression but
instead found NULL).

--
Charalabos Michael - [Creation Power] - http://www.creationpower.com -
http://www.creationpower.gr
Fri, Jan 19 2007 2:34 PMPermanent Link

Michael Baytalsky

Just out of curiosity, did you try UserID is NULL?

Michael

PS. Got to download and see for myself Wink

Charalabos Michael wrote:
> Hello Tim,
>
> SQL:
> UPDATE Folders
> SET TotalCount = TotalCount + 1
> WHERE Name = 'test'
> AND (UserID=0 or UserID=NULL)'
>
> <UserID and TotalCount are Integers>
>
> Error:
> ElevateDB Error #700 An error was found in the statement at
> line 4 and column 25 (Expected NULL, Boolean, SmallInt, Integer,
> BigInt, Float, Decimal, Interval Year, Interval Day, Interval Hour,
> Interval Minute, Interval Second, Interval or MilliSecond expression but
> instead found NULL).
>
Fri, Jan 19 2007 3:30 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Michael,

<< Error:
ElevateDB Error #700 An error was found in the statement at line 4 and
column 25 (Expected NULL, Boolean, SmallInt, Integer, BigInt, Float,
Decimal, Interval Year, Interval Day, Interval Hour, Interval Minute,
Interval Second, Interval or MilliSecond expression but  instead found
NULL). >>

The error message is wrong.  In EDB, = NULL or <> NULL is not accepted
anymore in favor of the standard IS NULL or IS NOT NULL.

Thanks,

--
Tim Young
Elevate Software
www.elevatesoft.com

Fri, Jan 19 2007 8:03 PMPermanent Link

Charalabos Michael
Hello Michael,

> Just out of curiosity, did you try UserID is NULL?

I did now and it works.I Just need to get used
to the new SQL changes! Smiley

--
Charalabos Michael - [Creation Power] - http://www.creationpower.com -
http://www.creationpower.gr
Fri, Jan 19 2007 8:04 PMPermanent Link

Charalabos Michael
Hello Tim,

> << Error:
>  ElevateDB Error #700 An error was found in the statement at line 4 and
> column 25 (Expected NULL, Boolean, SmallInt, Integer, BigInt, Float,
> Decimal, Interval Year, Interval Day, Interval Hour, Interval Minute,
> Interval Second, Interval or MilliSecond expression but  instead found
> NULL). >>
>
> The error message is wrong.  In EDB, = NULL or <> NULL is not accepted
> anymore in favor of the standard IS NULL or IS NOT NULL.

Yeap, IS Null works. I think you should fix the text in the
error message ?

--
Charalabos Michael - [Creation Power] - http://www.creationpower.com -
http://www.creationpower.gr
Mon, Jan 22 2007 8:18 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Michael,

<< Yeap, IS Null works. I think you should fix the text in the error message
? >>

Yes, you can safely assume that all errors will be fixed once they are
found. Smiley

--
Tim Young
Elevate Software
www.elevatesoft.com

Image