mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-10-17 08:01:13 +02:00
2021-04-18 Fred Gleason <fredg@paravelsystems.com>
* Escaped all SQL identifiers in 'rdadmin/'. * Replaced " with ' delimiters in all SQL literal strings in 'rdadmin/'. Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
@@ -171,25 +171,25 @@ void ListReplicators::deleteData()
|
||||
//
|
||||
// Delete Group Assignments
|
||||
//
|
||||
sql=QString("delete from REPLICATOR_MAP where ")+
|
||||
"REPLICATOR_NAME=\""+RDEscapeString(name)+"\"";
|
||||
sql=QString("delete from `REPLICATOR_MAP` where ")+
|
||||
"`REPLICATOR_NAME`='"+RDEscapeString(name)+"'";
|
||||
RDSqlQuery::apply(sql);
|
||||
|
||||
//
|
||||
// Delete State Records
|
||||
//
|
||||
sql=QString("delete from REPL_CART_STATE where ")+
|
||||
"REPLICATOR_NAME=\""+RDEscapeString(name)+"\"";
|
||||
sql=QString("delete from `REPL_CART_STATE` where ")+
|
||||
"`REPLICATOR_NAME`='"+RDEscapeString(name)+"'";
|
||||
RDSqlQuery::apply(sql);
|
||||
sql=QString("delete from REPL_CUT_STATE where ")+
|
||||
"REPLICATOR_NAME=\""+RDEscapeString(name)+"\"";
|
||||
sql=QString("delete from `REPL_CUT_STATE` where ")+
|
||||
"`REPLICATOR_NAME`='"+RDEscapeString(name)+"'";
|
||||
RDSqlQuery::apply(sql);
|
||||
|
||||
//
|
||||
// Delete from Replicator List
|
||||
//
|
||||
sql=QString("delete from REPLICATORS where ")+
|
||||
"NAME=\""+RDEscapeString(name)+"\"";
|
||||
sql=QString("delete from `REPLICATORS` where ")+
|
||||
"`NAME`='"+RDEscapeString(name)+"'";
|
||||
RDSqlQuery::apply(sql);
|
||||
|
||||
list_replicators_model->removeReplicator(name);
|
||||
|
Reference in New Issue
Block a user