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

Create function/sp which references to non-existent exception: error message is "Error while parsing function's BLR" instead of "exception not defined" [CORE4371] #4693

Closed
firebird-automations opened this issue Mar 25, 2014 · 5 comments

Comments

@firebird-automations
Copy link
Collaborator

Submitted by: @pavel-zotov

LI-T6.3.0.30981

The following script will show error message "Error while parsing function's BLR" instead of normal explanation that exception does not exist, i.e. a specific error message is lost while raising a more generic one.

set term ^;
create or alter function fn_test returns int as begin end^
set term ;^
commit;

set term ^;
create or alter function fn_test returns int as
begin
exception ex_some_non_existent_name;
return 1;
end
^
set term ;^
commit;

If comment line #⁠2 ( create or alter function fn_test returns int as begin end^) - all becomes OK.

Commits: 7596de8 FirebirdSQL/fbt-repository@839c3f2

@firebird-automations
Copy link
Collaborator Author

Modified by: @dyemanov

description: LI-T6.3.0.30981

The following script will show error message "unknown ISC error 335544994" instead of normal explanation that exception does not exists:

set term ^;
create or alter function fn_test returns int as begin end^
set term ;^
commit;

set term ^;
create or alter function fn_test returns int as
begin
exception ex_some_non_existent_name;
return 1;
end
^
set term ;^
commit;

If comment line #⁠2 ( create or alter function fn_test returns int as begin end^) - all becomes OK.

=>

LI-T6.3.0.30981

The following script will show error message "Error while parsing function's BLR" instead of normal explanation that exception does not exist, i.e. a specific error message is lost while raising a more generic one.

set term ^;
create or alter function fn_test returns int as begin end^
set term ;^
commit;

set term ^;
create or alter function fn_test returns int as
begin
exception ex_some_non_existent_name;
return 1;
end
^
set term ;^
commit;

If comment line #⁠2 ( create or alter function fn_test returns int as begin end^) - all becomes OK.

summary: Create function/sp which references to NON-existent exception: compiler outputs "unknown ISC error 335544994" instead of "exception not defined" => Create function/sp which references to non-existent exception: error message is "Error while parsing function's BLR" instead of "exception not defined"

@firebird-automations
Copy link
Collaborator Author

Modified by: @dyemanov

assignee: Dmitry Yemanov [ dimitr ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @dyemanov

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

resolution: Fixed [ 1 ]

Fix Version: 3.0 Beta 1 [ 10332 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pavel-zotov

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

QA Status: Done successfully

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

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

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

No branches or pull requests

2 participants