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
eb248128
Commit
eb248128
authored
Jan 12, 2024
by
Nikita Malyavin
Committed by
Oleksandr Byelkin
Feb 12, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sql_show: Fix narrowing conversion from the get_column_grant return result.
parent
8a882827
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
sql/sql_show.cc
sql/sql_show.cc
+3
-3
No files found.
sql/sql_show.cc
View file @
eb248128
...
@@ -7097,7 +7097,7 @@ static int get_schema_stat_record(THD *thd, TABLE_LIST *tables,
...
@@ -7097,7 +7097,7 @@ static int get_schema_stat_record(THD *thd, TABLE_LIST *tables,
uint
j
;
uint
j
;
for
(
j
=
0
;
j
<
key_info
->
user_defined_key_parts
;
j
++
,
key_part
++
)
for
(
j
=
0
;
j
<
key_info
->
user_defined_key_parts
;
j
++
,
key_part
++
)
{
{
uint
access
=
get_column_grant
(
thd
,
&
tables
->
grant
,
db_name
->
str
,
auto
access
=
get_column_grant
(
thd
,
&
tables
->
grant
,
db_name
->
str
,
table_name
->
str
,
table_name
->
str
,
key_part
->
field
->
field_name
.
str
);
key_part
->
field
->
field_name
.
str
);
...
@@ -7659,7 +7659,7 @@ static int get_schema_key_column_usage_record(THD *thd, TABLE_LIST *tables,
...
@@ -7659,7 +7659,7 @@ static int get_schema_key_column_usage_record(THD *thd, TABLE_LIST *tables,
uint
j
;
uint
j
;
for
(
j
=
0
;
j
<
key_info
->
user_defined_key_parts
;
j
++
,
key_part
++
)
for
(
j
=
0
;
j
<
key_info
->
user_defined_key_parts
;
j
++
,
key_part
++
)
{
{
uint
access
=
get_column_grant
(
thd
,
&
tables
->
grant
,
db_name
->
str
,
auto
access
=
get_column_grant
(
thd
,
&
tables
->
grant
,
db_name
->
str
,
table_name
->
str
,
table_name
->
str
,
key_part
->
field
->
field_name
.
str
);
key_part
->
field
->
field_name
.
str
);
...
@@ -7702,7 +7702,7 @@ static int get_schema_key_column_usage_record(THD *thd, TABLE_LIST *tables,
...
@@ -7702,7 +7702,7 @@ static int get_schema_key_column_usage_record(THD *thd, TABLE_LIST *tables,
{
{
while
((
r_info
=
it1
++
))
while
((
r_info
=
it1
++
))
{
{
uint
access
=
get_column_grant
(
thd
,
&
tables
->
grant
,
db_name
->
str
,
auto
access
=
get_column_grant
(
thd
,
&
tables
->
grant
,
db_name
->
str
,
table_name
->
str
,
r_info
->
str
);
table_name
->
str
,
r_info
->
str
);
if
(
!
access
)
if
(
!
access
)
...
...
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