mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
Merge 10.5 into 10.6
This commit is contained in:
@ -944,6 +944,43 @@ Warning 1292 Truncated incorrect DECIMAL value: '0x'
|
||||
# End of 10.4 tests
|
||||
#
|
||||
#
|
||||
# Start of 10.5 tests
|
||||
#
|
||||
#
|
||||
# MDEV-31303: Key not used
|
||||
#
|
||||
CREATE TABLE `a` (
|
||||
`id` bigint AUTO_INCREMENT PRIMARY KEY,
|
||||
`c1` bigint unsigned,
|
||||
KEY (`c1`)
|
||||
);
|
||||
INSERT INTO `a` VALUES (1,9223382399205928659),(2,9223384207280813348),
|
||||
(3,9223385953115437234),(4,9223387250780556749),(5,9223387354282558788),
|
||||
(6,9223387603870501596),(7,9223389270813433667),(8,9223389903231468827),
|
||||
(9,9223390280789586779),(10,9223391591398222899),(11,9223391875473564350),
|
||||
(12,9223393152250049433),(13,9223393939696790223),(14,9223394417225350415),
|
||||
(15,9223397646397141015),(16,9223398025879291243),(17,9223399038671098072),
|
||||
(18,9223399534968874556),(19,9223400449518009285),(20,9223400860292643549),
|
||||
(21,9223400940692256924),(22,9223401073791948119),(23,9223402820804649616),
|
||||
(24,9223403470951992681),(25,9223405581879567267),(26,9223405754978563829),
|
||||
(27,9223405972966828221), (28, 9223372036854775808), (29, 9223372036854775807) ;
|
||||
explain SELECT c1 FROM a WHERE c1 IN ( 1, 9223372036854775807 );
|
||||
id select_type table type possible_keys key key_len ref rows Extra
|
||||
1 SIMPLE a range c1 c1 9 NULL 2 Using where; Using index
|
||||
explain SELECT c1 FROM a WHERE c1 IN ( 1, 9223372036854775808 );
|
||||
id select_type table type possible_keys key key_len ref rows Extra
|
||||
1 SIMPLE a range c1 c1 9 NULL 2 Using where; Using index
|
||||
SELECT c1 FROM a WHERE c1 IN ( 1, 9223372036854775807 );
|
||||
c1
|
||||
9223372036854775807
|
||||
SELECT c1 FROM a WHERE c1 IN ( 1, 9223372036854775808 );
|
||||
c1
|
||||
9223372036854775808
|
||||
drop table `a`;
|
||||
#
|
||||
# End of 10.5 tests
|
||||
#
|
||||
#
|
||||
# MDEV-29662 same values in `IN` set vs equal comparison produces
|
||||
# the different performance
|
||||
#
|
||||
|
Reference in New Issue
Block a user