summaryrefslogtreecommitdiff
path: root/sql/field.cc
diff options
context:
space:
mode:
authorunknown <sergefp@mysql.com>2007-12-13 13:38:22 +0300
committerunknown <sergefp@mysql.com>2007-12-13 13:38:22 +0300
commitc6675cd1876a90468ca2e2cb10471af93728aa6c (patch)
tree8280703de51f1dcb45bd62866b4eca3f9ba5b947 /sql/field.cc
parent6a72267d05ba24953345b9fe516d6bff2f77e8eb (diff)
downloadmariadb-git-c6675cd1876a90468ca2e2cb10471af93728aa6c.tar.gz
BUG#32198: Comparison of DATE with DATETIME still not using indexes correctly
- Make conditions like "date_col $CMP$ 'datetime-const'" range-sargable mysql-test/r/range.result: BUG#32198: Comparison of DATE with DATETIME still not using indexes correctly - Testcase mysql-test/t/range.test: BUG#32198: Comparison of DATE with DATETIME still not using indexes correctly - Testcase sql/field.cc: BUG#32198: Comparison of DATE with DATETIME still not using indexes correctly - Added comments
Diffstat (limited to 'sql/field.cc')
-rw-r--r--sql/field.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/sql/field.cc b/sql/field.cc
index 86853389c64..955694933a0 100644
--- a/sql/field.cc
+++ b/sql/field.cc
@@ -5259,6 +5259,9 @@ void Field_date::sql_type(String &res) const
1 Value was cut during conversion
2 Wrong date string
3 Datetime value that was cut (warning level NOTE)
+ This is used by opt_range.cc:get_mm_leaf(). Note that there is a
+ nearly-identical class Field_date doesn't ever return 3 from its
+ store function.
*/
int Field_newdate::store(const char *from,uint len,CHARSET_INFO *cs)