--
-- ### FLA cache check
--
-- for database version before 2.36.2, this check causes a core dump, since the FLA cache in CegoFactor class was not reset after setting new pFLA

drop if exists table t1;
create table t1 ( a int, b string(30));

drop if exists table t2;
create table t2 ( c int, d string(30));

insert into t1 values ( 1, 'THIS ISHugo');
insert into t1 values ( 2, 'THIS ISBerta');
insert into t1 values ( 3, 'THIS ISKarin');
insert into t1 values ( 4, 'THIS ISWalter');

insert into t2 values ( 1, 'XXX');
insert into t2 values ( 2, 'YYY');
insert into t2 values ( 3, 'FFFF');
insert into t2 values ( 4, 'KKKKK');


select substr(d, 1, length(d) - 2) from t1 tx, t2 ty where tx.a = ty.c;


