summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortsmith@maint1.mysql.com <>2006-09-07 00:11:43 +0200
committertsmith@maint1.mysql.com <>2006-09-07 00:11:43 +0200
commitb6cd727ed1f722ae37f9302196f6f20121bbbb4d (patch)
tree1a5961fcf20771718331caeaeb16054878a411e9
parentf4265f7a5741517799b17b493cebffb6bbb86571 (diff)
downloadmariadb-git-b6cd727ed1f722ae37f9302196f6f20121bbbb4d.tar.gz
Bug #21054: myisam_stats_method ignored in my.cnf and cmdline
Fix OPT_MYISAM_STATS_METHOD case, where the NULLS_EQUAL and NULLS_NOT_EQUAL methods were mixed up
-rw-r--r--sql/mysqld.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/mysqld.cc b/sql/mysqld.cc
index fc3ca5085cf..71a0e35925e 100644
--- a/sql/mysqld.cc
+++ b/sql/mysqld.cc
@@ -6537,10 +6537,10 @@ get_one_option(int optid, const struct my_option *opt __attribute__((unused)),
}
switch (method-1) {
case 0:
- method_conv= MI_STATS_METHOD_NULLS_EQUAL;
+ method_conv= MI_STATS_METHOD_NULLS_NOT_EQUAL;
break;
case 1:
- method_conv= MI_STATS_METHOD_NULLS_NOT_EQUAL;
+ method_conv= MI_STATS_METHOD_NULLS_EQUAL;
break;
case 2:
method_conv= MI_STATS_METHOD_IGNORE_NULLS;