Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SIMILAR TO: False matches on descending ranges [CORE3523] #3880

Closed
firebird-automations opened this issue Jun 15, 2011 · 5 comments
Closed

Comments

@firebird-automations
Copy link
Collaborator

Submitted by: @paulvink

Is related to QA486

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.

Commits: fab2e23 c25b2d8 a1a2077 FirebirdSQL/fbt-repository@897293c

====== Test Details ======

See also test for CORE2006

@firebird-automations
Copy link
Collaborator Author

Modified by: @asfernandes

assignee: Adriano dos Santos Fernandes [ asfernandes ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @asfernandes

status: Open [ 1 ] => Resolved [ 5 ]

resolution: Fixed [ 1 ]

Fix Version: 2.5.1 [ 10333 ]

Fix Version: 3.0 Alpha 1 [ 10331 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

Link: This issue is related to QA486 [ QA486 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pmakowski

status: Resolved [ 5 ] => Closed [ 6 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pavel-zotov

status: Closed [ 6 ] => Closed [ 6 ]

QA Status: Done successfully

Test Details: See also test for CORE2006

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants