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
"no current record for fetch operation" when "INNER" joining with stored procedure [CORE6124] #6373
Comments
Modified by: @livius2description: SET TERM ^ ; CREATE PROCEDURE PSTRID SET TERM ; ^ SELECT => SET TERM ^ ; CREATE PROCEDURE PSTRID SET TERM ; ^ SELECT summary: "no current record for fetch operation" when joining with stored procedure inside derived table => "no current record for fetch operation" when joining with stored procedure |
Modified by: @livius2description: SET TERM ^ ; CREATE PROCEDURE PSTRID SET TERM ; ^ SELECT => SET TERM ^ ; CREATE PROCEDURE PSTRID1 SET TERM ; ^ -------------------------------------------------- SELECT |
Modified by: @livius2summary: "no current record for fetch operation" when joining with stored procedure => "no current record for fetch operation" when "INNER" joining with stored procedure |
Commented by: Attila Molnár (e_pluribus_unum) Use LEFT OUTER insted of INNER JOIN. SELECT |
Commented by: Sean Leyne (seanleyne) Attila is correct, only LEFT JOINs to SPs are supported. An INNER JOIN can be emulated by adding a condition to the WHERE clause, as in: SELECT * |
Modified by: Sean Leyne (seanleyne)status: Open [ 1 ] => Resolved [ 5 ] resolution: Won't Fix [ 2 ] |
Commented by: @livius2 Are you sure that "no current record for fetch operation" is proper way of raporting this to the user? |
Commented by: Sean Leyne (seanleyne) I am not saying that. But improving/adding an error message would be a separate "feature request" or "Improvement" issue type, not this "bug" issue. |
Modified by: @pcisarstatus: Resolved [ 5 ] => Closed [ 6 ] |
Submitted by: @livius2
SET TERM ^ ;
CREATE PROCEDURE PSTRID1
( IN_ID1 VARCHAR(100))
RETURNS
( ID1 VARCHAR(100))
AS
BEGIN
ID1 = IN_ID1;
SUSPEND;
END^
SET TERM ; ^
--------------------------------------------------
SELECT
*
FROM
RDB$RELATIONS R
INNER JOIN PSTRID1(R.RDB$RELATION_NAME) P ON P.ID1 = R.RDB$RELATION_NAME
The text was updated successfully, but these errors were encountered: