MySQL 5.5 & 5.6 default values
I'd like some clarification on the behaviour of default values in MySQL 5.5 & 5.6. Lets say we have the following table on a MySQL 5.5 server: CREATE TABLE `test` ( `TestColumn` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ) ENGINE=INNODB DEFAULT CHARSET=utf8; I am able to run the following query without issue: INSERT INTO `test` VALUES (NULL); Which creates the following row: TestColumn 2014-02-20 14:55:05 Now if I repeat the same test on a MySQL 5.6 server, the insert fails: Error Code: 1048 Column 'TestColumn' cannot be null I understand that timestamp automatic initilisation has changed in