diff options
author | Alexander Barkov <bar@mnogosearch.org> | 2013-05-24 19:09:59 +0400 |
---|---|---|
committer | Alexander Barkov <bar@mnogosearch.org> | 2013-05-24 19:09:59 +0400 |
commit | 32bd0c7d1fd3e996bf4431ed2c2e22cc1bcde4cd (patch) | |
tree | f4b7e59f087e5c884fa5c5b09035ca84a77ce545 /include/mysql_time.h | |
parent | 74be65c6d8f3541dc4a83666e32f043a7b6b49fe (diff) | |
download | mariadb-git-32bd0c7d1fd3e996bf4431ed2c2e22cc1bcde4cd.tar.gz |
Adding the timezone plugin service, to convert between
MYSQL_TIME and my_time_t and back.
Using the new service instead of direct access to thd.
added:
include/mysql/service_thd_timezone.h
libservices/thd_timezone_service.c
modified:
include/my_time.h
include/mysql.h.pp
include/mysql/plugin.h
include/mysql/plugin_audit.h.pp
include/mysql/plugin_auth.h.pp
include/mysql/plugin_ftparser.h.pp
include/mysql/services.h
include/mysql_time.h
include/service_versions.h
libservices/CMakeLists.txt
sql/sql_class.cc
sql/sql_plugin_services.h
storage/connect/value.cpp
Diffstat (limited to 'include/mysql_time.h')
-rw-r--r-- | include/mysql_time.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/mysql_time.h b/include/mysql_time.h index 0a3f17a81fb..baa236e891e 100644 --- a/include/mysql_time.h +++ b/include/mysql_time.h @@ -17,6 +17,17 @@ #define _mysql_time_h_ /* + Portable time_t replacement. + 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 +*/ +typedef long my_time_t; + + +/* Time declarations shared between the server and client API: you should not add anything to this header unless it's used (and hence should be visible) in mysql.h. |