Skip to content

Correct assert in constantExists function - #9123

Merged
dyemanov merged 1 commit into
FirebirdSQL:masterfrom
Noremos:master_correct_constant_exists_assert
Aug 14, 2026
Merged

Correct assert in constantExists function#9123
dyemanov merged 1 commit into
FirebirdSQL:masterfrom
Noremos:master_correct_constant_exists_assert

Conversation

@Noremos

@Noremos Noremos commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

Schema of a constant may not be specified if there is no search path

Schema of a constant may not be specified if there is no search path
@dyemanov
dyemanov merged commit b63cdf3 into FirebirdSQL:master Aug 14, 2026
23 checks passed
@pavel-zotov

Copy link
Copy Markdown

::: QA note :::
i can't understand how to reproduce difference before and after this PR has been committed.
Following snippet shows the same:

create package pg_test as
begin
    constant PHONE varchar(12) = '+11111111111';
end
;

create schema stock;
create package stock.pg_test as
begin
    constant PHONE varchar(12) = '+22222222222';
end
;

set bail off;
select pg_test.PHONE as phone from rdb$database;
set search_path to stock;
select pg_test.PHONE as phone from rdb$database;
PHONE                           +11111111111
PHONE                           +22222222222

@dyemanov

Copy link
Copy Markdown
Member

@pavel-zotov Only the debug build was affected (while running core_6469_test.py).

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants