diff options
author | bell@sanja.is.com.ua <> | 2004-03-16 15:14:11 +0200 |
---|---|---|
committer | bell@sanja.is.com.ua <> | 2004-03-16 15:14:11 +0200 |
commit | 7106dcfd0641de68913e4fec38eadde960f088e6 (patch) | |
tree | 2b438df494ce338f69ea943808d742f214b00370 /sql | |
parent | 73e5e0672c72fd87d79a759becd91f94ae803ac1 (diff) | |
parent | bfc1e46c10c76ebd3beefe24fbdc1323e1d3a6df (diff) | |
download | mariadb-git-7106dcfd0641de68913e4fec38eadde960f088e6.tar.gz |
Merge sanja.is.com.ua:/home/bell/mysql/bk/mysql-4.1
into sanja.is.com.ua:/home/bell/mysql/bk/work-lower_case-4.1
Diffstat (limited to 'sql')
-rw-r--r-- | sql/item_cmpfunc.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sql/item_cmpfunc.cc b/sql/item_cmpfunc.cc index b56ad6febd4..ac1af32388f 100644 --- a/sql/item_cmpfunc.cc +++ b/sql/item_cmpfunc.cc @@ -225,6 +225,13 @@ void Item_bool_func2::fix_length_and_dec() } // Make a special case of compare with fields to get nicer DATE comparisons + + if (functype() == LIKE_FUNC) // Disable conversion in case of LIKE function. + { + set_cmp_func(); + return; + } + if (args[0]->type() == FIELD_ITEM) { Field *field=((Item_field*) args[0])->field; |