diff options
Diffstat (limited to 'sql/field.h')
-rw-r--r-- | sql/field.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sql/field.h b/sql/field.h index 8c4219513a9..c059c5c78b9 100644 --- a/sql/field.h +++ b/sql/field.h @@ -3084,6 +3084,14 @@ public: { return 255 - FRM_VCOL_HEADER_SIZE(interval != NULL); } + + bool has_default_function() const + { + return (unireg_check == Field::TIMESTAMP_DN_FIELD || + unireg_check == Field::TIMESTAMP_DNUN_FIELD || + unireg_check == Field::TIMESTAMP_UN_FIELD || + unireg_check == Field::NEXT_NUMBER); + } }; |