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

Error when processing an empty data set by window function, if reading indexed [CORE4131] #4458

Closed
firebird-automations opened this issue Jun 25, 2013 · 6 comments

Comments

@firebird-automations
Copy link
Collaborator

Submitted by: @sim1984

when execute sql query

select row_number() over(order by f.rdb$field_name) as rn,
f.rdb$field_name as name
from rdb$fields f
where f.rdb$field_name = '000000'

Error message:
The cursor identified in the UPDATE or DELETE statement is not positioned on a row. no current record for fetch operation.

when execute sql query (non index read)

select row_number() over(order by f.RDB$QUERY_NAME) as rn,
f.RDB$QUERY_NAME as name
from rdb$fields f
where f.RDB$QUERY_NAME = 'ddd'

Result is correct.

RN NAME
-------------------
NULL NULL

Commits: 5424300 FirebirdSQL/fbt-repository@ec4f0c7

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

Confirmed on 3.0.0.30472:
cursor identified in the UPDATE or DELETE statement is not positioned on a row. no current record for fetch operation

@firebird-automations
Copy link
Collaborator Author

Modified by: @dyemanov

assignee: Adriano dos Santos Fernandes [ asfernandes ]

@firebird-automations
Copy link
Collaborator Author

Commented by: @sim1984

Fixed in 3.0.0.30490.
Thank you.

@firebird-automations
Copy link
Collaborator Author

Modified by: @asfernandes

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

resolution: Fixed [ 1 ]

Fix Version: 3.0 Alpha 2 [ 10560 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @dyemanov

Fix Version: 3.0 Alpha 1 [ 10331 ]

Fix Version: 3.0 Alpha 2 [ 10560 ] =>

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

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: Confirmed on 3.0.0.30472:
cursor identified in the UPDATE or DELETE statement is not positioned on a row. no current record for fetch operation

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