@@ -1403,7 +1403,6 @@ Item *Field_num::convert_zerofill_number_to_string(THD *thd, Item *item) const
1403
1403
1404
1404
1405
1405
Item *Field_num::get_equal_zerofill_const_item (THD *thd, const Context &ctx,
1406
- Item_field *field_item,
1407
1406
Item *const_item)
1408
1407
{
1409
1408
switch (ctx.subst_constraint ()) {
@@ -1414,7 +1413,7 @@ Item *Field_num::get_equal_zerofill_const_item(THD *thd, const Context &ctx,
1414
1413
}
1415
1414
DBUG_ASSERT (const_item->const_item ());
1416
1415
DBUG_ASSERT (ctx.compare_type () != STRING_RESULT);
1417
- return field_item ;
1416
+ return const_item ;
1418
1417
}
1419
1418
1420
1419
@@ -3292,12 +3291,10 @@ Field_new_decimal::unpack(uchar* to, const uchar *from, const uchar *from_end,
3292
3291
3293
3292
3294
3293
Item *Field_new_decimal::get_equal_const_item (THD *thd, const Context &ctx,
3295
- Item_field *field_item,
3296
3294
Item *const_item)
3297
3295
{
3298
3296
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);
3301
3298
switch (ctx.subst_constraint ()) {
3302
3299
case IDENTITY_SUBST:
3303
3300
if (const_item->field_type () != MYSQL_TYPE_NEWDECIMAL ||
@@ -4644,12 +4641,10 @@ bool Field_real::get_date(MYSQL_TIME *ltime,ulonglong fuzzydate)
4644
4641
4645
4642
4646
4643
Item *Field_real::get_equal_const_item (THD *thd, const Context &ctx,
4647
- Item_field *field_item,
4648
4644
Item *const_item)
4649
4645
{
4650
4646
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);
4653
4648
switch (ctx.subst_constraint ()) {
4654
4649
case IDENTITY_SUBST:
4655
4650
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,
5519
5514
}
5520
5515
5521
5516
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)
5525
5520
{
5526
5521
switch (ctx.subst_constraint ()) {
5527
5522
case IDENTITY_SUBST:
@@ -5843,7 +5838,6 @@ int Field_time::store_decimal(const my_decimal *d)
5843
5838
5844
5839
5845
5840
Item *Field_time::get_equal_const_item (THD *thd, const Context &ctx,
5846
- Item_field *field_item,
5847
5841
Item *const_item)
5848
5842
{
5849
5843
switch (ctx.subst_constraint ()) {
@@ -6311,7 +6305,6 @@ void Field_newdate::sql_type(String &res) const
6311
6305
6312
6306
6313
6307
Item *Field_newdate::get_equal_const_item (THD *thd, const Context &ctx,
6314
- Item_field *field_item,
6315
6308
Item *const_item)
6316
6309
{
6317
6310
switch (ctx.subst_constraint ()) {
0 commit comments