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

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: 28/May/15 04:37 PM
Component/s: Engine
Affects Version/s: 2.5.0
Fix Version/s: 2.5.1, 3.0 Alpha 1

Issue Links:

QA Status: Done successfully
Test Details: See also test for CORE-2006

 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   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
There are no comments yet on this issue.