mirror of
https://github.com/MariaDB/server.git
synced 2025-01-31 11:01:52 +01:00
22 lines
704 B
Text
22 lines
704 B
Text
--source include/have_innodb.inc
|
|
--source include/have_partition.inc
|
|
|
|
CREATE TABLE t (c BIGINT UNSIGNED AUTO_INCREMENT PRIMARY KEY) ENGINE=MEMORY PARTITION BY KEY();
|
|
INSERT INTO t VALUES (18446744073709551615);
|
|
select * from t;
|
|
drop table t;
|
|
|
|
CREATE TABLE t (c BIGINT UNSIGNED AUTO_INCREMENT PRIMARY KEY) ENGINE=MEMORY;
|
|
INSERT INTO t VALUES (18446744073709551615);
|
|
ALTER TABLE t PARTITION BY KEY();
|
|
INSERT INTO t VALUES (1);
|
|
select * from t;
|
|
drop table t;
|
|
|
|
CREATE TABLE t (c BIGINT UNSIGNED AUTO_INCREMENT PRIMARY KEY) ENGINE=MEMORY;
|
|
INSERT INTO t VALUES (18446744073709551615);
|
|
ALTER TABLE t PARTITION BY KEY();
|
|
--error ER_AUTOINC_READ_FAILED
|
|
INSERT INTO t VALUES (NULL);
|
|
select * from t;
|
|
drop table t;
|