Skip to content
/ server Public

Commit 6a6cc8a

Browse files
committed
Remove not used table_flag HA_NO_VARCHAR
1 parent cfd81de commit 6a6cc8a

File tree

2 files changed

+0
-15
lines changed

2 files changed

+0
-15
lines changed

sql/handler.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,6 @@ enum enum_alter_inplace_result {
151151
#define HA_HAS_OLD_CHECKSUM (1ULL << 24)
152152
/* Table data are stored in separate files (for lower_case_table_names) */
153153
#define HA_FILE_BASED (1ULL << 26)
154-
#define HA_NO_VARCHAR (1ULL << 27) /* unused */
155154
#define HA_CAN_BIT_FIELD (1ULL << 28) /* supports bit fields */
156155
#define HA_NEED_READ_RANGE_BUFFER (1ULL << 29) /* for read_multi_range */
157156
#define HA_ANY_INDEX_MAY_BE_UNIQUE (1ULL << 30)

sql/sql_table.cc

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2935,20 +2935,6 @@ uint Column_definition::pack_flag_numeric(uint dec) const
29352935

29362936
bool Column_definition::prepare_stage2_varchar(ulonglong table_flags)
29372937
{
2938-
#ifndef QQ_ALL_HANDLERS_SUPPORT_VARCHAR
2939-
if (table_flags & HA_NO_VARCHAR)
2940-
{
2941-
/* convert VARCHAR to CHAR because handler is not yet up to date */
2942-
set_handler(&type_handler_var_string);
2943-
pack_length= type_handler()->calc_pack_length((uint) length);
2944-
if ((length / charset->mbmaxlen) > MAX_FIELD_CHARLENGTH)
2945-
{
2946-
my_error(ER_TOO_BIG_FIELDLENGTH, MYF(0), field_name.str,
2947-
static_cast<ulong>(MAX_FIELD_CHARLENGTH));
2948-
return true;
2949-
}
2950-
}
2951-
#endif
29522938
pack_flag= (charset->state & MY_CS_BINSORT) ? FIELDFLAG_BINARY : 0;
29532939
return false;
29542940
}

0 commit comments

Comments
 (0)