diff options
author | unknown <ram@gw.mysql.r18.ru> | 2004-03-11 18:21:57 +0400 |
---|---|---|
committer | unknown <ram@gw.mysql.r18.ru> | 2004-03-11 18:21:57 +0400 |
commit | 19998067334a588d968cf75e6041a105000cca7b (patch) | |
tree | 7b51b0bc72f1abe7318456491246125ea2b4cc4b /sql/item_cmpfunc.cc | |
parent | 188535bba0964652678c3ce82b2dae3a1ef8bb25 (diff) | |
download | mariadb-git-19998067334a588d968cf75e6041a105000cca7b.tar.gz |
a fix (bug #2885: like datetime)
Diffstat (limited to 'sql/item_cmpfunc.cc')
-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 f0bc73e9501..1f11d050c1f 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; |