Wedge
Public area => Bug reports => The Pub => Archived fixes => Topic started by: Alanthar on November 7th, 2012, 09:03 AM
-
Running the task "Empty out unimportant logs" will throw me reproduceably 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 ' wedge_log_floodcontrol' at line 1
File: [~]/Sources/ManageMaintenance.php
Line: 329
-
I can confirm this. The issue,
wesql::query('
TRUNCATE {db_prefix}log_online, {db_prefix}log_floodcontrol'); Should be seperated for the two tables like so,
wesql::query('
TRUNCATE {db_prefix}log_online');
wesql::query('
TRUNCATE {db_prefix}log_floodcontrol');
-
Odd, I could have sworn MySQL supported multi-table truncates.
-
Fixed locally, thanks.
Couldn't find any other TRUNCATE calls with multiple tables, so it should be fine from now on.