InstantDB Project
About InstantDB
Project Mail Lists
Short History
Reporting Bugs
Screen Shots
3rd Party Examples
FAQs

Software
Downloads
Documentation
CVS Repositories
Roadmap
License

About Enhydra.org
Who We Are
News, Articles & Events
Getting Involved
Contact Us

Community
Demos
Contributions
Resources
Case Studies
On The Edge! -NEW-
Commercial Vendors


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: InstantDB: Like operator bug?


> Eivind Skildheim wrote:
> select count(*) from tt where cc like ''
> ==> 0 Rows returned     !!! Is this a bug?

The ISO-ANSI SQL 3 standard says that the predicate MC LIKE PC, where MC
and PC are both zero-length character value expressions, returns TRUE. 
So in your example, when cc evaluates to '', this predicate should
return TRUE, and InstantDB seems to have a bug.

However, if I understand correctly, there must be a character (or
wildcard) in PC to match characters in MC, otherwise the LIKE predicate
returns FALSE.  Therefore, a zero-length PC cannot match a
nonzero-length MC.

-- 
Bill Karwin (bill@lutris.com)
Application Architect - Lutris Technologies Inc.
-----------------------------------------------------------------------------
To unsubscribe from this mailing list, send email to majordomo@enhydra.org
with the text "unsubscribe instantdb" in the body of the email.
If you have other questions regarding this mailing list, send email to
the list admin at owner-instantdb@enhydra.org.