Details
Description
Here is the mtr test,
CREATE TABLE t1 (a INT); |
INSERT INTO t1 VALUES (1), (2), (3), (4), (5), (6), (7), (8), (9), (10); |
set optimizer_use_condition_selectivity=4; |
CREATE FUNCTION f1() RETURNS INT DETERMINISTIC |
BEGIN
|
SET @cnt := @cnt + 1; |
RETURN 1; |
END;| |
SET @cnt := 0; |
SELECT * FROM t1 WHERE a = f1(); |
a
|
1
|
SELECT @cnt; |
@cnt
|
2
|
SET @cnt := 0; |
set optimizer_use_condition_selectivity=1; |
SELECT * FROM t1 WHERE a = f1(); |
a
|
1
|
drop table t1; |
drop function f1; |
Attachments
Issue Links
- relates to
-
MDEV-15253 Default optimizer setting changes for MariaDB 10.4
-
- Closed
-
Activity
Transition | Time In Source Status | Execution Times |
---|
|
43d 11h 1m | 1 |
|
10h 11m | 1 |
|
18h 8m | 2 |
|
151d 11h 15m | 2 |
|
10h 31m | 1 |