The sql_repair() function is used to repair a damaged SQL table. It is called by SPIP when an administrator attempts to repair a database using the ecrire/?exec=admin_tech page.
It accepts 3 parameters:
-
$tableis the table which is requested to be repaired, -
$serveur, -
$option.
Usage:
sql_repair('table');
Note: PostGres and SQLite database managers ignore this instruction.