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
If there is a table in the database with a reserved name (for example, groups), then I get an error:
SQLSTATE[42000]: Syntax error or access violation: 1064 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' at line 1 (Connection: mysql, SQL: SHOW COLUMNS FROM groups;)
Change src/MySQL.php and add name escaping:
'fields' => \DB::select("SHOW COLUMNS FROM `{$name}`;"),
'indexes' => \DB::select("SHOW INDEX FROM `{$name}`;"),
The text was updated successfully, but these errors were encountered:
If there is a table in the database with a reserved name (for example,
groups
), then I get an error:Change
src/MySQL.php
and add name escaping:The text was updated successfully, but these errors were encountered: