mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
MDEV-18428 Memory: If transactional=0 is specified in CREATE TABLE, it is not possible to ALTER TABLE
* be strict in CREATE TABLE, just like in ALTER TABLE, because CREATE TABLE, just like ALTER TABLE, can be rolled back for any engine * but don't auto-convert warnings into errors for engine warnings (handler::create) - this matches ALTER TABLE behavior * and not when creating a default record, these errors are handled specially (and replaced with ER_INVALID_DEFAULT) * always issue a Note when a non-unique key is truncated, because it's not a Warning that can be converted to an Error. Before this commit it was a Note for blobs and a Warning for all other data types.
This commit is contained in:
@@ -3,7 +3,7 @@ include/master-slave.inc
|
||||
SET SQL_LOG_BIN=0;
|
||||
CREATE TABLE t1 (c1 char(255) DEFAULT NULL, KEY c1 (c1)) DEFAULT CHARSET=utf32;
|
||||
Warnings:
|
||||
Warning 1071 Specified key was too long; max key length is 1000 bytes
|
||||
Note 1071 Specified key was too long; max key length is 1000 bytes
|
||||
SET SQL_LOG_BIN=1;
|
||||
connection slave;
|
||||
SET @saved_slave_type_conversions= @@global.slave_type_conversions;
|
||||
@@ -13,7 +13,7 @@ include/start_slave.inc
|
||||
SET SQL_LOG_BIN=0;
|
||||
CREATE TABLE t1 ( c1 varchar(255) DEFAULT NULL, KEY c1 (c1)) DEFAULT CHARSET=utf32;
|
||||
Warnings:
|
||||
Warning 1071 Specified key was too long; max key length is 1000 bytes
|
||||
Note 1071 Specified key was too long; max key length is 1000 bytes
|
||||
SET SQL_LOG_BIN=1;
|
||||
connection master;
|
||||
INSERT INTO t1(c1) VALUES ('insert into t1');
|
||||
|
Reference in New Issue
Block a user