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
ed685138
Commit
ed685138
authored
Mar 16, 2007
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge sgluhov@bk-internal.mysql.com:/home/bk/mysql-5.0-opt
into mysql.com:/home/gluh/MySQL/Merge/5.0-opt
parents
0d851a4f
723bac48
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
0 deletions
+24
-0
mysql-test/r/skip_grants.result
mysql-test/r/skip_grants.result
+12
-0
mysql-test/t/skip_grants.test
mysql-test/t/skip_grants.test
+8
-0
sql/sql_acl.cc
sql/sql_acl.cc
+4
-0
No files found.
mysql-test/r/skip_grants.result
View file @
ed685138
...
@@ -58,3 +58,15 @@ DROP PROCEDURE p3;
...
@@ -58,3 +58,15 @@ DROP PROCEDURE p3;
DROP FUNCTION f1;
DROP FUNCTION f1;
DROP FUNCTION f2;
DROP FUNCTION f2;
DROP FUNCTION f3;
DROP FUNCTION f3;
select count(*) from information_schema.COLUMN_PRIVILEGES;
count(*)
0
select count(*) from information_schema.SCHEMA_PRIVILEGES;
count(*)
0
select count(*) from information_schema.TABLE_PRIVILEGES;
count(*)
0
select count(*) from information_schema.USER_PRIVILEGES;
count(*)
0
mysql-test/t/skip_grants.test
View file @
ed685138
...
@@ -108,3 +108,11 @@ DROP PROCEDURE p3;
...
@@ -108,3 +108,11 @@ DROP PROCEDURE p3;
DROP
FUNCTION
f1
;
DROP
FUNCTION
f1
;
DROP
FUNCTION
f2
;
DROP
FUNCTION
f2
;
DROP
FUNCTION
f3
;
DROP
FUNCTION
f3
;
#
# Bug#26285 Selecting information_schema crahes server
#
select
count
(
*
)
from
information_schema
.
COLUMN_PRIVILEGES
;
select
count
(
*
)
from
information_schema
.
SCHEMA_PRIVILEGES
;
select
count
(
*
)
from
information_schema
.
TABLE_PRIVILEGES
;
select
count
(
*
)
from
information_schema
.
USER_PRIVILEGES
;
sql/sql_acl.cc
View file @
ed685138
...
@@ -5882,6 +5882,8 @@ int fill_schema_user_privileges(THD *thd, TABLE_LIST *tables, COND *cond)
...
@@ -5882,6 +5882,8 @@ int fill_schema_user_privileges(THD *thd, TABLE_LIST *tables, COND *cond)
char
*
curr_host
=
thd
->
security_ctx
->
priv_host_name
();
char
*
curr_host
=
thd
->
security_ctx
->
priv_host_name
();
DBUG_ENTER
(
"fill_schema_user_privileges"
);
DBUG_ENTER
(
"fill_schema_user_privileges"
);
if
(
!
initialized
)
DBUG_RETURN
(
0
);
pthread_mutex_lock
(
&
acl_cache
->
lock
);
pthread_mutex_lock
(
&
acl_cache
->
lock
);
for
(
counter
=
0
;
counter
<
acl_users
.
elements
;
counter
++
)
for
(
counter
=
0
;
counter
<
acl_users
.
elements
;
counter
++
)
...
@@ -5941,6 +5943,8 @@ int fill_schema_schema_privileges(THD *thd, TABLE_LIST *tables, COND *cond)
...
@@ -5941,6 +5943,8 @@ int fill_schema_schema_privileges(THD *thd, TABLE_LIST *tables, COND *cond)
char
*
curr_host
=
thd
->
security_ctx
->
priv_host_name
();
char
*
curr_host
=
thd
->
security_ctx
->
priv_host_name
();
DBUG_ENTER
(
"fill_schema_schema_privileges"
);
DBUG_ENTER
(
"fill_schema_schema_privileges"
);
if
(
!
initialized
)
DBUG_RETURN
(
0
);
pthread_mutex_lock
(
&
acl_cache
->
lock
);
pthread_mutex_lock
(
&
acl_cache
->
lock
);
for
(
counter
=
0
;
counter
<
acl_dbs
.
elements
;
counter
++
)
for
(
counter
=
0
;
counter
<
acl_dbs
.
elements
;
counter
++
)
...
...
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