mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Merge branch '10.2' into 10.3
This commit is contained in:
@ -865,3 +865,22 @@ t2 CREATE TABLE `t2` (
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
drop table t1, t2;
|
||||
End of 5.5 tests
|
||||
#
|
||||
# Beginning of 10.2 test
|
||||
#
|
||||
# MDEV-26698: Incorrect row number upon INSERT .. SELECT from the same
|
||||
# table: rows are counted twice
|
||||
#
|
||||
CREATE TABLE t1(a TINYINT);
|
||||
INSERT INTO t1 VALUES (1), (100);
|
||||
INSERT INTO t1 SELECT a*2 FROM t1;
|
||||
Warnings:
|
||||
Warning 1264 Out of range value for column 'a' at row 2
|
||||
TRUNCATE TABLE t1;
|
||||
# using ORDER BY
|
||||
INSERT INTO t1 VALUES(1), (2), (100), (3);
|
||||
INSERT INTO t1 SELECT a*2 FROM t1 ORDER BY a;
|
||||
Warnings:
|
||||
Warning 1264 Out of range value for column 'a' at row 4
|
||||
DROP TABLE t1;
|
||||
# End of 10.2 test
|
||||
|
Reference in New Issue
Block a user