Navigation Menu

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

'type of column' error message improvements [CORE5731] #5996

Open
firebird-automations opened this issue Jan 31, 2018 · 0 comments
Open

'type of column' error message improvements [CORE5731] #5996

firebird-automations opened this issue Jan 31, 2018 · 0 comments

Comments

@firebird-automations
Copy link
Collaborator

Submitted by: @pcisar

after misspelling table in 'type of column' declaration
error message begins with 'column does not exists',
thus developers start looking for problems in wrong place (columns),
and it may take a while to spot real error (table), e.g.:

set term ^ ;
create or alter procedure test_err
as
declare variable var type of column tbl.fld;
begin
select fld from tbl into :var;
end
^
set term ; ^
commit;

/*column FLD does not exist in table/view TBL*/

would it be possible to improve error messages
and make it work like in 'select' statements (table has priority over columns):

select fld from tbl;

/*-Table unknown
-TBL*/

select fld from rdb$database;

/*-Column unknown
-FLD*/

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

1 participant