From a08c0a10229e5bc942e299b08902cc771770945c Mon Sep 17 00:00:00 2001 From: "ramil@mysql.com" <> Date: Thu, 26 Jan 2006 13:15:47 +0400 Subject: [PATCH] Fix for bug #16511: Decimal data types broken with prepared statements. --- sql/sql_prepare.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sql/sql_prepare.cc b/sql/sql_prepare.cc index 68f033f78fe..098608ee43f 100644 --- a/sql/sql_prepare.cc +++ b/sql/sql_prepare.cc @@ -405,7 +405,7 @@ static void set_param_decimal(Item_param *param, uchar **pos, ulong len) { ulong length= get_param_length(pos, len); param->set_decimal((char*)*pos, length); - *pos+= len; + *pos+= length; } #ifndef EMBEDDED_LIBRARY