*** Bug #42196 ***
SET @@storage_engine = 'Falcon';
DROP TABLE IF EXISTS t1;
DROP FUNCTION IF EXISTS f1;
CREATE TABLE t1 (s1 bit(3), key(s1));
CREATE FUNCTION f1() RETURNS int RETURN 1;
INSERT INTO t1 VALUES (2*f1());
SELECT s1+0 FROM t1 WHERE s1 = 2;
s1+0
2
SELECT s1+0 from t1;
s1+0
2
SELECT count(*) FROM t1;
count(*)
1
DROP TABLE t1;
DROP FUNCTION f1;
