mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2026-01-12 15:45:59 +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:
@@ -60,8 +60,8 @@ AddRecording::AddRecording(QString *filter,QWidget *parent)
|
||||
button->setFont(buttonFont());
|
||||
button->setText(tr("Recording"));
|
||||
button->setDisabled(true);
|
||||
QString sql=QString("select CHANNEL from DECKS \
|
||||
where (CARD_NUMBER>=0)&&(CHANNEL>0)&&(CHANNEL<=9)");
|
||||
QString sql=QString("select `CHANNEL` from `DECKS` where ")+
|
||||
"(`CARD_NUMBER`>=0)&&(`CHANNEL`>0)&&(`CHANNEL`<=9)";
|
||||
RDSqlQuery *q=new RDSqlQuery(sql);
|
||||
if(q->first()) {
|
||||
button->setEnabled(true);
|
||||
@@ -77,8 +77,8 @@ AddRecording::AddRecording(QString *filter,QWidget *parent)
|
||||
button->setFont(buttonFont());
|
||||
button->setText(tr("Playout"));
|
||||
button->setDisabled(true);
|
||||
sql=QString("select CHANNEL from DECKS where (CARD_NUMBER>=0)&&")+
|
||||
"(PORT_NUMBER>=0)&&(CHANNEL>128)&&(CHANNEL<=137)";
|
||||
sql=QString("select `CHANNEL` from `DECKS` where (`CARD`_NUMBER`>=0)&&")+
|
||||
"(`PORT_NUMBER`>=0)&&(`CHANNEL`>128)&&(`CHANNEL`<=137)";
|
||||
q=new RDSqlQuery(sql);
|
||||
if(q->first()) {
|
||||
button->setEnabled(true);
|
||||
|
||||
Reference in New Issue
Block a user