diff --git a/ChangeLog b/ChangeLog index 95968c7d..15954be9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -17316,3 +17316,5 @@ UTF-8 strings. 2018-08-03 Fred Gleason * Fixed a regression in 'RDAudioExport' that caused a segfault. +2018-08-03 Fred Gleason + * Fixed a regression in 'RDCart' that threw a SQL error. diff --git a/lib/rdcart.cpp b/lib/rdcart.cpp index 104ad858..98ee8a68 100644 --- a/lib/rdcart.cpp +++ b/lib/rdcart.cpp @@ -1141,14 +1141,14 @@ void RDCart::updateLength(bool enforce_length,unsigned length) } else { sql+=QString("START_DATETIME=")+ - RDCheckDateTime(start_datetime,"yyyy-MM-dd hh:mm:ss"); + RDCheckDateTime(start_datetime,"yyyy-MM-dd hh:mm:ss")+","; } if(end_datetime.isNull()||(!dates_valid)) { sql+="END_DATETIME=NULL,"; } else { sql+=QString("END_DATETIME=")+ - RDCheckDateTime(end_datetime,"yyyy-MM-dd hh:mm:ss"); + RDCheckDateTime(end_datetime,"yyyy-MM-dd hh:mm:ss")+","; } sql+=QString().sprintf("VALIDITY=%u where NUMBER=%u", cart_validity,cart_number);