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

PSQL cursor doesn't see inserted record [CORE5773] #6036

Closed
firebird-automations opened this issue Mar 14, 2018 · 6 comments
Closed

PSQL cursor doesn't see inserted record [CORE5773] #6036

firebird-automations opened this issue Mar 14, 2018 · 6 comments

Comments

@firebird-automations
Copy link
Collaborator

Submitted by: @dmitry-starodubov

Is related to CORE5781

Following script returns 0, i.e. PSQL cursor doesn't see the record that was inserted before cursor was opened.

create table test_table (id bigint);
set term ^;
create or alter procedure test_cursor
returns (
rowcount integer
)
as
declare variable id bigint;
declare crsr cursor for (
select id from test_table
);
begin
insert into test_table(id) values(1);
-- suspend;

open crsr;
fetch crsr into :id;
rowcount = row\_count;
suspend;
close crsr;

end^
set term ;^
select * from test_cursor;

Commits: 690b057 2c79672

@firebird-automations
Copy link
Collaborator Author

Modified by: @hvlad

assignee: Vlad Khorsun [ hvlad ]

@firebird-automations
Copy link
Collaborator Author

Commented by: @hvlad

Cursor stability based on savepoints\undo-log can't be applied to the explicit cursors, unfortunately.
Therefore "undo" logic is disabled for explicit cursors.
Cursor stability for explicit cursors will be implemented using another way.

@firebird-automations
Copy link
Collaborator Author

Modified by: @hvlad

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

resolution: Fixed [ 1 ]

Fix Version: 4.0 Beta 1 [ 10750 ]

Fix Version: 3.0.4 [ 10863 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @hvlad

Link: This issue is related to CORE5781 [ CORE5781 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pavel-zotov

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

QA Status: No test => Done successfully

@firebird-automations
Copy link
Collaborator Author

Modified by: @pavel-zotov

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

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