do val_int() on their arguments before starting the computation.
Similar fixes are need for +-* and probably several other but I want
to make sure Monty is fine with my fix approach before changing a lot
of code.
Amazingly,
this bug is not as critical as you would expect since very few functions do val_int()
on their arguments ( from_unixtime(), sec_to_time()), and those not
very frequently perform a computation on their floating point arguments.
which is probably why no one has yet reported this bug. Another
possibility is that the result is usually wrong by no more than 5%,
which makes it hard to catch it. I found it when trying to compute mile
splits for 30:47 10K - it told me 5:07, and I knew it was wrong because
5:00 mile gives you 31:08. However, if I had not run as many 10K races,
I would have easily believed that 30:47 10K is a 5:07 mile pace and
would not have noticed the bug.
mysql-test/r/func_time.result:
another test for sec_to_time that exposes a long outstanding bug
mysql-test/t/func_time.test:
another test for sec_to_time that exposes a long outstanding bug
sql/item_func.cc:
fixed bug in Item_func_div::val_int()
sql/mini_client.cc:
alarm around mc_mysql_connect()
sql/mysqld.cc:
move end_slave() to the earlier part of shutdown
sql/sql_repl.cc:
retry thr_alarm_kill() in case slave thread missed the signal in SLAVE STOP
srv0start.c Allow drive name followed by a ':' in a data file path
ha_innobase.cc Allow drive name followed by a ':' in a data file path
sql/ha_innobase.cc:
Allow drive name followed by a ':' in a data file path
innobase/srv/srv0start.c:
Allow drive name followed by a ':' in a data file path
innobase/row/row0sel.c:
Fix a memory freeing bug when a row which contains an externally stored long field in the middle of the row is fetched in a SELECT
into mysql.sashanet.com:/home/sasha/src/bk/mysql
BitKeeper/etc/ignore:
auto-union
BitKeeper/etc/logging_ok:
auto-union
client/mysqlbinlog.cc:
Auto merged
BitKeeper/etc/ignore:
added */*_pure_*warnings
BUILD/compile-solaris-sparc:
Optimized build for ultrasparc
sql/mysqld.cc:
Made SIGTERM safer for Solaris as it sometimes delivered a not catched
signal during shutdown
BitKeeper/etc/logging_ok:
auto-union
innobase/buf/buf0flu.c:
Auto merged
sql/ha_myisam.cc:
Auto merged
sql/sql_parse.cc:
Auto merged
sql/sql_select.cc:
Auto merged
Docs/manual.texi:
Will merge later..
Added record_rnd_buffer
Added --safe-user-create
Fix for ALTER TABLE RENAME on windows
Docs/manual.texi:
Changelog and documentation of new features.
More information about using threaded client libraries
include/mysql_com.h:
Added prototype for my_thread_init()
include/mysqld_error.h:
New error for --safe-create-user
innobase/buf/buf0flu.c:
Portability fix
innobase/include/univ.i:
Portability fix
mysql-test/t/distinct.test:
Test for distinct bug
sql/mysql_priv.h:
Added record_rnd_buffer
sql/mysqld.cc:
Added record_rnd_buffer
sql/records.cc:
Added record_rnd_buffer
sql/share/czech/errmsg.txt:
New error message for --safe-user-create
sql/share/danish/errmsg.txt:
New error message for --safe-user-create
sql/share/dutch/errmsg.txt:
New error message for --safe-user-create
sql/share/english/errmsg.txt:
New error message for --safe-user-create
sql/share/estonian/errmsg.txt:
New error message for --safe-user-create
sql/share/french/errmsg.txt:
New error message for --safe-user-create
sql/share/german/errmsg.txt:
New error message for --safe-user-create
sql/share/greek/errmsg.txt:
New error message for --safe-user-create
sql/share/hungarian/errmsg.txt:
New error message for --safe-user-create
sql/share/italian/errmsg.txt:
New error message for --safe-user-create
sql/share/japanese/errmsg.txt:
New error message for --safe-user-create
sql/share/korean/errmsg.txt:
New error message for --safe-user-create
sql/share/norwegian-ny/errmsg.txt:
New error message for --safe-user-create
sql/share/norwegian/errmsg.txt:
New error message for --safe-user-create
sql/share/polish/errmsg.txt:
New error message for --safe-user-create
sql/share/portuguese/errmsg.txt:
New error message for --safe-user-create
sql/share/romanian/errmsg.txt:
New error message for --safe-user-create
sql/share/russian/errmsg.txt:
New error message for --safe-user-create
sql/share/slovak/errmsg.txt:
New error message for --safe-user-create
sql/share/spanish/errmsg.txt:
New error message for --safe-user-create
sql/share/swedish/errmsg.txt:
New error message for --safe-user-create
sql/sql_acl.cc:
Checking of privileges for --safe-user-create
sql/sql_acl.h:
--safe-user-create
sql/sql_base.cc:
--safe-user-create
sql/sql_parse.cc:
--safe-user-create
sql/sql_show.cc:
--safe-user-create
sql/sql_table.cc:
Fix for ALTER TABLE RENAME on windows
Portability fixes
Fixed problem when giving wrong arguments to myisam_recover
Fix to remove warnings when using purify
BUILD/compile-solaris-sparc-purify:
Added innodb and berkeleydb to test
mysql-test/install_test_db.sh:
Portability fix.
sql/ha_myisam.cc:
Fixed problem when giving wrong arguments to myisam_recover
sql/ha_myisammrg.cc:
Fixed bug in ALTER TABLE for MERGE tables
sql/sql_list.h:
Fix to remove warnings when using purify
sql/sql_select.cc:
Fix to remove warnings from purify
BitKeeper/etc/logging_ok:
Logging to logging@openlogging.org accepted
BitKeeper/etc/ignore:
Added client/log_event.cc client/log_event.h client/mf_iocache.c client/mf_iocache.cc client/mysqlbinlog client/mysys_priv.h mysql.kdevprj to the ignore list
Makefile.am:
do symlink hack in the client directory
( originally needed to get log_event.cc for mysqlbinlog)
client/mysqlbinlog.cc:
fixes to make it compile in the client directory
libmysql/Makefile.shared:
link mysqlbinlog dependencies into libmysqlclient
libmysql/libmysql.c:
make simple_command and net_safe_read extern ( for mysqlbinlog)
sql/log_event.cc:
removed pthread dependency in mysqlbinlog
sql/log_event.h:
removed pthread dependency in mysqlbinlog
Paste the libtool.m4 from libtool version 1.3.4
into aclinclude.m4; this should make our configure
work even when the user has libtool version 1.4
installed. This should be removed, and everyone
should upgrade to libtool 1.4; until then, this is
a quick hack to make things work.
acinclude.m4:
Paste the libtool.m4 from libtool version 1.3.4
into aclinclude.m4; this should make our configure
work even when the user has libtool version 1.4
installed. This should be removed, and everyone
should upgrade to libtool 1.4; until then, this is
a quick hack to make things work.
BitKeeper/etc/logging_ok:
Logging to logging@openlogging.org accepted