2018-08-03 Fred Gleason <fredg@paravelsystems.com>

* Fixed a regression in 'RDCart' that threw a SQL error.
This commit is contained in:
Fred Gleason
2018-08-03 14:22:43 -04:00
parent fac249d672
commit 76b4c866eb
2 changed files with 4 additions and 2 deletions

View File

@@ -17316,3 +17316,5 @@
UTF-8 strings.
2018-08-03 Fred Gleason <fredg@paravelsystems.com>
* Fixed a regression in 'RDAudioExport' that caused a segfault.
2018-08-03 Fred Gleason <fredg@paravelsystems.com>
* Fixed a regression in 'RDCart' that threw a SQL error.

View File

@@ -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);