summaryrefslogtreecommitdiffstats
path: root/mysql-test/main/strict_autoinc_3heap.result
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-04 18:00:34 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-04 18:00:34 +0000
commit3f619478f796eddbba6e39502fe941b285dd97b1 (patch)
treee2c7b5777f728320e5b5542b6213fd3591ba51e2 /mysql-test/main/strict_autoinc_3heap.result
parentInitial commit. (diff)
downloadmariadb-upstream.tar.xz
mariadb-upstream.zip
Adding upstream version 1:10.11.6.upstream/1%10.11.6upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'mysql-test/main/strict_autoinc_3heap.result')
-rw-r--r--mysql-test/main/strict_autoinc_3heap.result26
1 files changed, 26 insertions, 0 deletions
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;