mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
merged 5.1 main -> 5.1-bugteam
This commit is contained in:
@ -29,3 +29,17 @@ insert into t2 select @a:=A.a+10*(B.a + 10*C.a),@a, @a from t1 A, t1 B, t1 C;
|
||||
explain select a from t2 where a=b;
|
||||
drop table t1, t2;
|
||||
|
||||
#
|
||||
# Bug #40360: Binlog related errors with binlog off
|
||||
#
|
||||
# This bug is triggered when the binlog format is STATEMENT and the
|
||||
# binary log is turned off. In this case, no error should be shown for
|
||||
# the statement since there are no replication issues.
|
||||
|
||||
SET SESSION BINLOG_FORMAT=STATEMENT;
|
||||
SET SESSION TRANSACTION ISOLATION LEVEL READ COMMITTED;
|
||||
query_vertical select @@session.sql_log_bin, @@session.binlog_format, @@session.tx_isolation;
|
||||
CREATE TABLE t1 ( a INT ) ENGINE=InnoDB;
|
||||
INSERT INTO t1 VALUES(1);
|
||||
DROP TABLE t1;
|
||||
|
||||
|
@ -14,6 +14,35 @@
|
||||
drop table if exists t1, t2;
|
||||
--enable_warnings
|
||||
|
||||
#
|
||||
# Bug#40494: Crash MYSQL server crashes on range access with partitioning
|
||||
# and order by
|
||||
#
|
||||
CREATE TABLE t1 (a INT NOT NULL, KEY(a))
|
||||
PARTITION BY RANGE(a)
|
||||
(PARTITION p1 VALUES LESS THAN (200), PARTITION pmax VALUES LESS THAN MAXVALUE);
|
||||
INSERT INTO t1 VALUES (2), (40), (40), (70), (60), (90), (199);
|
||||
SELECT a FROM t1 WHERE a BETWEEN 60 AND 95 ORDER BY a ASC;
|
||||
--sorted_result
|
||||
SELECT a FROM t1 WHERE a BETWEEN 60 AND 95;
|
||||
INSERT INTO t1 VALUES (200), (250), (210);
|
||||
SELECT a FROM t1 WHERE a BETWEEN 60 AND 220 ORDER BY a ASC;
|
||||
SELECT a FROM t1 WHERE a BETWEEN 200 AND 220 ORDER BY a ASC;
|
||||
SELECT a FROM t1 WHERE a BETWEEN 60 AND 95 ORDER BY a DESC;
|
||||
SELECT a FROM t1 WHERE a BETWEEN 60 AND 220 ORDER BY a DESC;
|
||||
SELECT a FROM t1 WHERE a BETWEEN 200 AND 220 ORDER BY a DESC;
|
||||
--sorted_result
|
||||
SELECT a FROM t1 WHERE a BETWEEN 60 AND 220;
|
||||
--sorted_result
|
||||
SELECT a FROM t1 WHERE a BETWEEN 200 AND 220;
|
||||
--sorted_result
|
||||
SELECT a FROM t1 WHERE a BETWEEN 60 AND 95;
|
||||
--sorted_result
|
||||
SELECT a FROM t1 WHERE a BETWEEN 60 AND 220;
|
||||
--sorted_result
|
||||
SELECT a FROM t1 WHERE a BETWEEN 200 AND 220;
|
||||
DROP TABLE t1;
|
||||
|
||||
#
|
||||
# Bug35931: Index search may return duplicates
|
||||
#
|
||||
|
Reference in New Issue
Block a user