Quantcast
Channel: phpBB.com
Viewing all articles
Browse latest Browse all 2591

[3.3.x] Convertors • convert from phpBB does not work on MySQL 8 because 'groups' is reserved word. Where to add quotation marks?

$
0
0
Good morning,

I am trying to update phpBB 2 (yes, its very old) to latest version 3.3.12. Convert does not work on MySQL 8 because 'groups' (table name) is reserved word.
I assume the same problem will be raised with any other version 3.x.x on MySQL 8

I am receiving the following error
{"errors":[{"title":"General Error:SQL ERROR [ mysqli ]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\\x0AWHERE (groups.group_single_user = 0)\\x0A LIMIT 2000' at line 2 [1064]SQLSELECT groups.group_id, groups.group_type, groups.group_name, groups.group_description \nFROM groups\nWHERE (groups.group_single_user = 0)\n LIMIT 2000 in file .../phpbb\/db\/driver\/driver.php on line 1031"}],"over":true}
this query fails

Code:

SELECT groups.group_id, groups.group_type, groups.group_name, groups.group_description FROM groups WHERE (groups.group_single_user = 0) LIMIT 2000
Fix should be very simple, use quotation marks like

Code:

SELECT groups.group_id, groups.group_type, groups.group_name, groups.group_description FROM 'groups' WHERE (groups.group_single_user = 0) LIMIT 2000
This fix also may help in the future for some other databases.
But I am not sure which file should be corrected, tried to understand how it works but failed so far. Its not driver.php file where error is catched

Statistics: Posted by alex555 — Fri Jun 14, 2024 10:11 am



Viewing all articles
Browse latest Browse all 2591

Trending Articles