> 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.
|