Bug #47789 | Assertion `!_entered' failed in check_key_in_view when DELETE + recreate table | ||
---|---|---|---|
Submitted: | 2 Oct 2009 11:12 | Modified: | 7 Feb 2013 13:35 |
Reporter: | Philip Stoev | Email Updates: | |
Status: | Duplicate | Impact on me: | |
Category: | MySQL Server: General | Severity: | S3 (Non-critical) |
Version: | 5.1-debug, 6.0-debug | OS: | Any |
Assigned to: | CPU Architecture: | Any |
[2 Oct 2009 11:12]
Philip Stoev
[2 Oct 2009 18:55]
Peter Laursen
-- If the test case is complete like CREATE DATABASE IF NOT EXISTS testdb_A COLLATE = utf8_bin; CREATE TABLE testdb_A . table1_int_autoinc ( `int` INT, pk INTEGER AUTO_INCREMENT, `int_key` INT, PRIMARY KEY (pk), KEY (`int_key` )); CREATE TABLE testdb_A . t1 LIKE testdb_A . table1_int_autoinc; ALTER TABLE testdb_A . t1 CHANGE COLUMN `int_key` my_column INT; CREATE OR REPLACE VIEW testdb_A . t1_view_2_A AS SELECT * FROM testdb_A . t1; DROP TABLE IF EXISTS testdb_A . t1; CREATE TABLE IF NOT EXISTS testdb_A . t1 LIKE testdb_A . table1_int_autoinc; DELETE FROM testdb_A . t1_view_2_A WHERE `pk` > 2 LIMIT 1; -- I do not get a crash with 5.1.39 64 bit server for Windows but just /* Error Code : 1356 View 'testdb_a.t1_view_2_a' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them */
[16 Oct 2009 17:57]
MySQL Verification Team
I am able to crash just the debug version on Windows: c:\dbs>c:\dbs\5.1\bin\mysql -uroot --port=3510 --prompt="mysql 5.1 >" Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 1 Server version: 5.1.41-Win X64-debug Source distribution Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql 5.1 >DELETE FROM testdb_A . t1_view_2_A WHERE `pk` > 2 LIMIT 1; ERROR 2013 (HY000): Lost connection to MySQL server during query mysql 5.1 > The opt version has the below error message: mysql 5.1 >DELETE FROM testdb_A . t1_view_2_A WHERE `pk` > 2 LIMIT 1; ERROR 1356 (HY000): View 'testdb_a.t1_view_2_a' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them mysql 5.1 >exit
[26 Oct 2009 8:27]
Valeriy Kravchuk
Only debug binaries are affected. Verified with recent 5.1.41 from bzr on Mac OS X.
[7 Feb 2013 13:35]
Erlend Dahl
Fixed in 5.1.43 as a duplicate of Bug#48995