List:Commits« Previous MessageNext Message »
From:Martin Skold Date:October 25 2006 11:21am
Subject:bk commit into 5.0 tree (mskold:1.2285)
View as plain text  
Below is the list of changes that have just been committed into a local
5.0 repository of marty. When marty 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@stripped, 2006-10-25 11:21:05+02:00, mskold@stripped +1 -0
  Merge mysql.com:/windows/Linux_space/MySQL/mysql-4.1
  into  mysql.com:/windows/Linux_space/MySQL/mysql-5.0
  MERGE: 1.1616.2754.5

  sql/handler.cc@stripped, 2006-10-25 11:21:00+02:00, mskold@stripped +0 -0
    Auto merged
    MERGE: 1.103.19.20

# 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:	mskold
# Host:	linux.site
# Root:	/windows/Linux_space/MySQL/mysql-5.0/RESYNC

--- 1.222/sql/handler.cc	2006-10-25 11:21:13 +02:00
+++ 1.223/sql/handler.cc	2006-10-25 11:21:13 +02:00
@@ -1775,16 +1775,15 @@ void handler::print_error(int error, myf
       char key[MAX_KEY_LENGTH];
       String str(key,sizeof(key),system_charset_info);
 
+      key_unpack(&str,table,(uint) key_nr);
       if (key_nr == MAX_KEY)
       {
 	/* Key is unknown */
-	str.length(0);
-	str.append("");
+	str.copy("", 0, system_charset_info);
 	key_nr= -1;
       }
       else
       {
-	key_unpack(&str,table,(uint) key_nr);
 	uint max_length=MYSQL_ERRMSG_SIZE-(uint) strlen(ER(ER_DUP_ENTRY));
 	if (str.length() >= max_length)
 	{
Thread
bk commit into 5.0 tree (mskold:1.2285)Martin Skold25 Oct