Something very annoying is happening with my TIMESTAMPS ...
I have a column "createdat", "deletedat" and "updatedat" in my table ... I set my deleted item and updated it to NULL and DEFAULT NULL ... however, when a new record is added, the NOW () function always executed for deleteat and updatedat instead of just leaving it as NULL.
So I'm finishing: 00:00:00 ...
Why is this not just the default NULL?
Here is my table:

Here when pasting (note the NOW function):

The following SQL is executed:
INSERT INTO `MYTABLE_DEV`.`messages` (`id`, `fromUserId`, `toUserId`, `subject`, `body`, `createdat`, `updatedat`, `deletedat`) VALUES (NULL, '1', '3', 'Message', 'This is another message.', CURRENT_TIMESTAMP, NOW(), NOW());
source
share