From 8f0246f3a1ac33cd0d8cc7a567c00569a99d4f0c Mon Sep 17 00:00:00 2001 From: zarzuelo Date: Mon, 8 Nov 2010 11:47:37 +0000 Subject: [PATCH] 2010-11-08 Sergio Martin * util/pandora_sync_db.pl: Changed from DELETE to TRUNCATE in empty tables operation git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3548 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_server/ChangeLog | 5 +++++ pandora_server/util/pandora_sync_db.pl | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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"); } ##############################################################################