MCPcopy Create free account
hub / github.com/MariaDB/server / delete_precheck

Function delete_precheck

sql/sql_parse.cc:9756–9772  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9754*/
9755
9756bool 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/**

Callers 1

precheckMethod · 0.85

Calls 1

check_one_table_accessFunction · 0.70

Tested by

no test coverage detected