From 27c25d38ef9fc69e6cc068b513d98d9864aada55 Mon Sep 17 00:00:00 2001 From: unknown 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: Fix for bug #16511: Decimal data types broken with prepared statements. - should add the real length. --- 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