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
2415189c
Commit
2415189c
authored
Dec 14, 2004
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for bug #7223: information_schema: error in "views"
parent
b8bfcf5a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
mysql-test/r/information_schema.result
mysql-test/r/information_schema.result
+3
-3
sql/sql_show.cc
sql/sql_show.cc
+3
-3
No files found.
mysql-test/r/information_schema.result
View file @
2415189c
...
...
@@ -410,9 +410,9 @@ create view v2 (c) as select a from t1 WITH LOCAL CHECK OPTION;
create view v3 (c) as select a from t1 WITH CASCADED CHECK OPTION;
select * from information_schema.views;
TABLE_CATALOG TABLE_SCHEMA TABLE_NAME VIEW_DEFINITION CHECK_OPTION IS_UPDATABLE
NULL test v1 select `test`.`t1`.`a` AS `c` from `test`.`t1`
WITH CASCADED CHECK OPTION
YES
NULL test v2 select `test`.`t1`.`a` AS `c` from `test`.`t1`
WITH LOCAL CHECK OPTION
YES
NULL test v3 select `test`.`t1`.`a` AS `c` from `test`.`t1`
WITH CASCADED CHECK OPTION
YES
NULL test v1 select `test`.`t1`.`a` AS `c` from `test`.`t1`
CASCADED
YES
NULL test v2 select `test`.`t1`.`a` AS `c` from `test`.`t1`
LOCAL
YES
NULL test v3 select `test`.`t1`.`a` AS `c` from `test`.`t1`
CASCADED
YES
grant select (a) on test.t1 to joe@localhost with grant option;
select * from INFORMATION_SCHEMA.COLUMN_PRIVILEGES;
GRANTEE TABLE_CATALOG TABLE_SCHEMA TABLE_NAME COLUMN_NAME PRIVILEGE_TYPE IS_GRANTABLE
...
...
sql/sql_show.cc
View file @
2415189c
...
...
@@ -2824,9 +2824,9 @@ static int get_schema_views_record(THD *thd, struct st_table_list *tables,
if
(
tables
->
with_check
!=
VIEW_CHECK_NONE
)
{
if
(
tables
->
with_check
==
VIEW_CHECK_LOCAL
)
table
->
field
[
4
]
->
store
(
"
WITH LOCAL CHECK OPTION"
,
23
,
cs
);
table
->
field
[
4
]
->
store
(
"
LOCAL"
,
5
,
cs
);
else
table
->
field
[
4
]
->
store
(
"
WITH CASCADED CHECK OPTION"
,
26
,
cs
);
table
->
field
[
4
]
->
store
(
"
CASCADED"
,
8
,
cs
);
}
else
table
->
field
[
4
]
->
store
(
"NONE"
,
4
,
cs
);
...
...
@@ -3522,7 +3522,7 @@ ST_FIELD_INFO view_fields_info[]=
{
"TABLE_SCHEMA"
,
NAME_LEN
,
MYSQL_TYPE_STRING
,
0
,
0
,
0
},
{
"TABLE_NAME"
,
NAME_LEN
,
MYSQL_TYPE_STRING
,
0
,
0
,
0
},
{
"VIEW_DEFINITION"
,
65535
,
MYSQL_TYPE_STRING
,
0
,
0
,
0
},
{
"CHECK_OPTION"
,
30
,
MYSQL_TYPE_STRING
,
0
,
0
,
0
},
{
"CHECK_OPTION"
,
8
,
MYSQL_TYPE_STRING
,
0
,
0
,
0
},
{
"IS_UPDATABLE"
,
3
,
MYSQL_TYPE_STRING
,
0
,
0
,
0
},
{
0
,
0
,
MYSQL_TYPE_STRING
,
0
,
0
,
0
}
};
...
...
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