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

RETURNING clause is not supported in positioned (WHERE CURRENT OF) UPDATE and DELETE statements [CORE3343] #3709

Closed
firebird-automations opened this issue Feb 10, 2011 · 6 comments

Comments

@firebird-automations
Copy link
Collaborator

Submitted by: Denis Nosov (dens256)

Is duplicated by CORE3709

Votes: 1

Example:

create table test_a(id integer, cnt integer);

execute block
as
declare variable cnt integer;
begin
for select cnt from test_a
where id=1
into :cnt as cursor cur1
do begin
update test_a
set cnt=cnt+1
where current of cur1
returning cnt into :cnt;
end
end

Prepare error:
Invalid token.
Dynamic SQL Error.
SQL error code = -104.
Token unknown - line 12, column 11.
returning.

Commits: 9564611

@firebird-automations
Copy link
Collaborator Author

Modified by: @dyemanov

Version: 2.5.0 [ 10221 ]

Version: 3.0 Initial [ 10301 ]

Version: 2.1.3 [ 10302 ]

Version: 2.1.2 [ 10270 ]

Version: 2.1.1 [ 10223 ]

Version: 2.1.0 [ 10041 ]

summary: "UPDATE ... WHERE CURRENT OF ... RETURNING ..." not prepare in PSQL => RETURNING clause is not supported in positioned (WHERE CURRENT OF) UPDATE and DELETE statements

Version: 2.5.1 [ 10333 ] =>

@firebird-automations
Copy link
Collaborator Author

Modified by: @asfernandes

Link: This issue is duplicated by CORE3709 [ CORE3709 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @asfernandes

assignee: Adriano dos Santos Fernandes [ asfernandes ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @asfernandes

issuetype: Bug [ 1 ] => Improvement [ 4 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @asfernandes

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

resolution: Fixed [ 1 ]

Fix Version: 3.0 Alpha 1 [ 10331 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pavel-zotov

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

QA Status: Done successfully

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