Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
73a2ae9f
Commit
73a2ae9f
authored
Sep 19, 2020
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-23764 Slave crashes in ha_storage_engine_is_enabled upon rename of view
view_pseudo_hton cannot be dereferenced
parent
3cd4d8dd
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
3 deletions
+6
-3
mysql-test/suite/rpl/r/rpl_create_drop_view.result
mysql-test/suite/rpl/r/rpl_create_drop_view.result
+2
-1
mysql-test/suite/rpl/t/rpl_create_drop_view.test
mysql-test/suite/rpl/t/rpl_create_drop_view.test
+2
-1
sql/sql_rename.cc
sql/sql_rename.cc
+2
-1
No files found.
mysql-test/suite/rpl/r/rpl_create_drop_view.result
View file @
73a2ae9f
...
@@ -93,7 +93,8 @@ id
...
@@ -93,7 +93,8 @@ id
80
80
40
40
connection master;
connection master;
DROP VIEW v1;
RENAME TABLE v1 TO v2;
DROP VIEW v2;
DROP TABLE t1;
DROP TABLE t1;
DROP VIEW v1;
DROP VIEW v1;
ERROR 42S02: Unknown VIEW: 'test.v1'
ERROR 42S02: Unknown VIEW: 'test.v1'
...
...
mysql-test/suite/rpl/t/rpl_create_drop_view.test
View file @
73a2ae9f
...
@@ -38,7 +38,8 @@ SELECT * FROM t1;
...
@@ -38,7 +38,8 @@ SELECT * FROM t1;
SELECT
*
FROM
v1
;
SELECT
*
FROM
v1
;
connection
master
;
connection
master
;
DROP
VIEW
v1
;
RENAME
TABLE
v1
TO
v2
;
DROP
VIEW
v2
;
DROP
TABLE
t1
;
DROP
TABLE
t1
;
--
error
ER_UNKNOWN_VIEW
--
error
ER_UNKNOWN_VIEW
...
...
sql/sql_rename.cc
View file @
73a2ae9f
...
@@ -303,7 +303,8 @@ do_rename(THD *thd, TABLE_LIST *ren_table, const LEX_CSTRING *new_db,
...
@@ -303,7 +303,8 @@ do_rename(THD *thd, TABLE_LIST *ren_table, const LEX_CSTRING *new_db,
DBUG_RETURN
(
skip_error
||
if_exists
?
0
:
1
);
DBUG_RETURN
(
skip_error
||
if_exists
?
0
:
1
);
}
}
if
(
ha_check_if_updates_are_ignored
(
thd
,
hton
,
"RENAME"
))
if
(
hton
!=
view_pseudo_hton
&&
ha_check_if_updates_are_ignored
(
thd
,
hton
,
"RENAME"
))
{
{
/*
/*
Shared table. Just drop the old .frm as it's not correct anymore
Shared table. Just drop the old .frm as it's not correct anymore
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment