mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Lots of small cleanups
- Simplified use_trans_cache() to return at once if is_transactional is set - Indentation and spelling errors fixed - Don't call signal_update() if update_binlog_end_pos() is called as the function already calls signal_update() - Removed not used function wait_for_update_bin_log(), which would cause errors if ever used. - Simplified handler::clone() by always allocating 'ref' in ha_open(). To do this I added an optional MEM_ROOT argument to ha_open() to be used when allocating 'ref' - Changed arguments to get_system_var() from LEX_CSTRING to LEX_CSTRING* - Added THD as argument to create_select_for_variable(). Changed also char* argument to LEX_CSTRING to avoid strlen() call. - Change calls to append() to use LEX_CSTRING
This commit is contained in:
committed by
Sergei Golubchik
parent
a70f7aad55
commit
458d5ed8aa
@ -1773,7 +1773,7 @@ static void append_create_options(THD *thd, String *packet,
|
||||
if (opt->quoted_value)
|
||||
append_unescaped(packet, opt->value.str, opt->value.length);
|
||||
else
|
||||
packet->append(opt->value.str, opt->value.length);
|
||||
packet->append(&opt->value);
|
||||
}
|
||||
if (in_comment)
|
||||
packet->append(STRING_WITH_LEN(" */"));
|
||||
@ -7089,7 +7089,7 @@ static int get_schema_partitions_record(THD *thd, TABLE_LIST *tables,
|
||||
tmp_res.length(0);
|
||||
if (part_elem->has_null_value)
|
||||
{
|
||||
tmp_str.append("NULL");
|
||||
tmp_str.append(STRING_WITH_LEN("NULL"));
|
||||
if (num_items > 0)
|
||||
tmp_str.append(",");
|
||||
}
|
||||
@ -7098,7 +7098,7 @@ static int get_schema_partitions_record(THD *thd, TABLE_LIST *tables,
|
||||
if (part_info->column_list)
|
||||
{
|
||||
if (part_info->part_field_list.elements > 1U)
|
||||
tmp_str.append("(");
|
||||
tmp_str.append(STRING_WITH_LEN("("));
|
||||
if (get_partition_column_description(thd,
|
||||
part_info,
|
||||
list_value,
|
||||
|
Reference in New Issue
Block a user