Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
10.2(EOL)
-
None
Description
Support for default values for blobs was added in scope of MDEV-10134. So now this works:
DROP TABLE IF EXISTS t1; |
CREATE TABLE t1 (i INT); |
ALTER TABLE t1 ADD COLUMN b1 BLOB NULL; |
ALTER TABLE t1 ALTER COLUMN b1 SET DEFAULT NULL; |
MariaDB [test]> ALTER TABLE t1 ALTER COLUMN b1 SET DEFAULT NULL; |
Query OK, 0 rows affected (0.00 sec) |
Records: 0 Duplicates: 0 Warnings: 0
|
But this does not work:
DROP TABLE IF EXISTS t1; |
CREATE TABLE t1 (i INT); |
ALTER TABLE t1 ADD COLUMN b2 BLOB NULL, ALTER COLUMN b2 SET DEFAULT NULL; |
MariaDB [test]> ALTER TABLE t1 ADD COLUMN b2 BLOB NULL, ALTER COLUMN b2 SET DEFAULT NULL; |
ERROR 1101 (42000): BLOB/TEXT column '(null)' can't have a default value |
Attachments
Issue Links
- relates to
-
MDEV-10134 Add full support for DEFAULT
- Closed