mirror of
https://github.com/MariaDB/server.git
synced 2026-05-17 20:37:12 +02:00
MDEV-17317 Add THD* parameter into Item::get_date() and stricter data type control to "fuzzydate"
This commit is contained in:
parent
492998c0d8
commit
ad8e02ac45
45 changed files with 1039 additions and 883 deletions
|
|
@ -258,7 +258,7 @@ namespace mrn {
|
|||
Item *real_value_item = value_item->real_item();
|
||||
switch (field_item->field->type()) {
|
||||
case MYSQL_TYPE_TIME:
|
||||
error = real_value_item->get_time(mysql_time);
|
||||
error = real_value_item->get_time(current_thd, mysql_time);
|
||||
break;
|
||||
case MYSQL_TYPE_YEAR:
|
||||
mysql_time->year = static_cast<int>(value_item->val_int());
|
||||
|
|
@ -273,7 +273,7 @@ namespace mrn {
|
|||
error = false;
|
||||
break;
|
||||
default:
|
||||
error = real_value_item->get_date(mysql_time, TIME_FUZZY_DATE);
|
||||
error = real_value_item->get_date(current_thd, mysql_time, TIME_FUZZY_DATES);
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue