We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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?
to your account
Submitted by: Vladimir Kozlov (vkozlov)
Is related to QA199
NULLIF crashes when first parameter is constant empty string and second parameter is constant or variable with empty string.
declare variable i varchar(10);
declare variable j varchar(10);
i = ''; j = nullif(i,i); - works
i = 'aaa'; j = nullif('',i); - works
i = ''; j = nullif('',i); - server crashes
Easiest way to reproduce:
select nullif('','') from rdb$database
The text was updated successfully, but these errors were encountered:
Commented by: Vladimir Kozlov (vkozlov)
18.104.22.16867 affected too.
Sorry, something went wrong.
description: Server crashes when inserting in GTT.
To reproduce, make a GTT on empty database:
create global temporary table doc$70$invoice (
iddocrow varchar(40) not null,
idgoods integer not null,
qty integer not null,
price double precision not null,
invamt double precision not null,
custproc double precision,
custposhl double precision,
custacciz double precision,
custtva double precision,
inv_plus_cust double precision,
udeln_summ_rash double precision,
inv_plus_cust_plus_rash double precision,
recompriceopt double precision,
recompriceprim double precision,
newsprice double precision
) on commit delete rows;
alter table doc$70$invoice add constraint pk_doc$70$invoice primary key (iddocrow);
and try to execute insert (from IBExpert's SQL Editor)
INSERT INTO doc$70$invoice (iddocrow,idgoods,qty,price,invamt,custcode,recompriceopt,recompriceprim)
VALUES ( 'a975ce58-c1cf-11db-8000-e503b22223f1' , 136171 , 1056 , 67 , 1056 * 67 ,
'1' ,NULLIF( '' ,''), NULLIF( '' ,''))
After this server crashes.
summary: Server crashes when insert to GTT => NULLIF crashes when first parameter is constant empty string
assignee: Alexander Peshkov [ alexpeshkoff ]
Commented by: @AlexPeshkoff
Cast from NULL to string value of 0 length was broken. Looks like it happened only with nullif('','').
status: Open [ 1 ] => Resolved [ 5 ]
resolution: Fixed [ 1 ]
Fix Version: 2.1 RC1 [ 10201 ]
Link: This issue is related to QA199 [ QA199 ]
Workflow: jira [ 13373 ] => Firebird [ 14025 ]
Commented by: @pmakowski
Q/A test ok
status: Resolved [ 5 ] => Closed [ 6 ]
status: Closed [ 6 ] => Closed [ 6 ]
QA Status: Done successfully
No branches or pull requests