mirror of
https://github.com/MariaDB/server.git
synced 2025-09-02 09:41:40 +03:00
Fix for bug #16511: Decimal data types broken with prepared statements.
sql/sql_prepare.cc: Fix for bug #16511: Decimal data types broken with prepared statements. - should add the real length.
This commit is contained in:
@@ -405,7 +405,7 @@ static void set_param_decimal(Item_param *param, uchar **pos, ulong len)
|
|||||||
{
|
{
|
||||||
ulong length= get_param_length(pos, len);
|
ulong length= get_param_length(pos, len);
|
||||||
param->set_decimal((char*)*pos, length);
|
param->set_decimal((char*)*pos, length);
|
||||||
*pos+= len;
|
*pos+= length;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef EMBEDDED_LIBRARY
|
#ifndef EMBEDDED_LIBRARY
|
||||||
|
Reference in New Issue
Block a user