db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Van Couvering (JIRA)" <derby-...@db.apache.org>
Subject [jira] Commented: (DERBY-20) LIKE handles strings with control characters incorrectly.
Date Thu, 21 Jul 2005 20:17:55 GMT
    [ http://issues.apache.org/jira/browse/DERBY-20?page=comments#action_12316410 ] 

David Van Couvering commented on DERBY-20:

Lance Anderson adds:

The problem is a Derby engine issue where you do:

Like 'foo\%%'  escape '\'

will fail.  However,

if I change it to

like 'foo\%bar' escape '\'

The queries will work.  so it appears to be an issue parsing the escape when there are multiple
wildcard characters in a row. 

> LIKE handles strings with control characters incorrectly.
> ---------------------------------------------------------
>          Key: DERBY-20
>          URL: http://issues.apache.org/jira/browse/DERBY-20
>      Project: Derby
>         Type: Bug
>   Components: SQL
>     Versions:
>     Reporter: Tulika Agrawal
>     Priority: Minor
>  Attachments: server.log
> Reporting for Daniel John Debrunner.
> If a string contains control characters in the regions matched 
> by wild card characters then in some situations a LIKE will 
> return false instead of true and the row will not be returned.
> Caused by the dynamic like optimization using >= with a prefix 
> which is is equivalent to >= on the prefeix appended with 
> blanks and not null (\u0000) characters.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:

View raw message