diff options
author | Alexander Barkov <bar@mariadb.org> | 2017-05-17 12:21:39 +0400 |
---|---|---|
committer | Alexander Barkov <bar@mariadb.org> | 2017-05-17 12:21:39 +0400 |
commit | fba7fbbc5c7bb1d05488108a29b854ee8ef0066a (patch) | |
tree | c18d848238c5291d42b1fd5b827d58055b5a59d2 /sql/sql_table.h | |
parent | f1b729d35270383048842f2023a5c42769d6637f (diff) | |
download | mariadb-git-fba7fbbc5c7bb1d05488108a29b854ee8ef0066a.tar.gz |
MDEV-9397 Split field.cc:calc_pack_length() into virtual methods in Type_handler
- Adding new virtual methods in Type_handler:
* Column_definition_prepare_stage1()
* Column_definition_prepare_stage2()
* calc_pack_length()
- Using new methods to remove type specific code in:
* Global function calc_pack_length()
* Column_definition::prepare_create_field()
* The loop body mysql_prepare_create_table()
* Column_definition::sp_prepare_create_field()
Diffstat (limited to 'sql/sql_table.h')
-rw-r--r-- | sql/sql_table.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_table.h b/sql/sql_table.h index 4fb6135e9cc..2e080462deb 100644 --- a/sql/sql_table.h +++ b/sql/sql_table.h @@ -253,7 +253,7 @@ bool quick_rm_table(THD *thd, handlerton *base, const char *db, const char *table_path=0); void close_cached_table(THD *thd, TABLE *table); void sp_prepare_create_field(THD *thd, Column_definition *sql_field); -CHARSET_INFO* get_sql_field_charset(Create_field *sql_field, +CHARSET_INFO* get_sql_field_charset(Column_definition *sql_field, HA_CREATE_INFO *create_info); bool mysql_write_frm(ALTER_PARTITION_PARAM_TYPE *lpt, uint flags); int write_bin_log(THD *thd, bool clear_error, |