среда, 27 мая 2026 г. в 09:12:37 UTC+3, Artyom Abakumov:
The fix has been merged to the master branch.
вторник, 26 мая 2026 г. в 17:03:10 UTC+3, Artyom Abakumov:
create or alter package pg_const as
begin
constant bar smallint = iif(3 > 2, 1, 0);
end
;
-- and get:
Statement failed, SQLSTATE = 42000
CREATE OR ALTER PACKAGE "PUBLIC"."PG_CONST" failed
-The constant "PUBLIC"."PG_CONST"."BAR" must be initialized by a constant expression
> The fix has been merged to the master branch.
Hm-m...
1) I've downloaded 6.0.0.1971-5d04fe7
snapshot with debug symbols
/*
Comparing files <previous_snapshot>\README.packages.txt and
<current_snapshot> \README.PACKAGES.TXT:
***** C:\FB\60CS\DOC\SQL.EXTENSIONS\README.packages.txt
108: 1) Arithmetic operations, unary plus/minus
109: 2) Bool As Value
110: 3) CAST, COALESCE, CONCATENATE, DECODE, EXTRACT, UPPER/LOWER, SUBSTRING
***** C:\FB\60SS\DOC\SQL.EXTENSIONS\README.PACKAGES.TXT
108: 1) Arithmetic operations, unary plus/minus
109: 2) Bool As Value, Boolean compare operations
110: 3) CAST, COALESCE, CONCATENATE, DECODE, EXTRACT, UPPER/LOWER, SUBSTRING
*****
*/
2) and run:
create or alter package pg_const as
begin
constant bar smallint = iif(3 > 2, 1, 0);
end
;
create or alter package pg_const as
begin
constant k_nullif int = nullif( 1, 1 );
end
;3) and get:
Statement failed, SQLSTATE = 08006
Error reading data from the connection.
(on last statement with NULLIF).
Dump, stack-trace and snapshot are
here