summaryrefslogtreecommitdiff
path: root/sql/item_cmpfunc.cc
diff options
context:
space:
mode:
authorunknown <ram@gw.mysql.r18.ru>2004-03-16 12:59:06 +0400
committerunknown <ram@gw.mysql.r18.ru>2004-03-16 12:59:06 +0400
commitc976eab11edfc6d9dd1a43aba617df6651d2f05d (patch)
tree6b3622da158f4cfa6f1d3b4d7474ed382f5ff7cf /sql/item_cmpfunc.cc
parentc7fd1fa4968b9649567895af2b5ebf11ca2f5e6c (diff)
parent19998067334a588d968cf75e6041a105000cca7b (diff)
downloadmariadb-git-c976eab11edfc6d9dd1a43aba617df6651d2f05d.tar.gz
Merge rkalimullin@bk-internal.mysql.com:/home/bk/mysql-4.1
into gw.mysql.r18.ru:/usr/home/ram/work/4.1.b2885 sql/item_cmpfunc.cc: Auto merged
Diffstat (limited to 'sql/item_cmpfunc.cc')
-rw-r--r--sql/item_cmpfunc.cc7
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;