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

Proxysql 2.0.2 errors on setting time_zone #1967

Closed
shrestha-s opened this issue Mar 20, 2019 · 4 comments
Closed

Proxysql 2.0.2 errors on setting time_zone #1967

shrestha-s opened this issue Mar 20, 2019 · 4 comments

Comments

@shrestha-s
Copy link

shrestha-s commented Mar 20, 2019

Hi,
Proxysql 2.0.2 produces following error when setting TIME_ZONE variable.

OS Version: Ubuntu 14.04.5 LTS
ProxySQL Version: 2.0.2-1-g533442f, codename Truls
Backend DB: Mysql 5.6.37

Fyi, I am logged-in through ProxySQL to the backend DB as a user with full privileges

mysql> SET @OLD_TIME_ZONE=@@TIME_ZONE;
Query OK, 0 rows affected (0.00 sec)

mysql> SELECT @OLD_TIME_ZONE;
+----------------+
| @OLD_TIME_ZONE |
+----------------+
| SYSTEM         |
+----------------+
1 row in set (0.00 sec)

mysql> 
mysql> 
mysql> SET TIME_ZONE=@OLD_TIME_ZONE;
Query OK, 0 rows affected (0.00 sec)

mysql> 
mysql> 
mysql> SELECT @@TIME_ZONE;
ERROR 1298 (HY000): Unknown or incorrect time zone: ''

I've tested this with ProxySQL 1.4.13 and verified that this is not an issue. I've also confirmed that even without explicitly calling "SELECT @@TIME_ZONE", I can run into the same issue as follows:

mysql> SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT;
Query OK, 0 rows affected (0.00 sec)

mysql> SET @OLD_TIME_ZONE=@@TIME_ZONE;
Query OK, 0 rows affected (0.00 sec)

mysql> SELECT @OLD_TIME_ZONE;
+----------------+
| @OLD_TIME_ZONE |
+----------------+
| SYSTEM         |
+----------------+
1 row in set (0.01 sec)

mysql> SET TIME_ZONE=@OLD_TIME_ZONE;
Query OK, 0 rows affected (0.00 sec)

mysql> SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT;
ERROR 1298 (HY000): Unknown or incorrect time zone: ''

The error message seen in proysql.log when this is encountered is:

2019-03-20 11:43:01 MySQL_Session.cpp:1815:handler_again___status_SETTING_TIME_ZONE(): [WARNING] Error while setting TIME_ZONE: 1298, Unknown or incorrect time zone: ''
2019-03-20 11:43:01 MySQL_Session.cpp:103:kill_query_thread(): [WARNING] KILL CONNECTION 983 on <hostname>:3306

Thanks
S

@mgale
Copy link

mgale commented Mar 20, 2019

@renecannao Hey, is this the same issue that got fixed here? #1063

@renecannao
Copy link
Contributor

issue confirmed.
ProxySQL 1.4 doesn't attempt to parse the SET command.
ProxySQL 2.0 does it, and it fails.

renecannao added a commit that referenced this issue Mar 22, 2019
@renecannao
Copy link
Contributor

Fixed in 2.0.4 .
Thank you for the report.

@soq58724
Copy link

Hello renecannao. But this still a problem with ProxySQL version: 2.0.15. Could you help please?

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

No branches or pull requests

4 participants