summaryrefslogtreecommitdiff
path: root/include/my_global.h
diff options
context:
space:
mode:
authorAlexander Barkov <bar@mariadb.org>2014-06-04 20:32:57 +0400
committerAlexander Barkov <bar@mariadb.org>2014-06-04 20:32:57 +0400
commit661daf16f11ffa879ffb005008b6e73f6744e0ad (patch)
treec0f1facac5d17e590dc2aa12353d2f513c007bdf /include/my_global.h
parenta1975dd2c106180ab16836631e6797cff5b4e396 (diff)
downloadmariadb-git-661daf16f11ffa879ffb005008b6e73f6744e0ad.tar.gz
MDEV-4858 Wrong results for a huge unsigned value inserted into a TIME column
MDEV-6099 Bad results for DATE_ADD(.., INTERVAL 2000000000000000000.0 SECOND) MDEV-6097 Inconsistent results for CAST(int,decimal,double AS DATETIME) MDEV-6100 No warning on CAST(9000000 AS TIME)
Diffstat (limited to 'include/my_global.h')
-rw-r--r--include/my_global.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/my_global.h b/include/my_global.h
index 41ab8bc518d..b924c47e86e 100644
--- a/include/my_global.h
+++ b/include/my_global.h
@@ -630,6 +630,7 @@ typedef unsigned short ushort;
#define sgn(a) (((a) < 0) ? -1 : ((a) > 0) ? 1 : 0)
#define swap_variables(t, a, b) { t dummy; dummy= a; a= b; b= dummy; }
#define test(a) ((a) ? 1 : 0)
+#define MY_TEST(a) ((a) ? 1 : 0)
#define set_if_bigger(a,b) do { if ((a) < (b)) (a)=(b); } while(0)
#define set_if_smaller(a,b) do { if ((a) > (b)) (a)=(b); } while(0)
#define set_bits(type, bit_count) (sizeof(type)*8 <= (bit_count) ? ~(type) 0 : ((((type) 1) << (bit_count)) - (type) 1))