2018-07-17 Fred Gleason <fredg@paravelsystems.com>

* Cleaned up SQL quieries in 'rdlogmanager/' to ensure UTF-8
	compatibility.
This commit is contained in:
Fred Gleason
2018-07-17 22:52:47 +00:00
parent 8259cd9a62
commit cbec82b0d4
18 changed files with 778 additions and 432 deletions

View File

@@ -27,6 +27,7 @@
#include <rdapplication.h>
#include <rddatedialog.h>
#include <rddatedecode.h>
#include <rdescape_string.h>
#include <rdreport.h>
#include "globals.h"
@@ -67,9 +68,9 @@ PickReportDates::PickReportDates(const QString &svcname,QWidget *parent)
label->setGeometry(10,11,60,19);
label->setFont(bold_font);
label->setAlignment(AlignRight|AlignVCenter|ShowPrefix);
sql=QString().sprintf("select REPORT_NAME from REPORT_SERVICES\
where SERVICE_NAME=\"%s\" order by REPORT_NAME",
(const char *)svcname);
sql=QString("select REPORT_NAME from REPORT_SERVICES where ")+
"SERVICE_NAME=\""+RDEscapeString(svcname)+"\" "+
"order by REPORT_NAME";
q=new RDSqlQuery(sql);
while(q->next()) {
edit_report_box->insertItem(q->value(0).toString());