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

Function lock_tables_precheck

sql/sql_parse.cc:9963–9979  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9961*/
9962
9963static bool lock_tables_precheck(THD *thd, TABLE_LIST *tables)
9964{
9965 TABLE_LIST *first_not_own_table= thd->lex->first_not_own_table();
9966
9967 for (TABLE_LIST *table= tables; table != first_not_own_table && table;
9968 table= table->next_global)
9969 {
9970 if (is_temporary_table(table))
9971 continue;
9972
9973 if (check_table_access(thd, PRIV_LOCK_TABLES, table,
9974 FALSE, 1, FALSE))
9975 return TRUE;
9976 }
9977
9978 return FALSE;
9979}
9980
9981
9982/**

Callers 1

sql_parse.ccFile · 0.85

Calls 3

is_temporary_tableFunction · 0.85
first_not_own_tableMethod · 0.80
check_table_accessFunction · 0.70

Tested by

no test coverage detected