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:
parent
ac86d47d3e
commit
8f0246f3a1
|
@ -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,
|
||||
|
|
|
@ -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");
|
||||
}
|
||||
|
||||
##############################################################################
|
||||
|
|
Loading…
Reference in New Issue