Quantcast
Channel: General developer forum
Viewing all articles
Browse latest Browse all 37696

Re: Databases: replace.php - error in mdl_pma_history table

$
0
0
by Dan Jackson.  

I investigated this a bit further using the Moodle Adminer plugin. 'table' is a reserved word in SQL, and as the query does not quote it, a syntax error is being returned. It's possible to work around this error by changing lib/adminlib.php to add backquotes around the $column references in the SQL statement in db_replace() - i.e. change to `$column`. I found this to be on line 6315 of lib/adminlib.php.

Hope this helps,

Dan Jackson (CSD Computer Technician)

Long Road Sixth Form College

Cambridge, UK


Viewing all articles
Browse latest Browse all 37696

Trending Articles