mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-10-10 16:43:35 +02:00
2016-06-10 Fred Gleason <fredg@paravelsystems.com>
* Fixed a bug in 'lib/rdlist_logs.cpp' that failed to process SQL NULL date values correctly.
This commit is contained in:
@@ -15222,3 +15222,6 @@
|
|||||||
2016-06-10 Fred Gleason <fredg@paravelsystems.com>
|
2016-06-10 Fred Gleason <fredg@paravelsystems.com>
|
||||||
* Fixed a bug in 'rdairplay/list_logs.cpp' that failed to process
|
* Fixed a bug in 'rdairplay/list_logs.cpp' that failed to process
|
||||||
SQL NULL date values correctly.
|
SQL NULL date values correctly.
|
||||||
|
2016-06-10 Fred Gleason <fredg@paravelsystems.com>
|
||||||
|
* Fixed a bug in 'lib/rdlist_logs.cpp' that failed to process
|
||||||
|
SQL NULL date values correctly.
|
||||||
|
@@ -163,12 +163,14 @@ void RDListLogs::RefreshList()
|
|||||||
if(services_list.size()==0) {
|
if(services_list.size()==0) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
sql=QString().sprintf("select NAME,DESCRIPTION,SERVICE from LOGS \
|
sql=QString("select NAME,DESCRIPTION,SERVICE from LOGS ")+
|
||||||
where (TYPE=0)&&(LOG_EXISTS=\"Y\")&&\
|
"where (TYPE=0)&&(LOG_EXISTS=\"Y\")&&"+
|
||||||
((START_DATE<=\"%s\")||(START_DATE=\"0000-00-00\"))&&\
|
"((START_DATE<=\""+current_date.toString("yyyy-MM-dd")+"\")||"+
|
||||||
((END_DATE>=\"%s\")||(END_DATE=\"0000-00-00\"))&&(",
|
"(START_DATE=\"0000-00-00\")||"+
|
||||||
(const char *)current_date.toString("yyyy-MM-dd"),
|
"(START_DATE is null))&&"+
|
||||||
(const char *)current_date.toString("yyyy-MM-dd"));
|
"((END_DATE>=\""+current_date.toString("yyyy-MM-dd")+"\")||"+
|
||||||
|
"(END_DATE=\"0000-00-00\")||"+
|
||||||
|
"(END_DATE is null))&&(";
|
||||||
for ( QStringList::Iterator it = services_list.begin();
|
for ( QStringList::Iterator it = services_list.begin();
|
||||||
it != services_list.end(); ++it ) {
|
it != services_list.end(); ++it ) {
|
||||||
sql+=QString().sprintf("SERVICE=\"%s\"||",
|
sql+=QString().sprintf("SERVICE=\"%s\"||",
|
||||||
|
Reference in New Issue
Block a user