1
0
mirror of https://github.com/MariaDB/server.git synced 2026-01-06 05:22:24 +03:00

MDEV-20042 Implement EXTRA2_FIELD_DATA_TYPE_INFO in FRM

This commit is contained in:
Alexander Barkov
2019-07-11 14:50:39 +04:00
parent c8e94e5eda
commit 1517087b54
8 changed files with 267 additions and 1 deletions

View File

@@ -8365,6 +8365,20 @@ const Name & Type_handler_timestamp_common::default_value() const
return def;
}
/***************************************************************************/
bool Type_handler::Column_definition_data_type_info_image(Binary_string *to,
const Column_definition &def)
const
{
// Have *some* columns write type info (let's use string fields as an example)
DBUG_EXECUTE_IF("frm_data_type_info_emulate",
if (cmp_type() == STRING_RESULT)
return to->append(name().lex_cstring()););
return false;
}
/***************************************************************************/
LEX_CSTRING Charset::collation_specific_name() const