From 42ee5044e2f7fa13f2093528a6073a544f139bc6 Mon Sep 17 00:00:00 2001 From: Fred Gleason Date: Mon, 19 Apr 2021 17:02:43 -0400 Subject: [PATCH] 2021-04-19 Fred Gleason * Fixed regression in 'RDAudioPorts' that caused SQL errors. Signed-off-by: Fred Gleason --- ChangeLog | 2 ++ lib/rdaudio_port.cpp | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 973a701c..4949ff91 100644 --- a/ChangeLog +++ b/ChangeLog @@ -21471,3 +21471,5 @@ * Escaped all SQL identifiers in 'cae/'. * Replaced " with ' delimiters in all SQL literal strings in 'cae/'. +2021-04-19 Fred Gleason + * Fixed regression in 'RDAudioPorts' that caused SQL errors. diff --git a/lib/rdaudio_port.cpp b/lib/rdaudio_port.cpp index 7d590edc..d27e201a 100644 --- a/lib/rdaudio_port.cpp +++ b/lib/rdaudio_port.cpp @@ -44,7 +44,7 @@ RDAudioPort::RDAudioPort(QString station,int card) "`PORT_NUMBER`,"+ // 00 "`LEVEL`,"+ // 01 "`TYPE`,"+ // 02 - "`MODE `"+ // 03 + "`MODE` "+ // 03 "from `AUDIO_INPUTS` where "+ "`STATION_NAME`='"+RDEscapeString(port_station)+"' && "+ QString().sprintf("`CARD_NUMBER`=%d",port_card); @@ -60,7 +60,7 @@ RDAudioPort::RDAudioPort(QString station,int card) sql=QString("select ")+ "`PORT_NUMBER`,"+ // 00 - "`LEVEL `"+ // 01 + "`LEVEL` "+ // 01 "from `AUDIO_OUTPUTS` where "+ "`STATION_NAME`='"+RDEscapeString(port_station)+"' && "+ QString().sprintf("`CARD_NUMBER`=%d",port_card);