diff options
author | dlenev@jabberwock.localdomain <> | 2004-04-02 10:12:53 +0400 |
---|---|---|
committer | dlenev@jabberwock.localdomain <> | 2004-04-02 10:12:53 +0400 |
commit | f6bff2e6c662d4778f86a919b6f7b731d2553f44 (patch) | |
tree | 9a60588328f7225c26e34d7cf0ce3ae4875c3523 /sql/item_func.h | |
parent | 4533338075714e2be7d4cfc8b2825cb52917603f (diff) | |
download | mariadb-git-f6bff2e6c662d4778f86a919b6f7b731d2553f44.tar.gz |
WL#1266 "Separate auto-set logic from TIMESTAMP type."
Final version of patch.
Adds support for specifying of DEFAULT NOW() and/or ON UPDATE NOW()
clauses for TIMESTAMP field definition.
Current implementation allows only one such field per table and
uses several unireg types for storing info about this properties of
field. It should be replaced with better implementation when new
.frm format is introduced.
Diffstat (limited to 'sql/item_func.h')
-rw-r--r-- | sql/item_func.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/item_func.h b/sql/item_func.h index 4142498af6c..39c0a47ed7c 100644 --- a/sql/item_func.h +++ b/sql/item_func.h @@ -47,7 +47,7 @@ public: SP_CONTAINS_FUNC,SP_OVERLAPS_FUNC, SP_STARTPOINT,SP_ENDPOINT,SP_EXTERIORRING, SP_POINTN,SP_GEOMETRYN,SP_INTERIORRINGN, - NOT_FUNC, NOT_ALL_FUNC}; + NOT_FUNC, NOT_ALL_FUNC, NOW_FUNC}; enum optimize_type { OPTIMIZE_NONE,OPTIMIZE_KEY,OPTIMIZE_OP, OPTIMIZE_NULL }; enum Type type() const { return FUNC_ITEM; } virtual enum Functype functype() const { return UNKNOWN_FUNC; } |