mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2026-01-13 16:15:51 +01:00
2021-04-19 Fred Gleason <fredg@paravelsystems.com>
* Escaped all SQL identifiers in 'rdcatch/'. * Replaced " with ' delimiters in all SQL literal strings in 'rdcatch/'. Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
@@ -357,12 +357,12 @@ void EditPlayout::PopulateDecks(QComboBox *box)
|
||||
|
||||
box->clear();
|
||||
QString sql=QString("select ")+
|
||||
"STATION_NAME,"+ // 00
|
||||
"CHANNEL "+ // 01
|
||||
"from DECKS where "+
|
||||
"(CARD_NUMBER!=-1)&&"+
|
||||
"(PORT_NUMBER!=-1)&&"+
|
||||
"(CHANNEL>128) order by STATION_NAME,CHANNEL";
|
||||
"`STATION_NAME`,"+ // 00
|
||||
"`CHANNEL` "+ // 01
|
||||
"from `DECKS` where "+
|
||||
"(`CARD_NUMBER`!=-1)&&"+
|
||||
"(`PORT_NUMBER`!=-1)&&"+
|
||||
"(`CHANNEL`>128) order by `STATION_NAME`,`CHANNEL`";
|
||||
RDSqlQuery *q=new RDSqlQuery(sql);
|
||||
while(q->next()) {
|
||||
box->insertItem(box->count(),q->value(0).toString()+
|
||||
|
||||
Reference in New Issue
Block a user