Below is the list of changes that have just been committed into a local
4.1 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.2397 05/08/26 13:23:32 ramil@stripped +3 -0
workaround (bug #9613: Some read-only variables are selectable, others are not).
sql/set_var.cc
1.174 05/08/26 13:23:26 ramil@stripped +10 -0
workaround (bug #9613: Some read-only variables are selectable, others are not).
sys_have_innodb variable added.
mysql-test/t/variables.test
1.50 05/08/26 13:23:26 ramil@stripped +7 -0
workaround (bug #9613: Some read-only variables are selectable, others are not).
mysql-test/r/variables.result
1.62 05/08/26 13:23:26 ramil@stripped +3 -0
workaround (bug #9613: Some read-only variables are selectable, others are not).
# 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: gw.mysql.r18.ru
# Root: /usr/home/ram/work/4.1.b9613
--- 1.61/mysql-test/r/variables.result 2005-07-25 23:25:23 +05:00
+++ 1.62/mysql-test/r/variables.result 2005-08-26 13:23:26 +05:00
@@ -491,3 +491,6 @@
Variable_name Value
table_cache 1
SET GLOBAL table_cache=DEFAULT;
+select @@have_innodb;
+@@have_innodb
+#
--- 1.49/mysql-test/t/variables.test 2005-07-28 05:21:50 +05:00
+++ 1.50/mysql-test/t/variables.test 2005-08-26 13:23:26 +05:00
@@ -381,3 +381,10 @@
SET GLOBAL table_cache=DEFAULT;
# End of 4.1 tests
+
+#
+# Bug #9613: @@have_innodb
+#
+
+--replace_column 1 #
+select @@have_innodb;
--- 1.173/sql/set_var.cc 2005-08-23 03:48:47 +05:00
+++ 1.174/sql/set_var.cc 2005-08-26 13:23:26 +05:00
@@ -118,6 +118,7 @@
void fix_sql_mode_var(THD *thd, enum_var_type type);
static byte *get_error_count(THD *thd);
static byte *get_warning_count(THD *thd);
+static byte *get_have_innodb(THD *thd);
/*
Variable definition list
@@ -484,6 +485,8 @@
/* Read only variables */
sys_var_const_str sys_os("version_compile_os", SYSTEM_TYPE);
+sys_var_readonly sys_have_innodb("have_innodb", OPT_GLOBAL,
+ SHOW_CHAR, get_have_innodb);
/* Global read-only variable describing server license */
sys_var_const_str sys_license("license", STRINGIFY_ARG(LICENSE));
@@ -529,6 +532,7 @@
&sys_ft_boolean_syntax,
&sys_foreign_key_checks,
&sys_group_concat_max_len,
+ &sys_have_innodb,
&sys_identity,
&sys_init_connect,
&sys_init_slave,
@@ -2611,6 +2615,12 @@
thd->sys_var_tmp.long_value=
thd->warn_count[(uint) MYSQL_ERROR::WARN_LEVEL_ERROR];
return (byte*) &thd->sys_var_tmp.long_value;
+}
+
+
+static byte *get_have_innodb(THD *thd)
+{
+ return (byte*) show_comp_option_name[have_innodb];
}
| Thread |
|---|
| • bk commit into 4.1 tree (ramil:1.2397) BUG#9613 | ramil | 26 Aug |