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
035feae6
Commit
035feae6
authored
Sep 16, 2022
by
Oleg Smirnov
Committed by
Oleg Smirnov
Oct 13, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-29550 Fix Valgrind/MSAN uninitialised value errors
parent
945a5439
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
sql/sql_show.cc
sql/sql_show.cc
+7
-3
No files found.
sql/sql_show.cc
View file @
035feae6
...
...
@@ -6784,7 +6784,10 @@ int fill_schema_proc(THD *thd, TABLE_LIST *tables, COND *cond)
uint
keylen
=
keyinfo
->
key_part
[
0
].
length
;
key_part_map
keypart_map
=
1
;
enum
ha_rkey_function
find_flag
=
HA_READ_PREFIX
;
uchar
keybuf
[
NAME_CHAR_LEN
*
2
*
4
*
64
];
const
auto
sp_name_len
=
NAME_LEN
*
2
+
1
/*for type*/
;
StringBuffer
<
sp_name_len
>
keybuf
;
keybuf
.
alloc
(
proc_table
->
key_info
->
key_length
);
keybuf
.
length
(
proc_table
->
key_info
->
key_length
);
proc_table
->
field
[
0
]
->
store
(
lookup
.
db_value
.
str
,
lookup
.
db_value
.
length
,
system_charset_info
);
if
(
lookup
.
table_value
.
str
)
...
...
@@ -6796,8 +6799,9 @@ int fill_schema_proc(THD *thd, TABLE_LIST *tables, COND *cond)
keypart_map
=
3
;
find_flag
=
HA_READ_KEY_EXACT
;
}
key_copy
(
keybuf
,
proc_table
->
record
[
0
],
keyinfo
,
keylen
,
0
);
res
=
proc_table
->
file
->
ha_index_read_map
(
proc_table
->
record
[
0
],
keybuf
,
key_copy
((
uchar
*
)
keybuf
.
ptr
(),
proc_table
->
record
[
0
],
keyinfo
,
keylen
,
0
);
res
=
proc_table
->
file
->
ha_index_read_map
(
proc_table
->
record
[
0
],
(
const
uchar
*
)
keybuf
.
ptr
(),
keypart_map
,
find_flag
);
}
else
...
...
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