File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
storage/rocksdb/mysql-test/rocksdb Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -52,13 +52,12 @@ DROP TABLE t1;
52
52
SET auto_increment_increment = 500;
53
53
SET auto_increment_offset = 300;
54
54
CREATE TABLE t1 (a TINYINT AUTO_INCREMENT PRIMARY KEY) ENGINE=rocksdb;
55
+ # In MariaDB, this is an error:
55
56
INSERT INTO t1 (a) VALUES (NULL);
56
- Warnings:
57
- Warning 1264 Out of range value for column 'a' at row 1
57
+ ERROR 22003: Out of range value for column 'a' at row 1
58
58
SELECT LAST_INSERT_ID();
59
59
LAST_INSERT_ID()
60
- 127
60
+ 850
61
61
SELECT a FROM t1 ORDER BY a;
62
62
a
63
- 127
64
63
DROP TABLE t1;
Original file line number Diff line number Diff line change @@ -57,6 +57,8 @@ SET auto_increment_increment = 500;
57
57
SET auto_increment_offset = 300;
58
58
59
59
CREATE TABLE t1 (a TINYINT AUTO_INCREMENT PRIMARY KEY) ENGINE=rocksdb;
60
+ --echo # In MariaDB, this is an error:
61
+ --error HA_ERR_AUTOINC_ERANGE
60
62
INSERT INTO t1 (a) VALUES (NULL);
61
63
SELECT LAST_INSERT_ID();
62
64
SELECT a FROM t1 ORDER BY a;
You can’t perform that action at this time.
0 commit comments