From 17ab02f4b0537de321a281f47dec825a6368d483 Mon Sep 17 00:00:00 2001 From: Sergei Golubchik Date: Mon, 2 Sep 2019 10:53:46 +0200 Subject: cleanup: on update default now * remove one level of virtual functions * remove redundant checks * remove an if() as the value is always known at compilation time don't pretend that "DEFAULT expr" and "ON UPDATE DEFAULT NOW" are "basically the same thing" --- sql/table.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sql/table.h') diff --git a/sql/table.h b/sql/table.h index 8f6a9e7aa86..f10e00562dc 100644 --- a/sql/table.h +++ b/sql/table.h @@ -1453,7 +1453,8 @@ public: ulong actual_key_flags(KEY *keyinfo); int update_virtual_field(Field *vf); int update_virtual_fields(handler *h, enum_vcol_update_mode update_mode); - int update_default_fields(bool update, bool ignore_errors); + int update_default_fields(bool ignore_errors); + void evaluate_update_default_function(); void reset_default_fields(); inline ha_rows stat_records() { return used_stat_records; } -- cgit v1.2.1