2018-05-30 Fred Gleason <fredg@paravelsystems.com>

* Removed drop of the 'RECORDINGS.SAMPRATE' field from schema
	change 285.
	* Cleaned up SQL calls in rdcatchd(8).
	* Cleaned up SQL calls in 'RDStation'.
	* Cleaned up SQL calls in 'RDLibraryConf'.
	* Cleaned up SQL calls in 'RDLogeditConf'.
	* Cleaned up SQL calls in 'RDLogLine'.
	* Cleaned up SQL calls in 'RDSvc'.
	* Cleaned up SQL calls in rivendell_filter(1).
This commit is contained in:
Fred Gleason
2018-05-31 00:09:35 +00:00
parent 37ad8d7094
commit 32b3d1775c
15 changed files with 468 additions and 400 deletions

View File

@@ -59,15 +59,15 @@ bool RDReport::ExportBmiEmr(const QString &filename,const QDate &startdate,
report_error_code=RDReport::ErrorCantOpen;
return false;
}
/*
sql=QString().sprintf("select EVENT_DATETIME,TITLE,ARTIST,COMPOSER,\
LENGTH,ISRC,USAGE_CODE from `%s_SRT` \
order by EVENT_DATETIME",
(const char *)mixtable);
*/
sql=QString("select EVENT_DATETIME,TITLE,ARTIST,COMPOSER,")+
"LENGTH,ISRC,USAGE_CODE from `"+
mixtable+"_SRT` order by EVENT_DATETIME";
sql=QString("select ")+
"EVENT_DATETIME,"+ // 00
"TITLE,"+ // 01
"ARTIST,"+ // 02
"COMPOSER,"+ // 03
"LENGTH,"+ // 04
"ISRC,"+ // 05
"USAGE_CODE "+ // 06
"from `"+mixtable+"_SRT` order by EVENT_DATETIME";
q=new RDSqlQuery(sql);
//