| 9961 | */ |
| 9962 | |
| 9963 | static 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 | /** |
no test coverage detected