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
SELECT prc.ID_NEW, t.ID FROM P12 prc LEFT JOIN T1 t ON t.id=prc.ID_NEW
FB5.0.2.1583 ID_NEW ID 2 < null >
FB2.5.6.26967 ID_NEW ID 2 2
Metadata:
CREATE TABLE T1 (ID INTEGER);
CREATE SEQUENCE GEN_T1_ID;
SET TERM ^ ;
CREATE TRIGGER T1_Bi FOR T1 ACTIVE BEFORE INSERT POSITION 0 AS BEGIN IF (NEW.Id IS NULL) THEN NEW.Id = GEN_ID(Gen_T1_Id,1); END^
CREATE PROCEDURE P12 RETURNS (ID_NEW INTEGER) AS BEGIN ID_NEW = GEN_ID(Gen_T1_Id, 1); INSERT INTO T1 (id) VALUES (:ID_NEW); SUSPEND; END^
SET TERM ; ^
COMMIT;
The text was updated successfully, but these errors were encountered:
As designed: Firebird 5 has cursor stability so query cannot see own changes.
Sorry, something went wrong.
No branches or pull requests
SELECT prc.ID_NEW, t.ID
FROM P12 prc
LEFT JOIN T1 t ON t.id=prc.ID_NEW
FB5.0.2.1583
ID_NEW ID
2 < null >
FB2.5.6.26967
ID_NEW ID
2 2
Metadata:
CREATE TABLE T1 (ID INTEGER);
CREATE SEQUENCE GEN_T1_ID;
SET TERM ^ ;
CREATE TRIGGER T1_Bi FOR T1
ACTIVE BEFORE INSERT POSITION 0
AS
BEGIN
IF (NEW.Id IS NULL) THEN
NEW.Id = GEN_ID(Gen_T1_Id,1);
END^
CREATE PROCEDURE P12
RETURNS (ID_NEW INTEGER)
AS
BEGIN
ID_NEW = GEN_ID(Gen_T1_Id, 1);
INSERT INTO T1 (id) VALUES (:ID_NEW);
SUSPEND;
END^
SET TERM ; ^
COMMIT;
The text was updated successfully, but these errors were encountered: