From 6079f8d6d9d8681dc9c8eb23f78ed8433e1775c0 Mon Sep 17 00:00:00 2001 From: cmaffio Date: Fri, 16 Sep 2016 08:49:43 +0200 Subject: [PATCH] parametrizzazione limite giorni --- script/partitioning.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ();