mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-06-02 00:52:34 +02:00
2016-06-10 Fred Gleason <fredg@paravelsystems.com>
* Fixed a bug in 'utils/rdmaint/rdmaint.cpp' that failed to process SQL NULL date values correctly.
This commit is contained in:
parent
815dea346c
commit
6fd3788af7
@ -15225,3 +15225,6 @@
|
|||||||
2016-06-10 Fred Gleason <fredg@paravelsystems.com>
|
2016-06-10 Fred Gleason <fredg@paravelsystems.com>
|
||||||
* Fixed a bug in 'lib/rdlist_logs.cpp' that failed to process
|
* Fixed a bug in 'lib/rdlist_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 'utils/rdmaint/rdmaint.cpp' that failed to process
|
||||||
|
SQL NULL date values correctly.
|
||||||
|
@ -204,9 +204,10 @@ void MainObject::PurgeLogs()
|
|||||||
RDSqlQuery *q;
|
RDSqlQuery *q;
|
||||||
QDateTime dt=QDateTime(QDate::currentDate(),QTime::currentTime());
|
QDateTime dt=QDateTime(QDate::currentDate(),QTime::currentTime());
|
||||||
|
|
||||||
sql=QString().sprintf("select NAME from LOGS where \
|
sql=QString("select NAME from LOGS where ")+
|
||||||
(PURGE_DATE!=\"0000-00-00\")&&(PURGE_DATE<\"%s\")",
|
"(PURGE_DATE!=\"0000-00-00\")&&"+
|
||||||
(const char *)dt.date().toString("yyyy-MM-dd"));
|
"(PURGE_DATE is not null)&&"+
|
||||||
|
"(PURGE_DATE<\""+dt.date().toString("yyyy-MM-dd")+"\")";
|
||||||
q=new RDSqlQuery(sql);
|
q=new RDSqlQuery(sql);
|
||||||
while(q->next()) {
|
while(q->next()) {
|
||||||
maint_config->
|
maint_config->
|
||||||
|
Loading…
x
Reference in New Issue
Block a user