Fix funzione getMissingIDs per api

This commit is contained in:
Matteo 2022-04-22 10:18:37 +02:00
parent 92e8d2b732
commit f927b31105
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(); $db_name = $database->getDatabaseName();
// Ottiene il valore successivo della colonna di tipo AUTO_INCREMENT // Ottiene il valore successivo della colonna di tipo AUTO_INCREMENT
$database->query('ANALYZE TABLE '.prepare($table_name)); $database->query('ANALYZE TABLE '.$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']; $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'];
/* /*