Check that we are not using table that we are updating in a sub select @param thd Thread handle @param table_list List of table with first to check @retval TRUE Error @retval FALSE OK */
| 1432 | @retval FALSE OK |
| 1433 | */ |
| 1434 | bool check_unique_table(THD *thd, TABLE_LIST *table_list) |
| 1435 | { |
| 1436 | TABLE_LIST *duplicate; |
| 1437 | DBUG_ENTER("check_unique_table"); |
| 1438 | if ((duplicate= unique_table(thd, table_list, table_list->next_global, 0))) |
| 1439 | { |
| 1440 | update_non_unique_table_error(table_list, "UPDATE", duplicate); |
| 1441 | DBUG_RETURN(TRUE); |
| 1442 | } |
| 1443 | DBUG_RETURN(FALSE); |
| 1444 | } |
| 1445 | |
| 1446 | /*************************************************************************** |
| 1447 | Update multiple tables from join |
nothing calls this directly
no test coverage detected