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
8a8c69f3
Commit
8a8c69f3
authored
Mar 08, 2007
by
msvensson@pilot.blaudden
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix 6 warnings from win64, where one is a potential bug.
parent
27392467
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
6 deletions
+7
-6
sql/event_data_objects.cc
sql/event_data_objects.cc
+2
-2
sql/log.cc
sql/log.cc
+1
-1
sql/sql_show.cc
sql/sql_show.cc
+4
-3
No files found.
sql/event_data_objects.cc
View file @
8a8c69f3
...
...
@@ -535,7 +535,7 @@ Event_parse_data::init_ends(THD *thd)
Check whether ENDS is not in the past.
*/
DBUG_PRINT
(
"info"
,
(
"ENDS after NOW?"
));
my_tz_UTC
->
gmt_sec_to_TIME
(
&
ltime_now
,
thd
->
query_start
());
my_tz_UTC
->
gmt_sec_to_TIME
(
&
ltime_now
,
(
my_time_t
)
thd
->
query_start
());
if
(
my_time_compare
(
&
ltime_now
,
&
ltime
)
==
1
)
goto
error_bad_params
;
...
...
@@ -1266,7 +1266,7 @@ Event_queue_element::compute_next_execution_time()
goto
ret
;
}
my_tz_UTC
->
gmt_sec_to_TIME
(
&
time_now
,
current_thd
->
query_start
());
my_tz_UTC
->
gmt_sec_to_TIME
(
&
time_now
,
(
my_time_t
)
current_thd
->
query_start
());
DBUG_PRINT
(
"info"
,(
"NOW: [%lu]"
,
(
ulong
)
TIME_to_ulonglong_datetime
(
&
time_now
)));
...
...
sql/log.cc
View file @
8a8c69f3
...
...
@@ -899,7 +899,7 @@ bool LOGGER::slow_log_print(THD *thd, const char *query, uint query_length,
bool
is_command
=
FALSE
;
char
user_host_buff
[
MAX_USER_HOST_SIZE
];
my_
time_t
current_time
;
time_t
current_time
;
Security_context
*
sctx
=
thd
->
security_ctx
;
uint
user_host_len
=
0
;
longlong
query_time
=
0
,
lock_time
=
0
;
...
...
sql/sql_show.cc
View file @
8a8c69f3
...
...
@@ -3981,20 +3981,21 @@ static void store_schema_partitions_record(THD *thd, TABLE *schema_table,
if
(
stat_info
.
create_time
)
{
thd
->
variables
.
time_zone
->
gmt_sec_to_TIME
(
&
time
,
stat_info
.
create_time
);
(
my_time_t
)
stat_info
.
create_time
);
table
->
field
[
18
]
->
store_time
(
&
time
,
MYSQL_TIMESTAMP_DATETIME
);
table
->
field
[
18
]
->
set_notnull
();
}
if
(
stat_info
.
update_time
)
{
thd
->
variables
.
time_zone
->
gmt_sec_to_TIME
(
&
time
,
stat_info
.
update_time
);
(
my_time_t
)
stat_info
.
update_time
);
table
->
field
[
19
]
->
store_time
(
&
time
,
MYSQL_TIMESTAMP_DATETIME
);
table
->
field
[
19
]
->
set_notnull
();
}
if
(
stat_info
.
check_time
)
{
thd
->
variables
.
time_zone
->
gmt_sec_to_TIME
(
&
time
,
stat_info
.
check_time
);
thd
->
variables
.
time_zone
->
gmt_sec_to_TIME
(
&
time
,
(
my_time_t
)
stat_info
.
check_time
);
table
->
field
[
20
]
->
store_time
(
&
time
,
MYSQL_TIMESTAMP_DATETIME
);
table
->
field
[
20
]
->
set_notnull
();
}
...
...
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