1
0
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:
unknown
2002-08-16 20:31:48 +03:00
parent 7eb0ae193b
commit ae57debaba
4 changed files with 27 additions and 2 deletions

View File

@ -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]))
{