2021-04-17 Fred Gleason <fredg@paravelsystems.com>

* Escaped all SQL identifiers in 'lib/'.
	* Replaced " with ' delimiters in all SQL literal strings in 'lib/'.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason
2021-04-17 19:47:05 -04:00
parent 1b7dd5cd7d
commit 0fd02861f9
104 changed files with 4807 additions and 5120 deletions

View File

@@ -74,15 +74,15 @@ bool RDReport::ExportSoundEx(const QString &filename,const QDate &startdate,
// Roll Up Records
//
sql=QString("select ")+
"CART_NUMBER,"+ // 00
"ARTIST,"+ // 01
"TITLE,"+ // 02
"ISRC,"+ // 03
"ALBUM,"+ // 04
"LABEL "+ // 05
"from ELR_LINES where "+
"SERVICE_NAME=\""+RDEscapeString(mixtable)+"\" "+
"order by CART_NUMBER";
"`CART_NUMBER`,"+ // 00
"`ARTIST`,"+ // 01
"`TITLE`,"+ // 02
"`ISRC`,"+ // 03
"`ALBUM`,"+ // 04
"`LABEL` "+ // 05
"from `ELR_LINES` where "+
"`SERVICE_NAME`='"+RDEscapeString(mixtable)+"' "+
"order by `CART_NUMBER`";
q=new RDSqlQuery(sql);
while(q->next()) {
if(q->value(0).toUInt()==cartnum) {