Re: mysql: баг или кривые руки?
От: rosencrantz США  
Дата: 01.09.21 19:12
Оценка: 86 (2)
Здравствуйте, pva, Вы писали:

pva>Поле from создается с DEFAULT CURRENT_TIMESTAMP(3) ON UPDATE CURRENT_TIMESTAMP(3)

pva>и никакие попытки изменить это не проходят.

Фича: https://dev.mysql.com/doc/refman/5.7/en/timestamp-initialization.html

TIMESTAMP and DATETIME columns have no automatic properties unless they are specified explicitly, with this exception: If the explicit_defaults_for_timestamp system variable is disabled, the first TIMESTAMP column has both DEFAULT CURRENT_TIMESTAMP and ON UPDATE CURRENT_TIMESTAMP if neither is specified explicitly. To suppress automatic properties for the first TIMESTAMP column, use one of these strategies...

 
Подождите ...
Wait...
Пока на собственное сообщение не было ответов, его можно удалить.