diff --git a/pandora_server/ChangeLog b/pandora_server/ChangeLog index b8dabfdf69..fa6e456829 100644 --- a/pandora_server/ChangeLog +++ b/pandora_server/ChangeLog @@ -1,3 +1,8 @@ +2010-11-08 Sergio Martin + + * util/pandora_sync_db.pl: Changed from DELETE to + TRUNCATE in empty tables operation + 2010-11-08 Dario Rodriguez * util/pandora_recode_db.pl: Added talert_template, tconfig_os, diff --git a/pandora_server/util/pandora_sync_db.pl b/pandora_server/util/pandora_sync_db.pl index b9c16b549c..3cb13a2448 100755 --- a/pandora_server/util/pandora_sync_db.pl +++ b/pandora_server/util/pandora_sync_db.pl @@ -126,7 +126,7 @@ sub pandora_load_credentials ($) { sub empty_table ($$) { my ($dbh, $table_name) = @_; - return db_do ($dbh, "DELETE FROM $table_name"); + return db_do ($dbh, "TRUNCATE TABLE $table_name"); } ##############################################################################