Fix funzione getMissingIDs per api

This commit is contained in:
Matteo 2022-04-20 16:51:13 +02:00
parent 740d5ceab0
commit ed1e13c11e
1 changed files with 1 additions and 1 deletions

View File

@ -254,7 +254,7 @@ abstract class AppResource extends Resource implements RetrieveInterface, Create
$db_name = $database->getDatabaseName();
// Ottiene il valore successivo della colonna di tipo AUTO_INCREMENT
$database->query("ANALYZE TABLE in_interventi");
$database->query('ANALYZE TABLE '.prepare($table_name));
$next_autoincrement = $database->fetchOne('SELECT AUTO_INCREMENT FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = '.prepare($table_name).' AND TABLE_SCHEMA = '.prepare($db_name))['AUTO_INCREMENT'];
/*