diff options
| author | Sergei Golubchik <serg@mariadb.org> | 2018-03-12 20:13:36 +0100 |
|---|---|---|
| committer | Sergei Golubchik <serg@mariadb.org> | 2018-03-14 12:40:00 +0100 |
| commit | 622115ee07f8e7878389d22b2d624c13a2eda7da (patch) | |
| tree | 3fafdd8e0df9f1ae1a4043088616b9ebe5ece93a /sql/item_row.h | |
| parent | 24d6cd7d62c10a6a17be9f4fac1a112f16f8b6e8 (diff) | |
| download | mariadb-git-622115ee07f8e7878389d22b2d624c13a2eda7da.tar.gz | |
cleanup: extend Item_cache::get_cache() to accept f_type
Do not assume that it's always item->field_type() - this is not the case
in temporal comparisons (e.g. when comparing DATETIME column with a TIME
literal).
Diffstat (limited to 'sql/item_row.h')
| -rw-r--r-- | sql/item_row.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sql/item_row.h b/sql/item_row.h index f85a5e35c18..bc82b31f9e2 100644 --- a/sql/item_row.h +++ b/sql/item_row.h @@ -90,8 +90,7 @@ public: Item_result cmp_type() const { return ROW_RESULT; } enum_field_types field_type() const { - DBUG_ASSERT(0); - return MYSQL_TYPE_DOUBLE; + return MYSQL_TYPE_NULL; } void update_used_tables() { |
