You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to run the code from this repo, I got the following error:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'groups AS g ON g.g_id=u.group_id LEFT JOIN online AS o ON o.ident='x-my-ip-x' at line 1
This occurs in the function set_default_user().
It turns out groups is a reserved keyword in MySQL 8.
When trying to run the code from this repo, I got the following error:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'groups AS g ON g.g_id=u.group_id LEFT JOIN online AS o ON o.ident='x-my-ip-x' at line 1
This occurs in the function
set_default_user()
.It turns out
groups
is a reserved keyword in MySQL 8.See https://dev.mysql.com/doc/refman/8.0/en/keywords.html
Solution:
groups
to something elseThe text was updated successfully, but these errors were encountered: