1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-01 03:47:19 +03:00

MDEV-23270 Remove a String parameter from Protocol::store(double/float)

This commit is contained in:
Alexander Barkov
2020-07-23 14:48:04 +04:00
parent 0ac8e2cfdb
commit e96f66b93d
8 changed files with 29 additions and 32 deletions

View File

@ -433,8 +433,6 @@ bool PROFILING::show_profiles()
{
prof= history.iterator_value(iterator);
String elapsed;
double query_time_usecs= prof->m_end_time_usecs - prof->m_start_time_usecs;
if (unit->lim.check_offset(idx))
@ -444,8 +442,8 @@ bool PROFILING::show_profiles()
protocol->prepare_for_resend();
protocol->store((uint32)(prof->profiling_query_id));
protocol->store((double)(query_time_usecs/(1000.0*1000)),
(uint32) TIME_FLOAT_DIGITS-1, &elapsed);
protocol->store_double(query_time_usecs/(1000.0*1000),
(uint32) TIME_FLOAT_DIGITS-1);
if (prof->query_source != NULL)
protocol->store(prof->query_source, strlen(prof->query_source),
system_charset_info);