It seems that zero-length strings in an insert statement result in nulls
in the database. Either that or the % wildcard is not working. My
problem is that when I insert some non-null zero-length string values
into some columns
e.g. INSERT INTO Foo VALUES ('','','')
an immediate search with wildcards fails
e.g. SELECT * FROM FOO WHERE Col1 LIKE '%%' AND Col2 LIKE '%%' AND Col3 LIKE '%%'
To my understanding % should collaps to "any non-null string value", so
%% should be matching the zero-length string values. The second I change
the insert statement to insert strings consisting of a single space
character, the select statement works.
Am I doing something wrong here?
Aaron Hamid
-----------------------------------------------------------------------------
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.
|