4568
4568
/* For comparison purposes allow invalid dates like 2000-01-32 */
4569
4569
orig_sql_mode= field->table->in_use->variables.sql_mode;
4570
4570
if (value->real_item()->type() == Item::STRING_ITEM &&
4572
4572
field->type() == MYSQL_TYPE_DATETIME))
4573
4573
field->table->in_use->variables.sql_mode|= MODE_INVALID_DATES;
4574
4574
err= value->save_in_field_no_warnings(field, 1);