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
5b80e6cd
Commit
5b80e6cd
authored
Jun 17, 2010
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix for valgrind warning
parent
97d610d6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
4 deletions
+13
-4
sql/tztime.cc
sql/tztime.cc
+13
-4
No files found.
sql/tztime.cc
View file @
5b80e6cd
...
...
@@ -1814,6 +1814,7 @@ tz_load_from_open_tables(const String *tz_name, TABLE_LIST *tz_tables)
my_time_t
ttime
;
char
buff
[
MAX_FIELD_WIDTH
];
uchar
keybuff
[
32
];
Field
*
field
;
String
abbr
(
buff
,
sizeof
(
buff
),
&
my_charset_latin1
);
char
*
alloc_buff
,
*
tz_name_buff
;
/*
...
...
@@ -1891,8 +1892,12 @@ tz_load_from_open_tables(const String *tz_name, TABLE_LIST *tz_tables)
*/
table
=
tz_tables
->
table
;
tz_tables
=
tz_tables
->
next_local
;
table
->
field
[
0
]
->
store
((
longlong
)
tzid
,
TRUE
);
table
->
field
[
0
]
->
get_key_image
(
keybuff
,
sizeof
(
keybuff
),
Field
::
itRAW
);
field
=
table
->
field
[
0
];
field
->
store
((
longlong
)
tzid
,
TRUE
);
DBUG_ASSERT
(
field
->
key_length
()
<=
sizeof
(
keybuff
));
field
->
get_key_image
(
keybuff
,
min
(
field
->
key_length
(),
sizeof
(
keybuff
)),
Field
::
itRAW
);
(
void
)
table
->
file
->
ha_index_init
(
0
,
1
);
if
(
table
->
file
->
ha_index_read_map
(
table
->
record
[
0
],
keybuff
,
...
...
@@ -1919,8 +1924,12 @@ tz_load_from_open_tables(const String *tz_name, TABLE_LIST *tz_tables)
*/
table
=
tz_tables
->
table
;
tz_tables
=
tz_tables
->
next_local
;
table
->
field
[
0
]
->
store
((
longlong
)
tzid
,
TRUE
);
table
->
field
[
0
]
->
get_key_image
(
keybuff
,
sizeof
(
keybuff
),
Field
::
itRAW
);
field
=
table
->
field
[
0
];
field
->
store
((
longlong
)
tzid
,
TRUE
);
DBUG_ASSERT
(
field
->
key_length
()
<=
sizeof
(
keybuff
));
field
->
get_key_image
(
keybuff
,
min
(
field
->
key_length
(),
sizeof
(
keybuff
)),
Field
::
itRAW
);
(
void
)
table
->
file
->
ha_index_init
(
0
,
1
);
res
=
table
->
file
->
ha_index_read_map
(
table
->
record
[
0
],
keybuff
,
...
...
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