summaryrefslogtreecommitdiff
path: root/sql/item_timefunc.cc
diff options
context:
space:
mode:
authorunknown <monty@hundin.mysql.fi>2001-11-07 00:08:57 +0200
committerunknown <monty@hundin.mysql.fi>2001-11-07 00:08:57 +0200
commitf271c8145dae6fb3b8518919f5b6773648083fa0 (patch)
treea361f84743de7a283f8326e8d6e267dbc7a8bc11 /sql/item_timefunc.cc
parent0176dacd54b7eb62ebc4a81909b189517aee2cb4 (diff)
downloadmariadb-git-f271c8145dae6fb3b8518919f5b6773648083fa0.tar.gz
Added missing mysqlbinlog to binary distributions.
Applied patch to mysqlhotcopy myisam/mi_open.c: Fixed some purify warnings mysql-test/mysql-test-run.sh: Added --core as default to test suite scripts/make_binary_distribution.sh: Added missing mysqlbinlog scripts/mysqlhotcopy.sh: Applied patch with --record-log option sql/item_timefunc.cc: Fixed problem with SEC_TO_TIME() for long signed integers.
Diffstat (limited to 'sql/item_timefunc.cc')
-rw-r--r--sql/item_timefunc.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/item_timefunc.cc b/sql/item_timefunc.cc
index a8bd219eef1..b198900d24e 100644
--- a/sql/item_timefunc.cc
+++ b/sql/item_timefunc.cc
@@ -525,7 +525,7 @@ String *Item_func_sec_to_time::val_str(String *str)
seconds= -seconds;
sign= "-";
}
- uint sec= (uint) (seconds % 3600);
+ uint sec= (uint) ((ulonglong) seconds % 3600);
sprintf(buff,"%s%02lu:%02u:%02u",sign,(long) (seconds/3600),
sec/60, sec % 60);
str->copy(buff,(uint) strlen(buff));