mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
MDEV-17317 Add THD* parameter into Item::get_date() and stricter data type control to "fuzzydate"
This commit is contained in:
@ -29,6 +29,8 @@
|
||||
#ifndef my_decimal_h
|
||||
#define my_decimal_h
|
||||
|
||||
#include "sql_basic_types.h"
|
||||
|
||||
#if defined(MYSQL_SERVER) || defined(EMBEDDED_LIBRARY)
|
||||
#include "sql_string.h" /* String */
|
||||
#endif
|
||||
@ -215,7 +217,7 @@ public:
|
||||
{
|
||||
return check_result(mask, decimal_round(this, to, (int) scale, mode));
|
||||
}
|
||||
bool to_datetime_with_warn(MYSQL_TIME *to, ulonglong fuzzydate,
|
||||
bool to_datetime_with_warn(THD *thd, MYSQL_TIME *to, date_mode_t fuzzydate,
|
||||
const char *field_name);
|
||||
int to_binary(uchar *bin, int prec, int scale,
|
||||
uint mask= E_DEC_FATAL_ERROR) const;
|
||||
|
Reference in New Issue
Block a user