1
0
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:
bell@sanja.is.com.ua
2004-10-21 14:32:10 +03:00
parent 05af0c26c1
commit 73e4ac715d
3 changed files with 31 additions and 1 deletions

View File

@ -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)