Commit f556aa9b authored by Nirbhay Choubey's avatar Nirbhay Choubey

MDEV-7635: SET shouldn't fail for invalid values in strict trans mode

parent 04b52a07
......@@ -464,7 +464,7 @@ bool throw_bounds_warning(THD *thd, const char *name,
else
llstr(v, buf);
if (thd->is_strict_mode())
if (thd->variables.sql_mode & MODE_STRICT_ALL_TABLES)
{
my_error(ER_WRONG_VALUE_FOR_VAR, MYF(0), name, buf);
return true;
......@@ -484,7 +484,7 @@ bool throw_bounds_warning(THD *thd, const char *name, bool fixed, double v)
my_gcvt(v, MY_GCVT_ARG_DOUBLE, sizeof(buf) - 1, buf, NULL);
if (thd->is_strict_mode())
if (thd->variables.sql_mode & MODE_STRICT_ALL_TABLES)
{
my_error(ER_WRONG_VALUE_FOR_VAR, MYF(0), name, buf);
return true;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment