diff --git a/script/partitioning.pl b/script/partitioning.pl index aa3f588..77fcaac 100755 --- a/script/partitioning.pl +++ b/script/partitioning.pl @@ -128,7 +128,7 @@ sub aggiorna { my $diff = diffgg ($ultimo); if ($diff > $limitgg) { - my $query = "ALTER TABLE $tabella DROP PARTITION p$1"; + my $query = "ALTER TABLE $tabella DROP PARTITION p$1$2$3"; print "$query\n"; $sts = $dbmysql->prepare($query); $sts->execute ();