mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-11-29 16:50:13 +01:00
2018-08-03 Fred Gleason <fredg@paravelsystems.com>
* Fixed a regression in 'RDCart' that threw a SQL error.
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user