Skip to content

Commit 08317b6

Browse files
committed
WL#6391: Post push fix.
Return early after raising error when accessing protected tables.
1 parent 5f4db47 commit 08317b6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

sql/sql_parse.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5987,6 +5987,9 @@ TABLE_LIST *SELECT_LEX::add_table_to_list(THD *thd,
59875987
ER_THD(thd, dictionary->table_type_error_code(ptr->db,
59885988
ptr->table_name)),
59895989
ptr->db, ptr->table_name);
5990+
// Take error handler into account to see if we should return.
5991+
if (thd->is_error())
5992+
DBUG_RETURN(nullptr);
59905993
}
59915994
}
59925995

0 commit comments

Comments
 (0)