From 360b64379daf7d485d43089d4e42dc891b09e1b1 Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 30 Oct 2002 21:55:56 +0100 Subject: - Applied fix made in 4.0 tree to fix a bug when comparing a datetime column with timestamp values with BETWEEN clause --- sql/item_cmpfunc.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'sql/item_cmpfunc.cc') 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])) -- cgit v1.2.1