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
commit2941024852e7bb761b0a967ebabe05bb436d3674 (patch)
tree5745bf83cb4340a9a6d9cf6535ad31a1af5acda8 /tests
parentd0cf2fa6e73fd9987546dc7fca80e2c661b05876 (diff)
downloadmariadb-git-2941024852e7bb761b0a967ebabe05bb436d3674.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.)
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,