jaybird icon indicating copy to clipboard operation
jaybird copied to clipboard

No longer transform explicit usage of EXECUTE PROCEDURE and SELECT in prepareCall [JDBC577]

Open firebird-automations opened this issue 6 years ago • 2 comments

Submitted by: @mrotteveel

Rework how prepareCall transforms explicit use of EXECUTE PROCEDURE procedure_name or SELECT * FROM procedure_name, as this is currently mapped in the exact same way a {call procedure-name(..)} is handled, which can lead to a EXECUTE PROCEDURE being transformed to SELECT (and vice versa).

This change may have compatibility implications, eg under Firebird 3, transforming SELECT to EXECUTE automatically avoids errors as selecting from an executable procedure is no longer allowed. This may need to have a compatibility property.

firebird-automations avatar Feb 16 '19 15:02 firebird-automations

Modified by: @mrotteveel

Fix Version: Jaybird 5 [ 10871 ]

firebird-automations avatar Feb 16 '19 15:02 firebird-automations

Correction, SELECT * FROM procedure_name in prepareCall doesn't even work, only EXECUTE PROCEDURE and the call-escape is supported.

mrotteveel avatar Jan 21 '23 16:01 mrotteveel