summaryrefslogtreecommitdiff
path: root/sql/item_func.h
diff options
context:
space:
mode:
authorAlexander Barkov <bar@mariadb.org>2017-10-03 13:27:52 +0400
committerAlexander Barkov <bar@mariadb.org>2017-10-03 13:27:52 +0400
commit64bfad6307ba93ad1e18f283d68c1c722cb7a6da (patch)
treebdddf9b658a3dcbaeb52c6d664204449eee39f6f /sql/item_func.h
parentc3a44c27017949aadbd27788562402f6cf7f0aa6 (diff)
downloadmariadb-git-64bfad6307ba93ad1e18f283d68c1c722cb7a6da.tar.gz
Fixing Item_func_hybrid_field_type::date_op(,uint) to date_op(,ulonglong)
Fixing the data type for the "fuzzydate" parameter to Item_func_hybrid_field_type::date_op() from uint to ulonglong, for consistency with Item::get_date().
Diffstat (limited to 'sql/item_func.h')
-rw-r--r--sql/item_func.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/sql/item_func.h b/sql/item_func.h
index 46e8562b268..409a712a5c5 100644
--- a/sql/item_func.h
+++ b/sql/item_func.h
@@ -489,7 +489,7 @@ public:
bool get_date_from_date_op(MYSQL_TIME *ltime, ulonglong fuzzydate)
{
return date_op(ltime,
- (uint)(fuzzydate |
+ (fuzzydate |
(field_type() == MYSQL_TYPE_TIME ? TIME_TIME_ONLY : 0)));
}
@@ -610,7 +610,7 @@ public:
field type is a temporal type.
@return The result of the operation.
*/
- virtual bool date_op(MYSQL_TIME *res, uint fuzzy_date)= 0;
+ virtual bool date_op(MYSQL_TIME *res, ulonglong fuzzy_date)= 0;
};
@@ -669,7 +669,11 @@ public:
Item_func_hybrid_field_type(thd, list)
{ }
String *str_op(String *str) { DBUG_ASSERT(0); return 0; }
- bool date_op(MYSQL_TIME *ltime, uint fuzzydate) { DBUG_ASSERT(0); return true; }
+ bool date_op(MYSQL_TIME *ltime, ulonglong fuzzydate)
+ {
+ DBUG_ASSERT(0);
+ return true;
+ }
};