mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
inserting single value with check option failed always get error (part of BUG#5995)
This commit is contained in:
@ -319,7 +319,10 @@ int mysql_insert(THD *thd,TABLE_LIST *table_list,
|
||||
break;
|
||||
}
|
||||
}
|
||||
if ((res= table_list->view_check_option(thd, ignore_err)) ==
|
||||
if ((res= table_list->view_check_option(thd,
|
||||
(values_list.elements == 1 ?
|
||||
0 :
|
||||
ignore_err))) ==
|
||||
VIEW_CHECK_SKIP)
|
||||
continue;
|
||||
else if (res == VIEW_CHECK_ERROR)
|
||||
|
Reference in New Issue
Block a user