diff options
author | Tor Didriksen <tor.didriksen@sun.com> | 2010-01-06 15:00:51 +0100 |
---|---|---|
committer | Tor Didriksen <tor.didriksen@sun.com> | 2010-01-06 15:00:51 +0100 |
commit | a0f701ec171cbf02960ae014eefa5fef09a33ffe (patch) | |
tree | 5f822cbd6e51a3152056d59856647d0bd896774d /config/ac-macros/zlib.m4 | |
parent | f471d82bb546ffb2fb57a43dc882150b306317f6 (diff) | |
download | mariadb-git-a0f701ec171cbf02960ae014eefa5fef09a33ffe.tar.gz |
Bug #50087 Interval arithmetic for Event_queue_element is not portable.
Subtraction of two unsigned months yielded a (very large) positive value.
Conversion of this to a signed value was not necessarily well defined.
Solution: do the subtraction on signed values.
mysql-test/r/events_scheduling.result:
Add test case.
mysql-test/t/events_scheduling.test:
Add test case.
sql/event_data_objects.cc:
Convert month to signed before doing the subtraction.
Diffstat (limited to 'config/ac-macros/zlib.m4')
0 files changed, 0 insertions, 0 deletions