diff --git a/ChangeLog b/ChangeLog index 4a028eb6..d6cc09da 100644 --- a/ChangeLog +++ b/ChangeLog @@ -24350,3 +24350,7 @@ 2023-08-17 Fred Gleason * Fixed a bug in rdlibrary(1) where a SQL call was not properly escaped. +2023-08-20 Fred Gleason + * Fixed a bug in rdlibrary(1) that caused it to emit a SQL error when + processing notifications for cart object with one or more Scheduler + Codes selected. diff --git a/rdlibrary/rdlibrary.cpp b/rdlibrary/rdlibrary.cpp index d8578955..9b536640 100644 --- a/rdlibrary/rdlibrary.cpp +++ b/rdlibrary/rdlibrary.cpp @@ -702,6 +702,8 @@ void MainWidget::notificationReceivedData(RDNotification *notify) "from `CART` "+ "left join `GROUPS` on `CART`.`GROUP_NAME`=`GROUPS`.`NAME` "+ "left join `CUTS` on `CART`.`NUMBER`=`CUTS`.`CART_NUMBER` "+ + "left join `CART_SCHED_CODES` "+ + "on `CART`.`NUMBER`=`CART_SCHED_CODES`.`CART_NUMBER` "+ lib_cart_filter->filterSql(and_fields); q=new RDSqlQuery(sql); if(q->first()) {