summaryrefslogtreecommitdiff
path: root/sql/item_cmpfunc.cc
diff options
context:
space:
mode:
authorunknown <konstantin@mysql.com>2004-09-28 15:29:38 +0400
committerunknown <konstantin@mysql.com>2004-09-28 15:29:38 +0400
commit9131bd2404e8cb1248b0c5d75e69f44111669309 (patch)
tree0aeb5248d9e6a0de80ec3d96ef2d1943c957327f /sql/item_cmpfunc.cc
parent34ac282efd30350906acf500534e00dde60b74b6 (diff)
downloadmariadb-git-9131bd2404e8cb1248b0c5d75e69f44111669309.tar.gz
Give store_for_compare a more meaningful name, cleanup and comment the
call. sql/item_cmpfunc.cc: Rename: Field::store_for_compare -> Field::can_be_compared_as_longlong
Diffstat (limited to 'sql/item_cmpfunc.cc')
-rw-r--r--sql/item_cmpfunc.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/sql/item_cmpfunc.cc b/sql/item_cmpfunc.cc
index 8950ad0c594..bb1ea09d6bc 100644
--- a/sql/item_cmpfunc.cc
+++ b/sql/item_cmpfunc.cc
@@ -243,7 +243,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->can_be_compared_as_longlong())
{
if (convert_constant_item(field,&args[1]))
{
@@ -256,7 +256,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->can_be_compared_as_longlong())
{
if (convert_constant_item(field,&args[0]))
{
@@ -856,7 +856,7 @@ void Item_func_between::fix_length_and_dec()
if (args[0]->type() == FIELD_ITEM)
{
Field *field=((Item_field*) args[0])->field;
- if (field->store_for_compare())
+ if (field->can_be_compared_as_longlong())
{
if (convert_constant_item(field,&args[1]))
cmp_type=INT_RESULT; // Works for all types.