mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-05-22 07:39:35 +02:00
Fixed a conflict in 'ChangeLog'
Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
commit
ee8d34d094
@ -22636,3 +22636,10 @@
|
||||
parts of the URL provided to the 'url' parameter.
|
||||
2021-12-03 Fred Gleason <fredg@paravelsystems.com>
|
||||
* Added a 'ListCart()' method to the 'rivwebpyapi' API.
|
||||
2021-12-03 Fred Gleason <fredg@paravelsystems.com>
|
||||
* Fixed a regression in 'RDCart::xml()' that caused a SQL error
|
||||
to be generated.
|
||||
2021-12-03 Fred Gleason <fredg@paravelsystems.com>
|
||||
* Fixed a SQL escaping bug in 'lib/export_resultsrecon.cpp'.
|
||||
* Fixed a SQL escaping bug in 'lib/rdlibrarymodel.cpp'.
|
||||
* Fixed a SQL escaping bug in 'rdlibrary/rdlibrary.cpp'.
|
||||
|
@ -54,7 +54,7 @@ bool RDReport::ExportResultsReport(const QString &filename,
|
||||
"`ELR_LINES`.`ARTIST`,"+ // 06
|
||||
"`ELR_LINES`.`EXT_START_TIME` "+ // 07
|
||||
"from `ELR_LINES` left join `CART` "+
|
||||
"on `ELR_LINES`.`CART_NUMBER`=`CART.NUMBER` where "+
|
||||
"on `ELR_LINES`.`CART_NUMBER`=`CART`.`NUMBER` where "+
|
||||
"`SERVICE_NAME`='"+RDEscapeString(mixtable)+"' "+
|
||||
"order by `EVENT_DATETIME`";
|
||||
q=new RDSqlQuery(sql);
|
||||
|
@ -1029,9 +1029,10 @@ QString RDCart::xml(bool include_cuts,bool absolute,
|
||||
RDSettings *settings,int cutnum) const
|
||||
{
|
||||
QString sql=RDCart::xmlSql(include_cuts)+
|
||||
QString::asprintf(" where (`CART.NUMBER`=%u)",cart_number);
|
||||
QString::asprintf(" where (`CART`.`NUMBER`=%u)",cart_number);
|
||||
if(cutnum>=0) {
|
||||
sql+=QString("&&(`CUT_NAME`=\"")+RDCut::cutName(cart_number,cutnum)+"\")";
|
||||
sql+=QString("&&(`CUTS`.`CUT_NAME`=\"")+
|
||||
RDCut::cutName(cart_number,cutnum)+"\")";
|
||||
}
|
||||
RDSqlQuery *q=new RDSqlQuery(sql);
|
||||
QString xml=RDCart::xml(q,include_cuts,absolute,settings);
|
||||
|
@ -437,7 +437,7 @@ QModelIndex RDLibraryModel::addCart(unsigned cartnum)
|
||||
|
||||
QString sql=sqlFields()+
|
||||
"where "+
|
||||
QString::asprintf("CART.NUMBER=%u",cartnum);
|
||||
QString::asprintf("`CART`.`NUMBER`=%u",cartnum);
|
||||
RDSqlQuery *q=new RDSqlQuery(sql);
|
||||
if(q->first()) {
|
||||
updateRow(offset,q);
|
||||
|
@ -691,7 +691,7 @@ void MainWidget::notificationReceivedData(RDNotification *notify)
|
||||
unsigned cartnum=notify->id().toUInt();
|
||||
switch(notify->action()) {
|
||||
case RDNotification::AddAction:
|
||||
and_fields.push_back(QString::asprintf("CART.NUMBER=%u",cartnum));
|
||||
and_fields.push_back(QString::asprintf("`CART`.`NUMBER`=%u",cartnum));
|
||||
sql=QString("select ")+
|
||||
"`CART`.`NUMBER` "+ // 00
|
||||
"from `CART` "+
|
||||
|
Loading…
x
Reference in New Issue
Block a user