| 9754 | */ |
| 9755 | |
| 9756 | bool delete_precheck(THD *thd, TABLE_LIST *tables) |
| 9757 | { |
| 9758 | DBUG_ENTER("delete_precheck"); |
| 9759 | if (tables->vers_conditions.delete_history) |
| 9760 | { |
| 9761 | if (check_one_table_access(thd, DELETE_HISTORY_ACL, tables)) |
| 9762 | DBUG_RETURN(TRUE); |
| 9763 | } |
| 9764 | else |
| 9765 | { |
| 9766 | if (check_one_table_access(thd, DELETE_ACL, tables)) |
| 9767 | DBUG_RETURN(TRUE); |
| 9768 | /* Set privilege for the WHERE clause */ |
| 9769 | tables->grant.want_privilege=(SELECT_ACL & ~tables->grant.privilege); |
| 9770 | } |
| 9771 | DBUG_RETURN(FALSE); |
| 9772 | } |
| 9773 | |
| 9774 | |
| 9775 | /** |
no test coverage detected