Skip to content

Commit aecc95a

Browse files
committed
MariaRocks port: fix rocksdb.autoinc_vars
1 parent 044ad5d commit aecc95a

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

storage/rocksdb/mysql-test/rocksdb/r/autoinc_vars.result

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,12 @@ DROP TABLE t1;
5252
SET auto_increment_increment = 500;
5353
SET auto_increment_offset = 300;
5454
CREATE TABLE t1 (a TINYINT AUTO_INCREMENT PRIMARY KEY) ENGINE=rocksdb;
55+
# In MariaDB, this is an error:
5556
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
5858
SELECT LAST_INSERT_ID();
5959
LAST_INSERT_ID()
60-
127
60+
850
6161
SELECT a FROM t1 ORDER BY a;
6262
a
63-
127
6463
DROP TABLE t1;

storage/rocksdb/mysql-test/rocksdb/t/autoinc_vars.test

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ SET auto_increment_increment = 500;
5757
SET auto_increment_offset = 300;
5858

5959
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
6062
INSERT INTO t1 (a) VALUES (NULL);
6163
SELECT LAST_INSERT_ID();
6264
SELECT a FROM t1 ORDER BY a;

0 commit comments

Comments
 (0)