2021-04-19 Fred Gleason <fredg@paravelsystems.com>

* Fixed regression in 'RDAudioPorts' that caused SQL errors.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason 2021-04-19 17:02:43 -04:00
parent 703be90592
commit 42ee5044e2
2 changed files with 4 additions and 2 deletions

View File

@ -21471,3 +21471,5 @@
* Escaped all SQL identifiers in 'cae/'. * Escaped all SQL identifiers in 'cae/'.
* Replaced " with ' delimiters in all SQL literal strings in * Replaced " with ' delimiters in all SQL literal strings in
'cae/'. 'cae/'.
2021-04-19 Fred Gleason <fredg@paravelsystems.com>
* Fixed regression in 'RDAudioPorts' that caused SQL errors.

View File

@ -44,7 +44,7 @@ RDAudioPort::RDAudioPort(QString station,int card)
"`PORT_NUMBER`,"+ // 00 "`PORT_NUMBER`,"+ // 00
"`LEVEL`,"+ // 01 "`LEVEL`,"+ // 01
"`TYPE`,"+ // 02 "`TYPE`,"+ // 02
"`MODE `"+ // 03 "`MODE` "+ // 03
"from `AUDIO_INPUTS` where "+ "from `AUDIO_INPUTS` where "+
"`STATION_NAME`='"+RDEscapeString(port_station)+"' && "+ "`STATION_NAME`='"+RDEscapeString(port_station)+"' && "+
QString().sprintf("`CARD_NUMBER`=%d",port_card); QString().sprintf("`CARD_NUMBER`=%d",port_card);
@ -60,7 +60,7 @@ RDAudioPort::RDAudioPort(QString station,int card)
sql=QString("select ")+ sql=QString("select ")+
"`PORT_NUMBER`,"+ // 00 "`PORT_NUMBER`,"+ // 00
"`LEVEL `"+ // 01 "`LEVEL` "+ // 01
"from `AUDIO_OUTPUTS` where "+ "from `AUDIO_OUTPUTS` where "+
"`STATION_NAME`='"+RDEscapeString(port_station)+"' && "+ "`STATION_NAME`='"+RDEscapeString(port_station)+"' && "+
QString().sprintf("`CARD_NUMBER`=%d",port_card); QString().sprintf("`CARD_NUMBER`=%d",port_card);