2018-05-31 Fred Gleason <fredg@paravelsystems.com>

* Refactored table drops to use 'RDApplication::dropTable()'.
This commit is contained in:
Fred Gleason
2018-05-31 19:11:16 +00:00
parent c6bbac7267
commit 84430a10ef
13 changed files with 58 additions and 101 deletions

View File

@@ -2,7 +2,7 @@
//
// Functions for manipulating RSS feed log tables.
//
// (C) Copyright 2007,2016 Fred Gleason <fredg@paravelsystems.com>
// (C) Copyright 2007,2016-2018 Fred Gleason <fredg@paravelsystems.com>
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License version 2 as
@@ -20,9 +20,11 @@
#include <qdatetime.h>
#include <rdweb.h>
#include <rdapplication.h>
#include <rddb.h>
#include <rdfeedlog.h>
#include <rdweb.h>
#include "rdfeedlog.h"
void RDCreateFeedLog(QString keyname)
{
@@ -44,13 +46,8 @@ void RDCreateFeedLog(QString keyname)
void RDDeleteFeedLog(QString keyname)
{
QString sql;
RDSqlQuery *q;
keyname.replace(" ","_");
sql=QString().sprintf("drop table %s_FLG",(const char *)keyname);
q=new RDSqlQuery(sql);
delete q;
rda->dropTable(keyname+"_FLG");
}