mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-05-19 06:32:34 +02:00
2021-04-05 Fred Gleason <fredg@paravelsystems.com>
* Cleaned up compilation warnings in rddbmgr(8). * Rebased rddbmgr(8) to use 'QCoreApplication' rather than 'QApplication'. Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
parent
c6f5d47987
commit
460509efaf
@ -21369,3 +21369,7 @@
|
||||
* Added a workaround to 'RDCart::updateLength()' to prevent invalid
|
||||
data values from being written to the 'CART.MINIMUM_TALK_LENGTH'
|
||||
field.
|
||||
2021-04-05 Fred Gleason <fredg@paravelsystems.com>
|
||||
* Cleaned up compilation warnings in rddbmgr(8).
|
||||
* Rebased rddbmgr(8) to use 'QCoreApplication' rather than
|
||||
'QApplication'.
|
||||
|
@ -2,7 +2,7 @@
|
||||
//
|
||||
// Rivendell database management utility
|
||||
//
|
||||
// (C) Copyright 2018 Fred Gleason <fredg@paravelsystems.com>
|
||||
// (C) Copyright 2018-2021 Fred Gleason <fredg@paravelsystems.com>
|
||||
//
|
||||
// This program is free software; you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License version 2 as
|
||||
@ -23,11 +23,11 @@
|
||||
#include <unistd.h>
|
||||
#include <sys/types.h>
|
||||
|
||||
#include <qapplication.h>
|
||||
#include <qfileinfo.h>
|
||||
#include <qsqldatabase.h>
|
||||
#include <qsqlerror.h>
|
||||
#include <qstringlist.h>
|
||||
#include <QCoreApplication>
|
||||
#include <QFileInfo>
|
||||
#include <QSqlDatabase>
|
||||
#include <QSqlError>
|
||||
#include <QStringList>
|
||||
|
||||
#include <dbversion.h>
|
||||
#include <rdcmd_switch.h>
|
||||
@ -469,7 +469,7 @@ bool MainObject::DropIndex(const QString &tbl_name,const QString &idx_name,
|
||||
|
||||
int main(int argc,char *argv[])
|
||||
{
|
||||
QApplication a(argc,argv,false);
|
||||
QCoreApplication a(argc,argv);
|
||||
|
||||
new MainObject();
|
||||
return a.exec();
|
||||
|
@ -2,7 +2,7 @@
|
||||
//
|
||||
// Rivendell database management utility
|
||||
//
|
||||
// (C) Copyright 2018-2020 Fred Gleason <fredg@paravelsystems.com>
|
||||
// (C) Copyright 2018-2021 Fred Gleason <fredg@paravelsystems.com>
|
||||
//
|
||||
// This program is free software; you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License version 2 as
|
||||
@ -21,7 +21,7 @@
|
||||
#ifndef RDDBMGR_H
|
||||
#define RDDBMGR_H
|
||||
|
||||
#include <qobject.h>
|
||||
#include <QObject>
|
||||
|
||||
#include <rdconfig.h>
|
||||
#include <rdfeed.h>
|
||||
|
@ -371,7 +371,7 @@ bool MainObject::RevertSchema(int cur_schema,int set_schema,QString *err_msg)
|
||||
}
|
||||
else {
|
||||
sql=QString("update PODCASTS set ")+
|
||||
QString().sprintf("SHELF_LIFE=%d where ",
|
||||
QString().sprintf("SHELF_LIFE=%lld where ",
|
||||
q->value(1).toDateTime().
|
||||
daysTo(q->value(2).toDateTime()))+
|
||||
QString().sprintf("ID=%u",q->value(0).toUInt());
|
||||
|
Loading…
x
Reference in New Issue
Block a user