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
1144c6ba
Commit
1144c6ba
authored
Jun 06, 2006
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug#18035 Information Schema: Output is not Sorted
added 'order by' to avoid result order difference
parent
93264b7d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
40 additions
and
32 deletions
+40
-32
mysql-test/r/information_schema.result
mysql-test/r/information_schema.result
+20
-16
mysql-test/t/information_schema.test
mysql-test/t/information_schema.test
+20
-16
No files found.
mysql-test/r/information_schema.result
View file @
1144c6ba
...
...
@@ -866,58 +866,62 @@ grant select (f1) on mysqltest.t1 to user1@localhost;
grant select on mysqltest.t2 to user2@localhost;
grant select on mysqltest.* to user3@localhost;
grant select on *.* to user4@localhost;
select * from information_schema.column_privileges;
select * from information_schema.column_privileges
order by grantee
;
GRANTEE TABLE_CATALOG TABLE_SCHEMA TABLE_NAME COLUMN_NAME PRIVILEGE_TYPE IS_GRANTABLE
'user1'@'localhost' NULL mysqltest t1 f1 SELECT NO
select * from information_schema.table_privileges;
select * from information_schema.table_privileges
order by grantee
;
GRANTEE TABLE_CATALOG TABLE_SCHEMA TABLE_NAME PRIVILEGE_TYPE IS_GRANTABLE
select * from information_schema.schema_privileges;
select * from information_schema.schema_privileges
order by grantee
;
GRANTEE TABLE_CATALOG TABLE_SCHEMA PRIVILEGE_TYPE IS_GRANTABLE
select * from information_schema.user_privileges;
select * from information_schema.user_privileges
order by grantee
;
GRANTEE TABLE_CATALOG PRIVILEGE_TYPE IS_GRANTABLE
'user1'@'localhost' NULL USAGE NO
show grants;
Grants for user1@localhost
GRANT USAGE ON *.* TO 'user1'@'localhost'
GRANT SELECT (f1) ON `mysqltest`.`t1` TO 'user1'@'localhost'
select * from information_schema.column_privileges;
select * from information_schema.column_privileges
order by grantee
;
GRANTEE TABLE_CATALOG TABLE_SCHEMA TABLE_NAME COLUMN_NAME PRIVILEGE_TYPE IS_GRANTABLE
select * from information_schema.table_privileges;
select * from information_schema.table_privileges
order by grantee
;
GRANTEE TABLE_CATALOG TABLE_SCHEMA TABLE_NAME PRIVILEGE_TYPE IS_GRANTABLE
'user2'@'localhost' NULL mysqltest t2 SELECT NO
select * from information_schema.schema_privileges;
select * from information_schema.schema_privileges
order by grantee
;
GRANTEE TABLE_CATALOG TABLE_SCHEMA PRIVILEGE_TYPE IS_GRANTABLE
select * from information_schema.user_privileges;
select * from information_schema.user_privileges
order by grantee
;
GRANTEE TABLE_CATALOG PRIVILEGE_TYPE IS_GRANTABLE
'user2'@'localhost' NULL USAGE NO
show grants;
Grants for user2@localhost
GRANT USAGE ON *.* TO 'user2'@'localhost'
GRANT SELECT ON `mysqltest`.`t2` TO 'user2'@'localhost'
select * from information_schema.column_privileges;
select * from information_schema.column_privileges
order by grantee
;
GRANTEE TABLE_CATALOG TABLE_SCHEMA TABLE_NAME COLUMN_NAME PRIVILEGE_TYPE IS_GRANTABLE
select * from information_schema.table_privileges;
select * from information_schema.table_privileges
order by grantee
;
GRANTEE TABLE_CATALOG TABLE_SCHEMA TABLE_NAME PRIVILEGE_TYPE IS_GRANTABLE
select * from information_schema.schema_privileges;
select * from information_schema.schema_privileges
order by grantee
;
GRANTEE TABLE_CATALOG TABLE_SCHEMA PRIVILEGE_TYPE IS_GRANTABLE
'user3'@'localhost' NULL mysqltest SELECT NO
select * from information_schema.user_privileges;
select * from information_schema.user_privileges
order by grantee
;
GRANTEE TABLE_CATALOG PRIVILEGE_TYPE IS_GRANTABLE
'user3'@'localhost' NULL USAGE NO
show grants;
Grants for user3@localhost
GRANT USAGE ON *.* TO 'user3'@'localhost'
GRANT SELECT ON `mysqltest`.* TO 'user3'@'localhost'
select * from information_schema.column_privileges where grantee like '%user%';
select * from information_schema.column_privileges where grantee like '%user%'
order by grantee;
GRANTEE TABLE_CATALOG TABLE_SCHEMA TABLE_NAME COLUMN_NAME PRIVILEGE_TYPE IS_GRANTABLE
'user1'@'localhost' NULL mysqltest t1 f1 SELECT NO
select * from information_schema.table_privileges where grantee like '%user%';
select * from information_schema.table_privileges where grantee like '%user%'
order by grantee;
GRANTEE TABLE_CATALOG TABLE_SCHEMA TABLE_NAME PRIVILEGE_TYPE IS_GRANTABLE
'user2'@'localhost' NULL mysqltest t2 SELECT NO
select * from information_schema.schema_privileges where grantee like '%user%';
select * from information_schema.schema_privileges where grantee like '%user%'
order by grantee;
GRANTEE TABLE_CATALOG TABLE_SCHEMA PRIVILEGE_TYPE IS_GRANTABLE
'user3'@'localhost' NULL mysqltest SELECT NO
select * from information_schema.user_privileges where grantee like '%user%';
select * from information_schema.user_privileges where grantee like '%user%'
order by grantee;
GRANTEE TABLE_CATALOG PRIVILEGE_TYPE IS_GRANTABLE
'user1'@'localhost' NULL USAGE NO
'user2'@'localhost' NULL USAGE NO
...
...
mysql-test/t/information_schema.test
View file @
1144c6ba
...
...
@@ -576,28 +576,32 @@ connect (con2,localhost,user2,,mysqltest);
connect
(
con3
,
localhost
,
user3
,,
mysqltest
);
connect
(
con4
,
localhost
,
user4
,,);
connection
con1
;
select
*
from
information_schema
.
column_privileges
;
select
*
from
information_schema
.
table_privileges
;
select
*
from
information_schema
.
schema_privileges
;
select
*
from
information_schema
.
user_privileges
;
select
*
from
information_schema
.
column_privileges
order
by
grantee
;
select
*
from
information_schema
.
table_privileges
order
by
grantee
;
select
*
from
information_schema
.
schema_privileges
order
by
grantee
;
select
*
from
information_schema
.
user_privileges
order
by
grantee
;
show
grants
;
connection
con2
;
select
*
from
information_schema
.
column_privileges
;
select
*
from
information_schema
.
table_privileges
;
select
*
from
information_schema
.
schema_privileges
;
select
*
from
information_schema
.
user_privileges
;
select
*
from
information_schema
.
column_privileges
order
by
grantee
;
select
*
from
information_schema
.
table_privileges
order
by
grantee
;
select
*
from
information_schema
.
schema_privileges
order
by
grantee
;
select
*
from
information_schema
.
user_privileges
order
by
grantee
;
show
grants
;
connection
con3
;
select
*
from
information_schema
.
column_privileges
;
select
*
from
information_schema
.
table_privileges
;
select
*
from
information_schema
.
schema_privileges
;
select
*
from
information_schema
.
user_privileges
;
select
*
from
information_schema
.
column_privileges
order
by
grantee
;
select
*
from
information_schema
.
table_privileges
order
by
grantee
;
select
*
from
information_schema
.
schema_privileges
order
by
grantee
;
select
*
from
information_schema
.
user_privileges
order
by
grantee
;
show
grants
;
connection
con4
;
select
*
from
information_schema
.
column_privileges
where
grantee
like
'%user%'
;
select
*
from
information_schema
.
table_privileges
where
grantee
like
'%user%'
;
select
*
from
information_schema
.
schema_privileges
where
grantee
like
'%user%'
;
select
*
from
information_schema
.
user_privileges
where
grantee
like
'%user%'
;
select
*
from
information_schema
.
column_privileges
where
grantee
like
'%user%'
order
by
grantee
;
select
*
from
information_schema
.
table_privileges
where
grantee
like
'%user%'
order
by
grantee
;
select
*
from
information_schema
.
schema_privileges
where
grantee
like
'%user%'
order
by
grantee
;
select
*
from
information_schema
.
user_privileges
where
grantee
like
'%user%'
order
by
grantee
;
show
grants
;
connection
default
;
drop
user
user1
@
localhost
,
user2
@
localhost
,
user3
@
localhost
,
user4
@
localhost
;
...
...
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