mirror of
https://github.com/MariaDB/server.git
synced 2025-01-18 04:53:01 +01:00
MariaRocks port: fix rocksdb.autoinc_vars
This commit is contained in:
parent
044ad5d3d9
commit
aecc95a15c
2 changed files with 5 additions and 4 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue