List:Commits« Previous MessageNext Message »
From:ramil Date:January 26 2006 9:15am
Subject:bk commit into 5.0 tree (ramil:1.2009) BUG#16511
View as plain text  
Below is the list of changes that have just been committed into a local
5.0 repository of ram. When ram does a push these changes will
be propagated to the main repository and, within 24 hours after the
push, to the public repository.
For information on how to access the public repository
see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html

ChangeSet
  1.2009 06/01/26 13:15:47 ramil@stripped +1 -0
  Fix for bug #16511: Decimal data types broken with prepared statements.

  sql/sql_prepare.cc
    1.168 06/01/26 13:15:39 ramil@stripped +1 -1
    Fix for bug #16511: Decimal data types broken with prepared statements.
    - should add the real length.

# This is a BitKeeper patch.  What follows are the unified diffs for the
# set of deltas contained in the patch.  The rest of the patch, the part
# that BitKeeper cares about, is below these diffs.
# User:	ramil
# Host:	myoffice.izhnet.ru
# Root:	/usr/home/ram/work/5.0.b16511

--- 1.167/sql/sql_prepare.cc	2006-01-24 16:48:13 +04:00
+++ 1.168/sql/sql_prepare.cc	2006-01-26 13:15:39 +04:00
@@ -405,7 +405,7 @@ static void set_param_decimal(Item_param
 {
   ulong length= get_param_length(pos, len);
   param->set_decimal((char*)*pos, length);
-  *pos+= len;
+  *pos+= length;
 }
 
 #ifndef EMBEDDED_LIBRARY
Thread
bk commit into 5.0 tree (ramil:1.2009) BUG#16511ramil26 Jan