We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Submitted by: jzugaj (jzugaj)
the return clause in trigger will cause ambiguous field name between table B and table A error
CREATE TABLE A ( ID INTEGER NOT NULL, QTY FLOAT, CONSTRAINT PK_A PRIMARY KEY (ID) );
CREATE TABLE B ( ID INTEGER NOT NULL, QTY FLOAT, CONSTRAINT PK_B PRIMARY KEY (ID) );
CREATE TRIGGER T_TEST_TRIGG FOR B ACTIVE BEFORE INSERT POSITION 0 AS declare oldQty float; declare newQty float; begin
update a set qty = new.qty where http://id=new.id returning new.qty, old.qty into newQty, oldQty; end
Commits: 495047d e9eea07
The text was updated successfully, but these errors were encountered:
assignee: Adriano dos Santos Fernandes [ asfernandes ]
Sorry, something went wrong.
Fix Version: 3.0.0 [ 10740 ]
status: Open [ 1 ] => Resolved [ 5 ]
resolution: Fixed [ 1 ]
Fix Version: 4.0 Alpha 1 [ 10731 ]
status: Resolved [ 5 ] => Resolved [ 5 ]
QA Status: No test => Done successfully
status: Resolved [ 5 ] => Closed [ 6 ]
asfernandes
No branches or pull requests
Submitted by: jzugaj (jzugaj)
the return clause in trigger will cause ambiguous field name between table B and table A error
CREATE TABLE A
(
ID INTEGER NOT NULL,
QTY FLOAT,
CONSTRAINT PK_A PRIMARY KEY (ID)
);
CREATE TABLE B
(
ID INTEGER NOT NULL,
QTY FLOAT,
CONSTRAINT PK_B PRIMARY KEY (ID)
);
CREATE TRIGGER T_TEST_TRIGG FOR B ACTIVE BEFORE INSERT POSITION 0 AS
declare oldQty float;
declare newQty float;
begin
update a
set qty = new.qty
where
http://id=new.id
returning new.qty, old.qty
into newQty, oldQty;
end
Commits: 495047d e9eea07
The text was updated successfully, but these errors were encountered: