-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MDEV-9610 Trigger on normal table can't insert into CONNECT engine ta…
…ble - Access Denied in case of prelocking, don't check table->grant.privilege in handler::external_lock(), do it in handler::start_stmt().
- Loading branch information
Showing
4 changed files
with
27 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
create table tcon (i int) engine=Connect table_type=DOS file_name='tcon.dos'; | ||
create table tin (i int); | ||
create trigger tr after insert on tin for each row insert into tcon values (new.i); | ||
insert into tin values (1); | ||
drop table tin,tcon; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# | ||
# MDEV-9610 Trigger on normal table can't insert into CONNECT engine table - Access Denied | ||
# | ||
create table tcon (i int) engine=Connect table_type=DOS file_name='tcon.dos'; | ||
create table tin (i int); | ||
create trigger tr after insert on tin for each row insert into tcon values (new.i); | ||
insert into tin values (1); | ||
drop table tin,tcon; | ||
|
||
let datadir=`select @@datadir`; | ||
remove_file $datadir/test/tcon.dos; |