diff options
author | unknown <timour@askmonty.org> | 2012-12-13 22:56:03 +0200 |
---|---|---|
committer | unknown <timour@askmonty.org> | 2012-12-13 22:56:03 +0200 |
commit | 6e8c4d696a60d34043ca2d1c272fda656955f393 (patch) | |
tree | 0bbe18bcb8ec3798793de5b8bf999e5fe061ddd5 /sql/field.h | |
parent | 69a7b04add1d8102b9f5add88ae691d8b04727bc (diff) | |
download | mariadb-git-6e8c4d696a60d34043ca2d1c272fda656955f393.tar.gz |
MDEV-452 Add full support for auto-initialized/updated timestamp and datetime
Post-review changes according to Monty's review from 28/11/2012.
Diffstat (limited to 'sql/field.h')
-rw-r--r-- | sql/field.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sql/field.h b/sql/field.h index 7006e0bfbe8..da78a7c7674 100644 --- a/sql/field.h +++ b/sql/field.h @@ -342,6 +342,15 @@ public: unireg_check == TIMESTAMP_DNUN_FIELD; } + /* + Mark the field as having a value supplied by the client, thus it should + not be auto-updated. + */ + void set_has_explicit_value() + { + flags|= HAS_EXPLICIT_VALUE; + } + virtual void set_explicit_default(Item *value); /** |