2010-11-08 Sergio Martin <sergio.martin@artica.es>

* 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
This commit is contained in:
zarzuelo 2010-11-08 11:47:37 +00:00
parent ac86d47d3e
commit 8f0246f3a1
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2010-11-08 Sergio Martin <sergio.martin@artica.es>
* util/pandora_sync_db.pl: Changed from DELETE to
TRUNCATE in empty tables operation
2010-11-08 Dario Rodriguez <dario.rodriguez@artica.es>
* util/pandora_recode_db.pl: Added talert_template, tconfig_os,

View File

@ -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");
}
##############################################################################