mirror of
https://github.com/MariaDB/server.git
synced 2025-01-29 10:14:19 +01:00
DATA_MYSQL_TRUE_VARCHAR can be DATA_VARCHAR, DATA_BINARY, or
DATA_VARMYSQL so remove unnecessary condition.
This commit is contained in:
parent
97a281f517
commit
b90feaed02
1 changed files with 2 additions and 2 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Reference in a new issue