2018-07-17 Fred Gleason <fredg@paravelsystems.com>

* Fixed a bug in 'RDDeck' that threw a SQL error.
This commit is contained in:
Fred Gleason 2018-07-17 19:06:35 +00:00
parent 291dfc4d06
commit 83511b896f
2 changed files with 3 additions and 1 deletions

View File

@ -17144,3 +17144,5 @@
to be mal-formatted.
* Fixed a bug in rdcatch(1) that caused Record and Playout events
to be saved to the incorrect Location.
2018-07-17 Fred Gleason <fredg@paravelsystems.com>
* Fixed a bug in 'RDDeck' that threw a SQL error.

View File

@ -249,7 +249,7 @@ QString RDDeck::switchOutputName() const
sql=QString("select NAME from OUTPUTS where ")+
"(STATION_NAME=\""+RDEscapeString(switchStation())+"\")&&"+
QString().sprintf("(MATRIX=%d)&&",switchMatrix())+
QString().sprintf("NUMBER=%d)",switchOutput());
QString().sprintf("(NUMBER=%d)",switchOutput());
RDSqlQuery *q=new RDSqlQuery(sql);
if(q->first()) {
output_name=q->value(0).toString();