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

Function check_unique_table

sql/sql_update.cc:1434–1444  ·  view source on GitHub ↗

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 */

Source from the content-addressed store, hash-verified

1432 @retval FALSE OK
1433*/
1434bool 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

Callers

nothing calls this directly

Calls 2

unique_tableFunction · 0.85

Tested by

no test coverage detected