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

Name resolution in procedures #3074

Closed
monetdb-team opened this issue Nov 30, 2020 · 0 comments
Closed

Name resolution in procedures #3074

monetdb-team opened this issue Nov 30, 2020 · 0 comments
Labels
bug Something isn't working normal SQL

Comments

@monetdb-team
Copy link

Date: 2012-04-27 07:38:02 +0200
From: @mlkersten
To: SQL devs <>
Version: -- development
CC: @njnes

Last updated: 2012-05-25 12:58:48 +0200

Comment 17176

Date: 2012-04-27 07:38:02 +0200
From: @mlkersten

User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:11.0) Gecko/20100101 Firefox/11.0
Build Identifier:

Name resolution gets corrupted when multiple schema references are used in a procedure definition.

Reproducible: Always

Steps to Reproduce:

create table runningcatalog(
tag timestamp
);

create table datacell.lta(
tag timestamp
);

create procedure datacell.archive()
begin
insert into runningcatalog select * from datacell.lta;
end;
call datacell.archive();

Actual Results:

operation successful
operation successful
operation successful
TypeException:user.s0_1[2]:'user.archive' undefined in: _3:any := user.archive()
39000!program contains errors

Comment 17193

Date: 2012-04-27 16:35:49 +0200
From: @njnes

Changeset d6365fe49c70 made by Niels Nes niels@cwi.nl in the MonetDB repo, refers to this bug.

For complete details, see http//devmonetdborg/hg/MonetDB?cmd=changeset;node=d6365fe49c70

Changeset description:

fixed bug #3074, ie switch to the schema of the to be created function.

Comment 17194

Date: 2012-04-27 16:37:08 +0200
From: @njnes

we now switch to the schema of the to be created function. In the example the create procedure will than fail with a unknown table (runningcatalog).

@monetdb-team monetdb-team added bug Something isn't working normal SQL labels Nov 30, 2020
@sjoerdmullender sjoerdmullender added this to the Ancient Release milestone Nov 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working normal SQL
Projects
None yet
Development

No branches or pull requests

2 participants