Details
Description
LIKE should give true for two 0-length strings. See SQL 2003 Ch. 8.5
General Rules 3)c)i)
The query SELECT * FROM t WHERE v like ''
appears to give me all rows where v is an empty
string, as expected.
But a prepared statement
SELECT * FROM t WHERE v like ?, with setString(1, "")
always returns an empty result set. See attached repro for the full example.
Attachments
Attachments
Issue Links
- blocks
-
DERBY-2145 Remove LIKE tweak from metadata.properties
- Closed
- is part of
-
DERBY-2034 Tracking of bugs that lead to incorrect results being stored or returned to the client
- Closed
- is related to
-
DERBY-1386 Wrong results with query using LIKE and ESCAPE clause that includes "%", "\", and "_"
- Closed