List:Commits« Previous MessageNext Message »
From:msvensson Date:July 10 2006 10:48am
Subject:bk commit into 5.0 tree (msvensson:1.2217)
View as plain text  
Below is the list of changes that have just been committed into a local
5.0 repository of msvensson. When msvensson 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-07-10 12:48:09+02:00, msvensson@neptunus.(none) +1 -0
  Merge bk-internal:/home/bk/mysql-5.0-maint
  into  neptunus.(none):/home/msvensson/mysql/mysql-5.0-maint
  MERGE: 1.2164.9.2

  sql/sql_udf.cc@stripped, 2006-07-10 12:48:03+02:00, msvensson@neptunus.(none) +0 -0
    Auto merged
    MERGE: 1.56.1.1

# 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:	msvensson
# Host:	neptunus.(none)
# Root:	/home/msvensson/mysql/mysql-5.0-maint/RESYNC

--- 1.57/sql/sql_udf.cc	2006-07-10 12:48:14 +02:00
+++ 1.58/sql/sql_udf.cc	2006-07-10 12:48:14 +02:00
@@ -140,6 +140,7 @@
   READ_RECORD read_record_info;
   TABLE *table;
   int error;
+  char db[]= "mysql"; /* A subject to casednstr, can't be constant */
   DBUG_ENTER("ufd_init");
 
   if (initialized)
@@ -161,13 +162,12 @@
   initialized = 1;
   new_thd->thread_stack= (char*) &new_thd;
   new_thd->store_globals();
-  new_thd->db= my_strdup("mysql", MYF(0));
-  new_thd->db_length=5;
+  new_thd->set_db(db, sizeof(db)-1);
 
   bzero((gptr) &tables,sizeof(tables));
   tables.alias= tables.table_name= (char*) "func";
   tables.lock_type = TL_READ;
-  tables.db=new_thd->db;
+  tables.db= db;
 
   if (simple_open_n_lock_tables(new_thd, &tables))
   {
Thread
bk commit into 5.0 tree (msvensson:1.2217)msvensson10 Jul