2019-04-29 Fred Gleason <fredg@paravelsystems.com>

* Added code to normalize the case of log names in
	'RDLog::RDLog()'.
This commit is contained in:
Fred Gleason
2019-04-29 16:29:50 -04:00
parent 44bca5bc35
commit c170dc3d0a
3 changed files with 17 additions and 1 deletions

View File

@@ -32,6 +32,17 @@
RDLog::RDLog(const QString &name)
{
log_name=name;
//
// Normalize case
//
QString sql=QString("select NAME from LOGS where ")+
"NAME=\""+RDEscapeString(name)+"\"";
RDSqlQuery *q=new RDSqlQuery(sql);
if(q->first()) {
log_name=q->value(0).toString();
}
delete q;
}