summaryrefslogtreecommitdiff
path: root/mysql-test/r/show_explain.result
diff options
context:
space:
mode:
authorSergey Petrunya <psergey@askmonty.org>2012-08-09 20:38:09 +0400
committerSergey Petrunya <psergey@askmonty.org>2012-08-09 20:38:09 +0400
commita9dab6da62e90fa8238a4ff89d7292d7bafa8935 (patch)
tree8c603d7be0a958f330c33fc0c484fabf46e74ca9 /mysql-test/r/show_explain.result
parent0e5193435ae01ae9323448aa32570a50b23c8658 (diff)
downloadmariadb-git-a9dab6da62e90fa8238a4ff89d7292d7bafa8935.tar.gz
MWL#182: Explain running statements: address review feedback
- Add a testcase showing that queries specified in a charset that's different from the charset used for warnings, are converted.
Diffstat (limited to 'mysql-test/r/show_explain.result')
-rw-r--r--mysql-test/r/show_explain.result24
1 files changed, 24 insertions, 0 deletions
diff --git a/mysql-test/r/show_explain.result b/mysql-test/r/show_explain.result
index c751e4f913f..b5eda0b30c8 100644
--- a/mysql-test/r/show_explain.result
+++ b/mysql-test/r/show_explain.result
@@ -1045,5 +1045,29 @@ id select_type table type possible_keys key key_len ref rows Extra
1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
2 SUBQUERY t2 ALL NULL NULL NULL NULL 2 Using filesort
DROP TABLE t1,t2;
+#
+# Check if queries in non-default charsets work.
+#
+set names cp1251;
+select charset('ãû');
+charset('ãû')
+cp1251
+select hex('ãû');
+hex('ãû')
+E3FB
+set @show_explain_probe_select_id=1;
+set debug_dbug='d,show_explain_probe_join_exec_start';
+select * from t0 where length('ãû') = a;
+set names utf8;
+show explain for $thr2;
+id select_type table type possible_keys key key_len ref rows Extra
+1 SIMPLE t0 ALL NULL NULL NULL NULL 10 Using where
+Warnings:
+Note 1003 select * from t0 where length('гы') = a
+set names default;
+a
+2
+set debug_dbug='';
+set names default;
# End
drop table t0;