summaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authormonty@mysql.com/nosik.monty.fi <>2007-08-03 08:08:33 +0300
committermonty@mysql.com/nosik.monty.fi <>2007-08-03 08:08:33 +0300
commit113cd2d064e500cd3241046ab374c490d95dace8 (patch)
treeec83c0e8601e01462c7abc45e672462a0fb0ad41 /sql
parent237d58670021e62d22d04f70174f4a13b85a0d02 (diff)
downloadmariadb-git-113cd2d064e500cd3241046ab374c490d95dace8.tar.gz
Removed compiler warning
Diffstat (limited to 'sql')
-rw-r--r--sql/log.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/sql/log.cc b/sql/log.cc
index 1ddc8b57580..588a06fa7a4 100644
--- a/sql/log.cc
+++ b/sql/log.cc
@@ -380,7 +380,8 @@ bool Log_to_csv_event_handler::
DBUG_ASSERT(table->field[0]->type() == MYSQL_TYPE_TIMESTAMP);
- ((Field_timestamp*) table->field[0])->store_timestamp(event_time);
+ ((Field_timestamp*) table->field[0])->store_timestamp((my_time_t)
+ event_time);
/* do a write */
if (table->field[1]->store(user_host, user_host_len, client_cs) ||
@@ -518,7 +519,8 @@ bool Log_to_csv_event_handler::
/* store the time and user values */
DBUG_ASSERT(table->field[0]->type() == MYSQL_TYPE_TIMESTAMP);
- ((Field_timestamp*) table->field[0])->store_timestamp(current_time);
+ ((Field_timestamp*) table->field[0])->store_timestamp((my_time_t)
+ current_time);
if (table->field[1]->store(user_host, user_host_len, client_cs))
goto err;