summaryrefslogtreecommitdiff
path: root/sql/table.h
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2016-07-24 15:12:54 +0200
committerSergei Golubchik <serg@mariadb.org>2016-08-27 16:59:13 +0200
commitcd51c7fb60e39ae113e6bcf0d029564dd1b391e3 (patch)
treeca47c7f51cd9300900fdf6a3be7eeeaeb995562e /sql/table.h
parent12d2c4fcd0bc3fbe74759e8285f2c93ad348e749 (diff)
downloadmariadb-git-cd51c7fb60e39ae113e6bcf0d029564dd1b391e3.tar.gz
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().
Diffstat (limited to 'sql/table.h')
-rw-r--r--sql/table.h13
1 files changed, 0 insertions, 13 deletions
diff --git a/sql/table.h b/sql/table.h
index 4a86fc455a2..af3990a6882 100644
--- a/sql/table.h
+++ b/sql/table.h
@@ -685,7 +685,6 @@ struct TABLE_SHARE
bool virtual_stored_fields;
bool check_set_initialized;
bool has_update_default_function;
- bool has_insert_default_function;
ulong table_map_id; /* for row-based replication */
/*
@@ -1311,18 +1310,6 @@ public:
void mark_columns_used_by_check_constraints(void);
void mark_check_constraint_columns_for_read(void);
int verify_constraints(bool ignore_failure);
- /**
- Check if a table has a default function either for INSERT or UPDATE-like
- operation
- @retval true there is a default function
- @retval false there is no default function
- */
- inline bool has_default_function(bool is_update)
- {
- return (is_update ?
- s->has_update_default_function :
- s->has_insert_default_function);
- }
inline void column_bitmaps_set(MY_BITMAP *read_set_arg,
MY_BITMAP *write_set_arg)
{