mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-10-17 16:11:12 +02:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user