@@ -1403,7 +1403,6 @@ Item *Field_num::convert_zerofill_number_to_string(THD *thd, Item *item) const
14031403
14041404
14051405Item *Field_num::get_equal_zerofill_const_item (THD *thd, const Context &ctx,
1406- Item_field *field_item,
14071406 Item *const_item)
14081407{
14091408 switch (ctx.subst_constraint ()) {
@@ -1414,7 +1413,7 @@ Item *Field_num::get_equal_zerofill_const_item(THD *thd, const Context &ctx,
14141413 }
14151414 DBUG_ASSERT (const_item->const_item ());
14161415 DBUG_ASSERT (ctx.compare_type () != STRING_RESULT);
1417- return field_item ;
1416+ return const_item ;
14181417}
14191418
14201419
@@ -3292,12 +3291,10 @@ Field_new_decimal::unpack(uchar* to, const uchar *from, const uchar *from_end,
32923291
32933292
32943293Item *Field_new_decimal::get_equal_const_item (THD *thd, const Context &ctx,
3295- Item_field *field_item,
32963294 Item *const_item)
32973295{
32983296 if (flags & ZEROFILL_FLAG)
3299- return Field_num::get_equal_zerofill_const_item (thd, ctx,
3300- field_item, const_item);
3297+ return Field_num::get_equal_zerofill_const_item (thd, ctx, const_item);
33013298 switch (ctx.subst_constraint ()) {
33023299 case IDENTITY_SUBST:
33033300 if (const_item->field_type () != MYSQL_TYPE_NEWDECIMAL ||
@@ -4644,12 +4641,10 @@ bool Field_real::get_date(MYSQL_TIME *ltime,ulonglong fuzzydate)
46444641
46454642
46464643Item *Field_real::get_equal_const_item (THD *thd, const Context &ctx,
4647- Item_field *field_item,
46484644 Item *const_item)
46494645{
46504646 if (flags & ZEROFILL_FLAG)
4651- return Field_num::get_equal_zerofill_const_item (thd, ctx,
4652- field_item, const_item);
4647+ return Field_num::get_equal_zerofill_const_item (thd, ctx, const_item);
46534648 switch (ctx.subst_constraint ()) {
46544649 case IDENTITY_SUBST:
46554650 if (const_item->decimal_scale () != Field_real::decimals ())
@@ -5519,9 +5514,9 @@ bool Field_temporal::can_optimize_group_min_max(const Item_bool_func *cond,
55195514}
55205515
55215516
5522- Item *Field_temporal::get_equal_const_item_datetime (THD *thd, const Context &ctx,
5523- Item_field *field_item ,
5524- Item *const_item)
5517+ Item *Field_temporal::get_equal_const_item_datetime (THD *thd,
5518+ const Context &ctx ,
5519+ Item *const_item)
55255520{
55265521 switch (ctx.subst_constraint ()) {
55275522 case IDENTITY_SUBST:
@@ -5843,7 +5838,6 @@ int Field_time::store_decimal(const my_decimal *d)
58435838
58445839
58455840Item *Field_time::get_equal_const_item (THD *thd, const Context &ctx,
5846- Item_field *field_item,
58475841 Item *const_item)
58485842{
58495843 switch (ctx.subst_constraint ()) {
@@ -6311,7 +6305,6 @@ void Field_newdate::sql_type(String &res) const
63116305
63126306
63136307Item *Field_newdate::get_equal_const_item (THD *thd, const Context &ctx,
6314- Item_field *field_item,
63156308 Item *const_item)
63166309{
63176310 switch (ctx.subst_constraint ()) {
0 commit comments