Commit aecc95a1 authored by Sergei Petrunia's avatar Sergei Petrunia

MariaRocks port: fix rocksdb.autoinc_vars

parent 044ad5d3
......@@ -52,13 +52,12 @@ DROP TABLE t1;
SET auto_increment_increment = 500;
SET auto_increment_offset = 300;
CREATE TABLE t1 (a TINYINT AUTO_INCREMENT PRIMARY KEY) ENGINE=rocksdb;
# In MariaDB, this is an error:
INSERT INTO t1 (a) VALUES (NULL);
Warnings:
Warning 1264 Out of range value for column 'a' at row 1
ERROR 22003: Out of range value for column 'a' at row 1
SELECT LAST_INSERT_ID();
LAST_INSERT_ID()
127
850
SELECT a FROM t1 ORDER BY a;
a
127
DROP TABLE t1;
......@@ -57,6 +57,8 @@ SET auto_increment_increment = 500;
SET auto_increment_offset = 300;
CREATE TABLE t1 (a TINYINT AUTO_INCREMENT PRIMARY KEY) ENGINE=rocksdb;
--echo # In MariaDB, this is an error:
--error HA_ERR_AUTOINC_ERANGE
INSERT INTO t1 (a) VALUES (NULL);
SELECT LAST_INSERT_ID();
SELECT a FROM t1 ORDER BY a;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment