Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MySQL time zone settings is broken in 0.4 #2529

Closed
sunng87 opened this issue Oct 7, 2023 · 1 comment · Fixed by #2534
Closed

MySQL time zone settings is broken in 0.4 #2529

sunng87 opened this issue Oct 7, 2023 · 1 comment · Fixed by #2534
Assignees
Labels
C-bug Category Bugs

Comments

@sunng87
Copy link
Member

sunng87 commented Oct 7, 2023

What type of bug is this?

Incorrect result

What subsystems are affected?

Frontend

What happened?

Cannot set timezone in mysql any more

MySQL [public]> SET time_zone = 'UTC';
Query OK, 0 rows affected (0.001 sec)

MySQL [public]> SELECT @@time_zone;
+-------------+
| @@time_zone |
+-------------+
|             |
+-------------+
1 row in set (0.000 sec)

MySQL [public]> SET time_zone = '+08:00';
Query OK, 0 rows affected (0.000 sec)

MySQL [public]> SELECT @@time_zone;
+-------------+
| @@time_zone |
+-------------+
|             |
+-------------+
1 row in set (0.000 sec)

MySQL [public]> SET time_zone = 'Europe/Berlin';
Query OK, 0 rows affected (0.000 sec)

MySQL [public]> SELECT @@time_zone;
+-------------+
| @@time_zone |
+-------------+
|             |
+-------------+
1 row in set (0.000 sec)

What operating system did you use?

any

Relevant log output and stack trace

No response

How can we reproduce the bug?

Open a mysql client console and follow docs: https://docs.greptime.com/user-guide/protocols/mysql#time-zone

Execute SELECT @@time_zone returns empty result

@sunng87 sunng87 added the C-bug Category Bugs label Oct 7, 2023
@killme2008
Copy link
Contributor

Broken by e0aecc9

Always new a QueryContext for every request. Must use session.context() instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category Bugs
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants