mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-10-17 16:11:12 +02:00
2018-05-31 Fred Gleason <fredg@paravelsystems.com>
* Refactored table drops to use 'RDApplication::dropTable()'.
This commit is contained in:
@@ -512,15 +512,10 @@ void MainWidget::quitMainWidget()
|
||||
|
||||
void MainWidget::ClearTables()
|
||||
{
|
||||
RDSqlQuery *q1;
|
||||
|
||||
QString sql="show tables";
|
||||
RDSqlQuery *q=new RDSqlQuery(sql);
|
||||
while(q->next()) {
|
||||
sql=QString().sprintf("drop table %s",
|
||||
(const char *)q->value(0).toString());
|
||||
q1=new RDSqlQuery(sql);
|
||||
delete q1;
|
||||
rda->dropTable(q->value(0).toString());
|
||||
}
|
||||
delete q;
|
||||
}
|
||||
|
Reference in New Issue
Block a user