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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
18829511
Commit
18829511
authored
Nov 24, 2005
by
monty@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clear variable
parent
a3436bd7
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
1 deletion
+9
-1
mysql-test/r/view_grant.result
mysql-test/r/view_grant.result
+2
-0
mysql-test/t/view_grant.test
mysql-test/t/view_grant.test
+6
-0
sql/sql_view.cc
sql/sql_view.cc
+1
-1
No files found.
mysql-test/r/view_grant.result
View file @
18829511
drop database if exists mysqltest;
drop view if exists v1;
grant create view on test.* to test@localhost;
show grants for test@localhost;
Grants for test@localhost
...
...
mysql-test/t/view_grant.test
View file @
18829511
# Can't test with embedded server
--
source
include
/
not_embedded
.
inc
--
disable_warnings
drop
database
if
exists
mysqltest
;
drop
view
if
exists
v1
;
--
enable_warnings
# simple test of grants
grant
create
view
on
test
.*
to
test
@
localhost
;
show
grants
for
test
@
localhost
;
...
...
sql/sql_view.cc
View file @
18829511
...
...
@@ -1175,7 +1175,7 @@ bool mysql_drop_view(THD *thd, TABLE_LIST *views, enum_drop_mode drop_mode)
for
(
view
=
views
;
view
;
view
=
view
->
next_local
)
{
TABLE_SHARE
*
share
;
bool
type
;
bool
type
=
0
;
strxnmov
(
path
,
FN_REFLEN
-
1
,
mysql_data_home
,
"/"
,
view
->
db
,
"/"
,
view
->
table_name
,
reg_ext
,
NullS
);
(
void
)
unpack_filename
(
path
,
path
);
...
...
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