List:Internals« Previous MessageNext Message »
From:bar Date:September 2 2005 6:19am
Subject:bk commit into 4.1 tree (bar:1.2416)
View as plain text  
Below is the list of changes that have just been committed into a local
4.1 repository of bar. When bar 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.2416 05/09/02 11:19:43 bar@stripped +3 -0
  Merge abarkov@stripped:/home/bk/mysql-4.1
  into  mysql.com:/usr/home/bar/mysql-4.1.b12363

  mysql-test/r/variables.result
    1.63 05/09/02 11:19:38 bar@stripped +0 -0
    SCCS merged

  sql/set_var.cc
    1.176 05/09/02 11:15:59 bar@stripped +0 -0
    Auto merged

  mysql-test/t/variables.test
    1.51 05/09/02 11:15:59 bar@stripped +0 -0
    Auto merged

# 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:	bar
# Host:	bar.intranet.mysql.r18.ru
# Root:	/usr/home/bar/mysql-4.1.b12363/RESYNC

--- 1.62/mysql-test/r/variables.result	2005-08-26 13:23:26 +05:00
+++ 1.63/mysql-test/r/variables.result	2005-09-02 11:19:38 +05:00
@@ -491,6 +491,11 @@
 Variable_name	Value
 table_cache	1
 SET GLOBAL table_cache=DEFAULT;
+set character_set_results=NULL;
+select ifnull(@@character_set_results,"really null");
+ifnull(@@character_set_results,"really null")
+really null
+set names latin1;
 select @@have_innodb;
 @@have_innodb
 #

--- 1.50/mysql-test/t/variables.test	2005-08-26 13:23:26 +05:00
+++ 1.51/mysql-test/t/variables.test	2005-09-02 11:15:59 +05:00
@@ -380,6 +380,14 @@
 SHOW VARIABLES LIKE 'table_cache';
 SET GLOBAL table_cache=DEFAULT;
 
+#
+# Bugs12363: character_set_results is nullable,
+# but value_ptr returns string "NULL"
+#
+set character_set_results=NULL;
+select ifnull(@@character_set_results,"really null");
+set names latin1;
+
 # End of 4.1 tests
 
 #

--- 1.175/sql/set_var.cc	2005-08-30 12:33:52 +05:00
+++ 1.176/sql/set_var.cc	2005-09-02 11:15:59 +05:00
@@ -1602,11 +1602,17 @@
     return new Item_int((int32) *(my_bool*) value_ptr(thd, var_type, base),1);
   case SHOW_CHAR:
   {
-    Item_string *tmp;
+    Item *tmp;
     pthread_mutex_lock(&LOCK_global_system_variables);
     char *str= (char*) value_ptr(thd, var_type, base);
-    tmp= new Item_string(str, strlen(str),
-                         system_charset_info, DERIVATION_SYSCONST);
+    if (str)
+      tmp= new Item_string(str, strlen(str),
+                           system_charset_info, DERIVATION_SYSCONST);
+    else
+    {
+      tmp= new Item_null();
+      tmp->collation.set(system_charset_info, DERIVATION_SYSCONST);
+    }
     pthread_mutex_unlock(&LOCK_global_system_variables);
     return tmp;
   }
@@ -1896,7 +1902,7 @@
 				       LEX_STRING *base)
 {
   CHARSET_INFO *cs= ci_ptr(thd,type)[0];
-  return cs ? (byte*) cs->csname : (byte*) "NULL";
+  return cs ? (byte*) cs->csname : (byte*) NULL;
 }
 
 
Thread
bk commit into 4.1 tree (bar:1.2416)bar2 Sep