mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2026-03-06 14:35:27 +01:00
2018-05-31 Fred Gleason <fredg@paravelsystems.com>
* Refactored table drops to use 'RDApplication::dropTable()'.
This commit is contained in:
@@ -20,6 +20,7 @@
|
||||
|
||||
#include <qobject.h>
|
||||
|
||||
#include "rdapplication.h"
|
||||
#include "rddb.h"
|
||||
#include "rdconf.h"
|
||||
#include "rdcreate_log.h"
|
||||
@@ -354,9 +355,9 @@ bool RDLog::remove(RDStation *station,RDUser *user,RDConfig *config) const
|
||||
if(removeTracks(station,user,config)<0) {
|
||||
return false;
|
||||
}
|
||||
sql=QString("drop table `")+RDLog::tableName(log_name)+"`";
|
||||
q=new RDSqlQuery(sql);
|
||||
delete q;
|
||||
|
||||
rda->dropTable(RDLog::tableName(log_name));
|
||||
|
||||
sql=QString().sprintf("delete from LOGS where (NAME=\"%s\" && TYPE=0)",
|
||||
(const char *)RDEscapeString(log_name));
|
||||
q=new RDSqlQuery(sql);
|
||||
|
||||
Reference in New Issue
Block a user