diff options
author | konstantin@mysql.com <> | 2004-09-02 20:16:01 +0400 |
---|---|---|
committer | konstantin@mysql.com <> | 2004-09-02 20:16:01 +0400 |
commit | 2f191db2b11a050e57ebed3bf9eddf7466367784 (patch) | |
tree | 0f4b1b3d310d80daa00185bb4406575d041ac80e /include | |
parent | ea5fd2b4bbaa10b4885855b2b46b3687a0f7cda8 (diff) | |
download | mariadb-git-2f191db2b11a050e57ebed3bf9eddf7466367784.tar.gz |
A fix and test case for Bug#4231 "Wrong result with MYSQL_TIME
parameters": when unpacking binary time recieved from client, handle
the case when length is 0: it means all MYSQL_TIME members are zero.
Diffstat (limited to 'include')
-rw-r--r-- | include/my_time.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/my_time.h b/include/my_time.h index 6c53e39d1d8..d4dbe459c3b 100644 --- a/include/my_time.h +++ b/include/my_time.h @@ -58,6 +58,8 @@ void init_time(void); my_time_t my_system_gmt_sec(const MYSQL_TIME *t, long *my_timezone, bool *in_dst_time_gap); +void set_zero_time(MYSQL_TIME *tm); + C_MODE_END #endif /* _my_time_h_ */ |