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

* Fixed a bug in rdlogmanager(1) that threw a SQL error when
	generating a log.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason 2021-08-04 09:54:37 -04:00
parent 381d15ac8f
commit 52d58fbe29
2 changed files with 4 additions and 1 deletions

View File

@ -22161,3 +22161,6 @@
2021-08-03 Fred Gleason <fredg@paravelsystems.com>
* Changed the 'MYSQL_PKG' dependency for Debian and Raspbian from
'mysql-client' to 'mariadb-client'.
2021-08-04 Fred Gleason <fredg@paravelsystems.com>
* Fixed a bug in rdlogmanager(1) that threw a SQL error when
generating a log.

View File

@ -445,7 +445,7 @@ bool RDEventLine::generateLog(QString logname,const QString &svcname,
delete q;
sql=QString("select `LINK_ID` from `LOG_LINES` where ")+
"`LOG_NAME`='"+RDEscapeString(logname)+"` && "+
"`LOG_NAME`='"+RDEscapeString(logname)+"' && "+
"`LINK_ID`>=0 "+
"order by `LINK_ID` desc";
q=new RDSqlQuery(sql);