summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorChad MILLER <chad@mysql.com>2008-08-15 16:13:27 -0400
committerChad MILLER <chad@mysql.com>2008-08-15 16:13:27 -0400
commit21598ea0e6c9495aba817b0101488549e4e78bd3 (patch)
tree5745bf83cb4340a9a6d9cf6535ad31a1af5acda8 /tests
parent65c3870cfcad08f410a56e4b198b4a5078d04c20 (diff)
downloadmariadb-git-21598ea0e6c9495aba817b0101488549e4e78bd3.tar.gz
Bug#37301 Length and Max_length differ with no obvious reason(2nd version)
Length value is the length of the field, Max_length is the length of the field value. So Max_length can not be more than Length. The fix: fixed calculation of the Item_empty_string item length (Patch applied and queued on demand of Trudy/Davi.) sql/item.h: fixed calculation of the item length sql/sql_show.cc: removed unnecessary code
Diffstat (limited to 'tests')
-rw-r--r--tests/mysql_client_test.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/mysql_client_test.c b/tests/mysql_client_test.c
index ac5473a1ccd..532f61f252c 100644
--- a/tests/mysql_client_test.c
+++ b/tests/mysql_client_test.c
@@ -7578,9 +7578,7 @@ static void test_explain_bug()
else
{
verify_prepare_field(result, 6, "key_len", "", MYSQL_TYPE_VAR_STRING, "",
- "", "",
- NAME_LEN*MAX_KEY / my_charset_utf8_general_ci.mbmaxlen,
- 0);
+ "", "", NAME_LEN*MAX_KEY, 0);
}
verify_prepare_field(result, 7, "ref", "", MYSQL_TYPE_VAR_STRING,