MariaRocks port: fix rocksdb.autoinc_vars

This commit is contained in:
Sergei Petrunia 2016-12-03 18:29:36 +00:00
parent 044ad5d3d9
commit aecc95a15c
2 changed files with 5 additions and 4 deletions

View file

@ -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;

View file

@ -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;