From f927b31105f43fbc782c09f785f6534dbeb768a5 Mon Sep 17 00:00:00 2001 From: Matteo Date: Fri, 22 Apr 2022 10:18:37 +0200 Subject: [PATCH] Fix funzione getMissingIDs per api --- src/API/App/AppResource.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/API/App/AppResource.php b/src/API/App/AppResource.php index b667204c1..ebd5f14b7 100644 --- a/src/API/App/AppResource.php +++ b/src/API/App/AppResource.php @@ -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 '.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']; /*