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

POSITION: Wrong result with '' if third argument present [CORE3244] #3614

Closed
firebird-automations opened this issue Nov 18, 2010 · 6 comments

Comments

@firebird-automations
Copy link
Collaborator

Submitted by: @paulvink

Is related to QA284

select position ('', 'Broehaha') from rdb$database

returns 1 - correct: see standard, and we can suppose that an empty string (or even multiple) is present before every character in the string

select position ('', 'Broehaha', 4) from rdb$database

returns 1 - this should be 4, because we ask for occurences starting at position 4.

select position ('', 'Broehaha', 20) from rdb$database

returns 1 - this should be 0, because here we are past the end of the string, in the great Nothing.

Commits: 877b408 33c0372 4c02cfb c65f597

@firebird-automations
Copy link
Collaborator Author

Modified by: @asfernandes

assignee: Adriano dos Santos Fernandes [ asfernandes ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @dyemanov

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

resolution: Fixed [ 1 ]

Fix Version: 2.1.4 [ 10361 ]

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 QA284 [ QA284 ]

@firebird-automations
Copy link
Collaborator Author

Commented by: @pmakowski

QA test made

@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

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