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-issue-importer opened this issue Jun 15, 2011 · 5 comments
Closed

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

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

Comments

@firebird-issue-importer

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-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Jun 15, 2011

Modified by: @asfernandes

assignee: Adriano dos Santos Fernandes [ asfernandes ]

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Jun 17, 2011

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-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Mar 27, 2014

Modified by: @pcisar

Link: This issue is related to QA486 [ QA486 ]

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Apr 9, 2014

Modified by: @pmakowski

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

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented May 28, 2015

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
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants