2017-08-16 Fred Gleason <fredg@paravelsystems.com>

* Fixed a bug in 'lib/rdlog.cpp' that caused incorrect results when
	calculating the total number of voice tracks in a log.
This commit is contained in:
Fred Gleason
2017-08-16 11:07:24 -04:00
parent 98e9c89dec
commit 959761b8ed
2 changed files with 7 additions and 2 deletions

View File

@@ -15929,3 +15929,6 @@
'rlm_filewrite' RLM from 256 to 8192 characters.
2017-08-07 Fred Gleason <fredg@paravelsystems.com>
* Incremented the package version to 2.16.0int06_rfa02.
2017-08-16 Fred Gleason <fredg@paravelsystems.com>
* Fixed a bug in 'lib/rdlog.cpp' that caused incorrect results when
calculating the total number of voice tracks in a log.

View File

@@ -394,8 +394,10 @@ void RDLog::updateTracks()
unsigned scheduled=0;
unsigned completed=0;
sql=QString().sprintf("select NUMBER from CART where OWNER=\"%s\"",
(const char *)RDEscapeString(log_name));
sql=QString("select `")+RDLog::tableName(log_name)+"`.ID from "+
"`"+RDLog::tableName(log_name)+"` left join CART "+
"on `"+RDLog::tableName(log_name)+"`.CART_NUMBER=CART.NUMBER where "+
"CART.OWNER is not null";
q=new RDSqlQuery(sql);
completed=q->size();
delete q;