mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
fixed case when frivileges check switched off (BUG#4631)
mysql-test/r/view.result: test made more environment independed mysql-test/t/view.test: test made more environment independed sql/sql_acl.cc: fixed case when frivileges check switched off
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
drop table if exists t1,t2;
|
||||
drop view if exists v1,v2,v3,v4,v5,v6;
|
||||
drop table if exists t1,t2,v1,v2,v3,v4,v5,v6;
|
||||
drop view if exists t1,t2,v1,v2,v3,v4,v5,v6;
|
||||
drop database if exists mysqltest;
|
||||
use test;
|
||||
create view v1 (c,d) as select a,b from t1;
|
||||
|
6
mysql-test/r/view_skip_grants.result
Normal file
6
mysql-test/r/view_skip_grants.result
Normal file
@ -0,0 +1,6 @@
|
||||
drop table if exists t1,v1;
|
||||
drop view if exists t1,v1;
|
||||
use test;
|
||||
create table t1 (field1 INT);
|
||||
CREATE VIEW v1 AS SELECT field1 FROM t1;
|
||||
drop view v1;
|
@ -1,6 +1,6 @@
|
||||
--disable_warnings
|
||||
drop table if exists t1,t2;
|
||||
drop view if exists v1,v2,v3,v4,v5,v6;
|
||||
drop table if exists t1,t2,v1,v2,v3,v4,v5,v6;
|
||||
drop view if exists t1,t2,v1,v2,v3,v4,v5,v6;
|
||||
drop database if exists mysqltest;
|
||||
--enable_warnings
|
||||
use test;
|
||||
|
1
mysql-test/t/view_skip_grants-master.opt
Normal file
1
mysql-test/t/view_skip_grants-master.opt
Normal file
@ -0,0 +1 @@
|
||||
--skip-grant-tables
|
14
mysql-test/t/view_skip_grants.test
Normal file
14
mysql-test/t/view_skip_grants.test
Normal file
@ -0,0 +1,14 @@
|
||||
--disable_warnings
|
||||
drop table if exists t1,v1;
|
||||
drop view if exists t1,v1;
|
||||
--enable_warnings
|
||||
use test;
|
||||
|
||||
#
|
||||
# test that we can create VIEW if privileges check switched off
|
||||
#
|
||||
create table t1 (field1 INT);
|
||||
CREATE VIEW v1 AS SELECT field1 FROM t1;
|
||||
|
||||
drop view v1;
|
||||
drop table t1
|
Reference in New Issue
Block a user