mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
A fix for bigints with quoted constants ..
Same princpile can be applied to other expressions
This commit is contained in:
@ -69,7 +69,7 @@ void Item_bool_func2::fix_length_and_dec()
|
||||
if (args[0]->type() == FIELD_ITEM)
|
||||
{
|
||||
Field *field=((Item_field*) args[0])->field;
|
||||
if (field->store_for_compare())
|
||||
if (field->store_for_compare() || field->result_type() == INT_RESULT)
|
||||
{
|
||||
if (convert_constant_item(field,&args[1]))
|
||||
{
|
||||
@ -81,7 +81,7 @@ void Item_bool_func2::fix_length_and_dec()
|
||||
if (args[1]->type() == FIELD_ITEM)
|
||||
{
|
||||
Field *field=((Item_field*) args[1])->field;
|
||||
if (field->store_for_compare())
|
||||
if (field->store_for_compare() || field->result_type() == INT_RESULT)
|
||||
{
|
||||
if (convert_constant_item(field,&args[0]))
|
||||
{
|
||||
|
Reference in New Issue
Block a user