List:Commits« Previous MessageNext Message »
From:tim Date:April 4 2007 9:06am
Subject:bk commit into 5.0 tree (tsmith:1.2434)
View as plain text  
Below is the list of changes that have just been committed into a local
5.0 repository of tsmith. When tsmith 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, 2007-04-04 11:06:48+02:00, tsmith@stripped +1 -0
  Merge tsmith@stripped:/home/bk/mysql-5.0
  into  quadxeon.mysql.com:/benchmarks/ext3/TOSAVE/tsmith/bk/maint/mrg04/50
  MERGE: 1.2430.1.1

  sql/item_func.cc@stripped, 2007-04-04 11:06:40+02:00, tsmith@stripped +0 -0
    Auto merged
    MERGE: 1.328.1.2

# 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:	tsmith
# Host:	quadxeon.mysql.com
# Root:	/benchmarks/ext3/TOSAVE/tsmith/bk/maint/mrg04/50/RESYNC

--- 1.330/sql/item_func.cc	2007-04-02 20:06:07 +02:00
+++ 1.331/sql/item_func.cc	2007-04-04 11:06:40 +02:00
@@ -5035,7 +5035,7 @@ Item_func_sp::func_name() const
 {
   THD *thd= current_thd;
   /* Calculate length to avoid reallocation of string for sure */
-  uint len= ((m_name->m_db.length +
+  uint len= ((m_name->m_explicit_name ? m_name->m_db.length : 0 +
               m_name->m_name.length)*2 + //characters*quoting
              2 +                         // ` and `
              1 +                         // .
@@ -5045,8 +5045,11 @@ Item_func_sp::func_name() const
                system_charset_info);
 
   qname.length(0);
-  append_identifier(thd, &qname, m_name->m_db.str, m_name->m_db.length);
-  qname.append('.');
+  if (m_name->m_explicit_name)
+  {
+    append_identifier(thd, &qname, m_name->m_db.str, m_name->m_db.length);
+    qname.append('.');
+  }
   append_identifier(thd, &qname, m_name->m_name.str, m_name->m_name.length);
   return qname.ptr();
 }
Thread
bk commit into 5.0 tree (tsmith:1.2434)tim4 Apr