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
c995288a
Commit
c995288a
authored
Oct 26, 2009
by
Sergey Glukhov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug#35427 INFORMATION_SCHEMA.TABLES.TABLE_CATALOG is NULL, should be "def"
additional fix(Betony)
parent
1582fa0c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
84 deletions
+3
-84
mysql-test/suite/funcs_1/r/is_user_privileges.result
mysql-test/suite/funcs_1/r/is_user_privileges.result
+1
-82
mysql-test/suite/funcs_1/t/is_user_privileges.test
mysql-test/suite/funcs_1/t/is_user_privileges.test
+2
-2
No files found.
mysql-test/suite/funcs_1/r/is_user_privileges.result
View file @
c995288a
...
...
@@ -48,89 +48,8 @@ PRIVILEGE_TYPE varchar(64) NO
IS_GRANTABLE varchar(3) NO
SELECT grantee, table_catalog, privilege_type
FROM information_schema.user_privileges
WHERE table_catalog IS N
OT NULL
;
WHERE table_catalog IS N
ULL OR table_catalog <> 'def'
;
grantee table_catalog privilege_type
'root'@'localhost' def SELECT
'root'@'localhost' def INSERT
'root'@'localhost' def UPDATE
'root'@'localhost' def DELETE
'root'@'localhost' def CREATE
'root'@'localhost' def DROP
'root'@'localhost' def RELOAD
'root'@'localhost' def SHUTDOWN
'root'@'localhost' def PROCESS
'root'@'localhost' def FILE
'root'@'localhost' def REFERENCES
'root'@'localhost' def INDEX
'root'@'localhost' def ALTER
'root'@'localhost' def SHOW DATABASES
'root'@'localhost' def SUPER
'root'@'localhost' def CREATE TEMPORARY TABLES
'root'@'localhost' def LOCK TABLES
'root'@'localhost' def EXECUTE
'root'@'localhost' def REPLICATION SLAVE
'root'@'localhost' def REPLICATION CLIENT
'root'@'localhost' def CREATE VIEW
'root'@'localhost' def SHOW VIEW
'root'@'localhost' def CREATE ROUTINE
'root'@'localhost' def ALTER ROUTINE
'root'@'localhost' def CREATE USER
'root'@'localhost' def EVENT
'root'@'localhost' def TRIGGER
'root'@'gluh' def SELECT
'root'@'gluh' def INSERT
'root'@'gluh' def UPDATE
'root'@'gluh' def DELETE
'root'@'gluh' def CREATE
'root'@'gluh' def DROP
'root'@'gluh' def RELOAD
'root'@'gluh' def SHUTDOWN
'root'@'gluh' def PROCESS
'root'@'gluh' def FILE
'root'@'gluh' def REFERENCES
'root'@'gluh' def INDEX
'root'@'gluh' def ALTER
'root'@'gluh' def SHOW DATABASES
'root'@'gluh' def SUPER
'root'@'gluh' def CREATE TEMPORARY TABLES
'root'@'gluh' def LOCK TABLES
'root'@'gluh' def EXECUTE
'root'@'gluh' def REPLICATION SLAVE
'root'@'gluh' def REPLICATION CLIENT
'root'@'gluh' def CREATE VIEW
'root'@'gluh' def SHOW VIEW
'root'@'gluh' def CREATE ROUTINE
'root'@'gluh' def ALTER ROUTINE
'root'@'gluh' def CREATE USER
'root'@'gluh' def EVENT
'root'@'gluh' def TRIGGER
'root'@'127.0.0.1' def SELECT
'root'@'127.0.0.1' def INSERT
'root'@'127.0.0.1' def UPDATE
'root'@'127.0.0.1' def DELETE
'root'@'127.0.0.1' def CREATE
'root'@'127.0.0.1' def DROP
'root'@'127.0.0.1' def RELOAD
'root'@'127.0.0.1' def SHUTDOWN
'root'@'127.0.0.1' def PROCESS
'root'@'127.0.0.1' def FILE
'root'@'127.0.0.1' def REFERENCES
'root'@'127.0.0.1' def INDEX
'root'@'127.0.0.1' def ALTER
'root'@'127.0.0.1' def SHOW DATABASES
'root'@'127.0.0.1' def SUPER
'root'@'127.0.0.1' def CREATE TEMPORARY TABLES
'root'@'127.0.0.1' def LOCK TABLES
'root'@'127.0.0.1' def EXECUTE
'root'@'127.0.0.1' def REPLICATION SLAVE
'root'@'127.0.0.1' def REPLICATION CLIENT
'root'@'127.0.0.1' def CREATE VIEW
'root'@'127.0.0.1' def SHOW VIEW
'root'@'127.0.0.1' def CREATE ROUTINE
'root'@'127.0.0.1' def ALTER ROUTINE
'root'@'127.0.0.1' def CREATE USER
'root'@'127.0.0.1' def EVENT
'root'@'127.0.0.1' def TRIGGER
##########################################################################
# Testcases 3.2.16.2+3.2.16.3+3.2.16.4: INFORMATION_SCHEMA.USER_PRIVILEGES
# accessible information
...
...
mysql-test/suite/funcs_1/t/is_user_privileges.test
View file @
c995288a
...
...
@@ -58,10 +58,10 @@ eval SHOW COLUMNS FROM information_schema.$is_table;
# Note: Retrieval of information within information_schema.columns about
# information_schema.user_privileges is in is_columns_is.test.
# Show that TABLE_CATALOG is always
NULL
.
# Show that TABLE_CATALOG is always
'def'
.
SELECT
grantee
,
table_catalog
,
privilege_type
FROM
information_schema
.
user_privileges
WHERE
table_catalog
IS
N
OT
NULL
;
WHERE
table_catalog
IS
N
ULL
OR
table_catalog
<>
'def'
;
--
echo
##########################################################################
...
...
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