Issue Details (XML | Word | Printable)

Key: CORE-3523
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Adriano dos Santos Fernandes
Reporter: Paul Vinkenoog
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Firebird Core

SIMILAR TO: False matches on descending ranges

Created: 15/Jun/11 02:45 PM   Updated: 09/Apr/14 02:11 PM
Component/s: Engine
Affects Version/s: 2.5.0
Fix Version/s: 2.5.1, 3.0 Alpha 1

Time Tracking:
Not Specified

Issue Links:
Relate
 

Planning Status: Unspecified


 Description  « Hide
According to the standard, the range <ch1>-<ch2> includes all the characters greater than or equal to <ch1> and smaller than or equal to <ch2>

Consequently, a descending range such as [p-k] is empty.

Firebird however matches ANY character against a descending range, i.e.

    select 1 from rdb$database where 'm' similar to '[p-k]'
    select 1 from rdb$database where 'z' similar to '[p-k]'

both return 1 whilst they should return an empty set.


 All   Comments   Work Log   Change History   Version Control   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
There are no comments yet on this issue.