diff options
author | unknown <Sinisa@sinisa.nasamreza.org> | 2002-08-16 20:31:48 +0300 |
---|---|---|
committer | unknown <Sinisa@sinisa.nasamreza.org> | 2002-08-16 20:31:48 +0300 |
commit | ae57debaba17f6069262dfd1e41fe4c9a54b957b (patch) | |
tree | dbfa657f25eb38a380d67e5711499e075476830f /sql/item_cmpfunc.cc | |
parent | 7eb0ae193bb59e98e9a0b24b037e2cc13c2c80f7 (diff) | |
download | mariadb-git-ae57debaba17f6069262dfd1e41fe4c9a54b957b.tar.gz |
A fix for bigints with quoted constants ..
Same princpile can be applied to other expressions
Diffstat (limited to 'sql/item_cmpfunc.cc')
-rw-r--r-- | sql/item_cmpfunc.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/item_cmpfunc.cc b/sql/item_cmpfunc.cc index 6391e61cb77..8e010e7de8a 100644 --- a/sql/item_cmpfunc.cc +++ b/sql/item_cmpfunc.cc @@ -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])) { |