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

@ -7348,7 +7348,7 @@ bool Type_handler::
{
float nr= (float) item->val_real();
if (!item->null_value)
return protocol->store(nr, item->decimals, &buf->m_string);
return protocol->store_float(nr, item->decimals);
return protocol->store_null();
}
@ -7358,7 +7358,7 @@ bool Type_handler::
{
double nr= item->val_real();
if (!item->null_value)
return protocol->store(nr, item->decimals, &buf->m_string);
return protocol->store_double(nr, item->decimals);
return protocol->store_null();
}