You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Make the same changes as in the previous cset and in
a cset changing rocksdb.col_opt_null a few csets before.
- MySQL 5.6.11 has fixes for Bug #68472, Bug #16394472, MariaDB doesn't.
adjust the testcase accordingly.
ERROR 42000: Display width out of range for column 'bbb' (max = 4294967295)
376
+
ERROR 42000: Display width out of range for 'bbb' (max = 4294967295)
377
377
DROP TABLE t1;
378
378
DROP TABLE IF EXISTS t1;
379
379
#----------------------------------
@@ -398,12 +398,10 @@ CREATE TABLE t1 (
398
398
pk INT AUTO_INCREMENT PRIMARY KEY,
399
399
c BLOB NOT NULL DEFAULT ''
400
400
) ENGINE=rocksdb;
401
-
Warnings:
402
-
Warning 1101 BLOB/TEXT column 'c' can't have a default value
403
401
SHOW COLUMNS IN t1;
404
402
Field Type Null Key Default Extra
405
403
pk int(11) NO PRI NULL auto_increment
406
-
c blob NO NULL
404
+
c blob NO ''
407
405
ALTER TABLE t1 ADD COLUMN err BLOB NOT NULL DEFAULT NULL;
408
406
ERROR 42000: Invalid default value for 'err'
409
407
INSERT INTO t1 (c) VALUES (NULL);
@@ -438,12 +436,10 @@ CREATE TABLE t1 (
438
436
pk INT AUTO_INCREMENT PRIMARY KEY,
439
437
c TINYBLOB NOT NULL DEFAULT ''
440
438
) ENGINE=rocksdb;
441
-
Warnings:
442
-
Warning 1101 BLOB/TEXT column 'c' can't have a default value
443
439
SHOW COLUMNS IN t1;
444
440
Field Type Null Key Default Extra
445
441
pk int(11) NO PRI NULL auto_increment
446
-
c tinyblob NO NULL
442
+
c tinyblob NO ''
447
443
ALTER TABLE t1 ADD COLUMN err TINYBLOB NOT NULL DEFAULT NULL;
448
444
ERROR 42000: Invalid default value for 'err'
449
445
INSERT INTO t1 (c) VALUES (NULL);
@@ -478,12 +474,10 @@ CREATE TABLE t1 (
478
474
pk INT AUTO_INCREMENT PRIMARY KEY,
479
475
c MEDIUMBLOB NOT NULL DEFAULT ''
480
476
) ENGINE=rocksdb;
481
-
Warnings:
482
-
Warning 1101 BLOB/TEXT column 'c' can't have a default value
483
477
SHOW COLUMNS IN t1;
484
478
Field Type Null Key Default Extra
485
479
pk int(11) NO PRI NULL auto_increment
486
-
c mediumblob NO NULL
480
+
c mediumblob NO ''
487
481
ALTER TABLE t1 ADD COLUMN err MEDIUMBLOB NOT NULL DEFAULT NULL;
488
482
ERROR 42000: Invalid default value for 'err'
489
483
INSERT INTO t1 (c) VALUES (NULL);
@@ -518,12 +512,10 @@ CREATE TABLE t1 (
518
512
pk INT AUTO_INCREMENT PRIMARY KEY,
519
513
c LONGBLOB NOT NULL DEFAULT ''
520
514
) ENGINE=rocksdb;
521
-
Warnings:
522
-
Warning 1101 BLOB/TEXT column 'c' can't have a default value
523
515
SHOW COLUMNS IN t1;
524
516
Field Type Null Key Default Extra
525
517
pk int(11) NO PRI NULL auto_increment
526
-
c longblob NO NULL
518
+
c longblob NO ''
527
519
ALTER TABLE t1 ADD COLUMN err LONGBLOB NOT NULL DEFAULT NULL;
528
520
ERROR 42000: Invalid default value for 'err'
529
521
INSERT INTO t1 (c) VALUES (NULL);
@@ -607,9 +599,9 @@ b1 b2
607
599
127 -128
608
600
2 3
609
601
ALTER TABLE t1 ADD COLUMN b3 BOOLEAN UNSIGNED NOT NULL;
610
-
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'UNSIGNED NOT NULL' at line 1
602
+
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'UNSIGNED NOT NULL' at line 1
611
603
ALTER TABLE ADD COLUMN b3 BOOL ZEROFILL NOT NULL;
612
-
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ADD COLUMN b3 BOOL ZEROFILL NOT NULL' at line 1
604
+
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'ADD COLUMN b3 BOOL ZEROFILL NOT NULL' at line 1
613
605
DROP TABLE t1;
614
606
DROP TABLE IF EXISTS t1;
615
607
#----------------------------------
@@ -768,7 +760,7 @@ v65000 varchar(65000) NO NULL
768
760
CREATE TABLE t2 (v VARCHAR(65532), PRIMARY KEY (v(255))) ENGINE=rocksdb;
769
761
SHOW COLUMNS IN t2;
770
762
Field Type Null Key Default Extra
771
-
v varchar(65532) NO PRI
763
+
v varchar(65532) NO PRI NULL
772
764
INSERT INTO t1 (v0,v1,v64,v65000) VALUES ('','','','');
773
765
INSERT INTO t1 (v0,v1,v64,v65000) VALUES ('','y','Once there, double check that an article doesn\'t already exist','Here is a list of recommended books on MariaDB and MySQL. We\'ve provided links to Amazon.com here for convenience, but they can be found at many other bookstores, both online and off.
774
766
@@ -932,7 +924,7 @@ y2 YEAR(2) NOT NULL,
932
924
pk DATETIME PRIMARY KEY
933
925
) ENGINE=rocksdb;
934
926
Warnings:
935
-
Warning 1818 YEAR(2) column type is deprecated. Creating YEAR(4) column instead.
927
+
Note 1287 'YEAR(2)' is deprecated and will be removed in a future release. Please use YEAR(4) instead
936
928
SHOW COLUMNS IN t1;
937
929
Field Type Null Key Default Extra
938
930
d date NO NULL
@@ -941,7 +933,7 @@ ts timestamp NO NULL
941
933
t time NO NULL
942
934
y year(4) NO NULL
943
935
y4 year(4) NO NULL
944
-
y2 year(4) NO NULL
936
+
y2 year(2) NO NULL
945
937
pk datetime NO PRI NULL
946
938
SET @tm = '2012-04-09 05:27:00';
947
939
INSERT INTO t1 (d,dt,ts,t,y,y4,y2,pk) VALUES
@@ -951,27 +943,27 @@ INSERT INTO t1 (d,dt,ts,t,y,y4,y2,pk) VALUES
0 commit comments