summaryrefslogtreecommitdiff
path: root/sql/item_cmpfunc.cc
diff options
context:
space:
mode:
authorlenz@mysql.com <>2002-10-30 21:55:56 +0100
committerlenz@mysql.com <>2002-10-30 21:55:56 +0100
commitbe932e7345571f4fc92dd236c1b4ca36520986f4 (patch)
tree5d2c778bb6794c73a8a8774a9ae2bb36443cb523 /sql/item_cmpfunc.cc
parent3d33dd1e6853ee88b0619af14d744fad98788dda (diff)
downloadmariadb-git-be932e7345571f4fc92dd236c1b4ca36520986f4.tar.gz
- Applied fix made in 4.0 tree to fix a bug when comparing a datetime
column with timestamp values with BETWEEN clause
Diffstat (limited to 'sql/item_cmpfunc.cc')
-rw-r--r--sql/item_cmpfunc.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/item_cmpfunc.cc b/sql/item_cmpfunc.cc
index 36ecde337a7..4650b770299 100644
--- a/sql/item_cmpfunc.cc
+++ b/sql/item_cmpfunc.cc
@@ -354,6 +354,7 @@ void Item_func_between::fix_length_and_dec()
if (args[0]->type() == FIELD_ITEM)
{
Field *field=((Item_field*) args[0])->field;
+ cmp_type=field->cmp_type();
if (field->store_for_compare())
{
if (convert_constant_item(field,&args[1]))