Problem with time_zone system variable
Shaukat Mahmood Ahmad <[email protected]> Wed, 13 May 2015 20:58:49 +0500
| Newsgroups | gmane.comp.db.mysql.devel |
|---|---|
| Message-ID | <CAG0LXhyZ7-HXMz0vvrm_Ky64Zo9=ajsG416_MneCTC-TmwHfqA@mail.gmail.com> |
Hi All, Within my custom storage engine, I want to get time zone of client machine from where I received current query, I am using following code but it does not return any thing. THD* thd = this->ha_thd(); system_variables sys_vars = thd->variables; bool time_zone_used = thd->time_zone_used; Time_zone* timezone = sys_vars.time_zone; const char* name = timezone->get_name()->ptr(); // Unhandled exception Can anyone help me how can I get system (MySQL server machine) and session (mysql client machine) time zone information? Regards, SMA -- MySQL Internals Mailing List For list archives: http://lists.mysql.com/internals To unsubscribe: http://lists.mysql.com/internals