diff options
author | Vicențiu Ciorbaru <cvicentiu@gmail.com> | 2022-09-06 16:14:41 +0300 |
---|---|---|
committer | Vicențiu Ciorbaru <cvicentiu@gmail.com> | 2022-09-20 16:14:44 +0300 |
commit | 0fb53d3b35139d17b74be68dd2322b2b7d3926d4 (patch) | |
tree | ef4edf06f3e4b5e86bae4e0bfb20e5f435d70bd5 | |
parent | 2798b7db2409019b0bc2f59706904d02c6296916 (diff) | |
download | mariadb-git-0fb53d3b35139d17b74be68dd2322b2b7d3926d4.tar.gz |
Update test results (stabilize order and updated version)
-rw-r--r-- | mysql-test/suite/deny/global.result | 6 | ||||
-rw-r--r-- | mysql-test/suite/deny/global.test | 8 |
2 files changed, 11 insertions, 3 deletions
diff --git a/mysql-test/suite/deny/global.result b/mysql-test/suite/deny/global.result index 8dba07a914c..56667422182 100644 --- a/mysql-test/suite/deny/global.result +++ b/mysql-test/suite/deny/global.result @@ -156,7 +156,7 @@ connection default; # select user, host, JSON_EXTRACT(priv, '$.deny') from mysql.global_priv where user = 'foo'; user host JSON_EXTRACT(priv, '$.deny') -foo % {"global": 1, "version_id": 101000} +foo % {"global": 1, "version_id": 101100} show grants for foo; Grants for foo@% GRANT SELECT ON *.* TO `foo`@`%` @@ -260,9 +260,9 @@ grant select(a) on some_db.t1 to foo; connect con1,localhost,foo,,; select table_name, table_type from information_schema.tables where table_schema like 'some_db'; table_name table_type -v2 VIEW -v1 VIEW t1 BASE TABLE +v1 VIEW +v2 VIEW disconnect con1; connection default; show grants for foo; diff --git a/mysql-test/suite/deny/global.test b/mysql-test/suite/deny/global.test index 680cbda8a0c..4e052fe7016 100644 --- a/mysql-test/suite/deny/global.test +++ b/mysql-test/suite/deny/global.test @@ -269,6 +269,7 @@ create view v1 as (select a from t1); create view v2 as (select secret from t1); --connect (con1,localhost,foo,,) +--sorted_result select table_name, table_type from information_schema.tables where table_schema like 'some_db'; disconnect con1; @@ -283,6 +284,7 @@ grant select(a) on some_db.t1 to foo; --echo # See what foo sees before denies. --echo # --connect (con1,localhost,foo,,) +--sorted_result select table_name, table_type from information_schema.tables where table_schema like 'some_db'; disconnect con1; connection default; @@ -304,7 +306,9 @@ select * from some_db.v1; --error ER_TABLEACCESS_DENIED_ERROR select * from some_db.v2; +--sorted_result select table_name, table_type from information_schema.tables where table_schema like "some_db"; +--sorted_result select table_name, column_name from information_schema.columns where table_schema like "some_db"; disconnect con1; @@ -313,9 +317,11 @@ grant insert(a) on some_db.t1 to bar; grant insert(a) on some_db.t1 to foo; --connect (con1,localhost,foo,,) +--sorted_result select table_name, column_name from information_schema.columns where table_schema like "some_db"; disconnect con1; --connect (con2,localhost,bar,,) +--sorted_result select table_name, column_name from information_schema.columns where table_schema like "some_db"; disconnect con2; @@ -324,10 +330,12 @@ deny insert on *.* to foo; deny insert on *.* to bar; --connect (con1,localhost,foo,,) +--sorted_result select table_name, column_name from information_schema.columns where table_schema like "some_db"; disconnect con1; --connect (con2,localhost,bar,,) +--sorted_result select table_name, column_name from information_schema.columns where table_schema like "some_db"; disconnect con2; |