mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
move away from TIMESTAMP_DNUN_FIELD/TIMESTAMP_DN_FIELD code
use the new approach with Field->default_value expressions. But keep the old TIMESTAMP_UN_FIELD for ON UPDATE NOW().
This commit is contained in:
@ -9670,8 +9670,7 @@ copy_data_between_tables(THD *thd, TABLE *from, TABLE *to,
|
||||
Old fields keep their current values, and therefore should not be
|
||||
present in the set of autoupdate fields.
|
||||
*/
|
||||
if ((*ptr)->default_value ||
|
||||
((*ptr)->has_insert_default_function()))
|
||||
if ((*ptr)->default_value)
|
||||
{
|
||||
*(dfield_ptr++)= *ptr;
|
||||
++to->s->default_fields;
|
||||
|
Reference in New Issue
Block a user