From 3f619478f796eddbba6e39502fe941b285dd97b1 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 4 May 2024 20:00:34 +0200 Subject: Adding upstream version 1:10.11.6. Signed-off-by: Daniel Baumann --- mysql-test/main/strict_autoinc_3heap.result | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 mysql-test/main/strict_autoinc_3heap.result (limited to 'mysql-test/main/strict_autoinc_3heap.result') diff --git a/mysql-test/main/strict_autoinc_3heap.result b/mysql-test/main/strict_autoinc_3heap.result new file mode 100644 index 00000000..21eea537 --- /dev/null +++ b/mysql-test/main/strict_autoinc_3heap.result @@ -0,0 +1,26 @@ +drop table if exists t1; +set @org_mode=@@sql_mode; +create table t1 +( +`a` tinyint(4) NOT NULL auto_increment, +primary key (`a`) +) engine = 'MEMORY' ; +set @@sql_mode='strict_all_tables'; +insert into t1 values(1000); +ERROR 22003: Out of range value for column 'a' at row 1 +select count(*) from t1; +count(*) +0 +set auto_increment_increment=1000; +set auto_increment_offset=700; +insert into t1 values(null); +ERROR 22003: Out of range value for column 'a' at row 1 +select count(*) from t1; +count(*) +0 +set @@sql_mode=@org_mode; +insert into t1 values(null); +ERROR 22003: Out of range value for column 'a' at row 1 +select * from t1; +a +drop table t1; -- cgit v1.2.3