From b90feaed022a4c8b0652ab890861f06d388068d1 Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 16 Mar 2005 11:26:35 +0200 Subject: [PATCH] DATA_MYSQL_TRUE_VARCHAR can be DATA_VARCHAR, DATA_BINARY, or DATA_VARMYSQL so remove unnecessary condition. --- innobase/row/row0sel.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/innobase/row/row0sel.c b/innobase/row/row0sel.c index 48bca5d7b6f..ce8789aa3fc 100644 --- a/innobase/row/row0sel.c +++ b/innobase/row/row0sel.c @@ -2100,9 +2100,9 @@ row_sel_convert_mysql_key_to_innobase( /* Calculate data length and data field total length */ - if (type == DATA_BLOB || ( type == DATA_VARCHAR && + if (type == DATA_BLOB || dtype_get_mysql_type(dfield_get_type(dfield)) - == DATA_MYSQL_TRUE_VARCHAR)) { + == DATA_MYSQL_TRUE_VARCHAR) { /* The key field is a column prefix of a BLOB, TEXT, OR TRUE VARCHAR type column */