summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authormsvensson@pilot.blaudden <>2007-02-23 17:33:11 +0100
committermsvensson@pilot.blaudden <>2007-02-23 17:33:11 +0100
commit7e292b9a9a52829bd29bd09f0cfcac8b269d4373 (patch)
treea63d78e9b3f0c439c75d9e419dfadcd8a1c55a15 /include
parent55b7f20a800e6d1699c6dfd8f865dd9151f71085 (diff)
downloadmariadb-git-7e292b9a9a52829bd29bd09f0cfcac8b269d4373.tar.gz
Bug#26536 func_time failure on vm-win2003-64-b, occurs every time
- Avoid overflow in sec_since_epoch by shifting the time back 2 days for times close to the maximum range of my_time_t - Improve comment about why we need my_time_t - Patch will also fix timezone2.test
Diffstat (limited to 'include')
-rw-r--r--include/my_time.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/my_time.h b/include/my_time.h
index 14726d3a01d..3c8f4274409 100644
--- a/include/my_time.h
+++ b/include/my_time.h
@@ -30,7 +30,13 @@ extern uchar days_in_month[];
/*
Portable time_t replacement.
- Should be signed and hold seconds for 1902-2038 range.
+ Should be signed and hold seconds for 1902 -- 2038-01-19 range
+ i.e at least a 32bit variable
+
+ Using the system built in time_t is not an option as
+ we rely on the above requirements in the time functions
+
+ For example QNX has an unsigned time_t type
*/
typedef long my_time_t;