diff --git a/sql/sql_lex.h b/sql/sql_lex.h index 3588f376d2f..4cbf9f802d0 100644 --- a/sql/sql_lex.h +++ b/sql/sql_lex.h @@ -860,7 +860,7 @@ typedef struct st_lex inline bool requires_prelocking() { - return query_tables_own_last; + return test(query_tables_own_last); } inline void mark_as_requiring_prelocking(TABLE_LIST **tables_own_last) {