Maurice van der Stee
2018-11-29 13:45:44 UTC
This reproduces the issue for me:
create table config (config_package integer, config_flags integer);
insert into config (config_package, config_flags) values (1, 2);
insert into config (config_package, config_flags) values (2, 4);
insert into config (config_package, config_flags) values (3, 6);
select config_package, config_flags, (config_flags & '4') from config
where (config_flags & '4') != '4';
This produces:
1|2|0
2|4|4
3|6|4
While it should only have returned the first row.
create table config (config_package integer, config_flags integer);
insert into config (config_package, config_flags) values (1, 2);
insert into config (config_package, config_flags) values (2, 4);
insert into config (config_package, config_flags) values (3, 6);
select config_package, config_flags, (config_flags & '4') from config
where (config_flags & '4') != '4';
This produces:
1|2|0
2|4|4
3|6|4
While it should only have returned the first row.
--
===============================
Maurice van der Stee (***@planet.nl)
===============================
Maurice van der Stee (***@planet.nl)