mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-08-08 08:01:27 +02:00
2020-04-16 Fred Gleason <fredg@paravelsystems.com>
* Fixed a regression in 'RDEventLine' that caused the 'Append Log' ['AL'] RML to append a copy of the currently loaded log instead of the one specified in the RML command. Signed-off-by: Fred Gleason <fredg@paraelsystems.com>
This commit is contained in:
parent
095ae09138
commit
118c019edc
@ -19789,3 +19789,7 @@
|
|||||||
2020-04-14 Fred Gleason <fredg@paravelsystems.com>
|
2020-04-14 Fred Gleason <fredg@paravelsystems.com>
|
||||||
* Added debug syslog messages to the 'Software Authority' driver
|
* Added debug syslog messages to the 'Software Authority' driver
|
||||||
in ripcd(8).
|
in ripcd(8).
|
||||||
|
2020-04-16 Fred Gleason <fredg@paravelsystems.com>
|
||||||
|
* Fixed a regression in 'RDEventLine' that caused the
|
||||||
|
'Append Log' ['AL'] RML to append a copy of the currently loaded
|
||||||
|
log instead of the one specified in the RML command.
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
//
|
//
|
||||||
// Abstract Rivendell Log Events.
|
// Abstract Rivendell Log Events.
|
||||||
//
|
//
|
||||||
// (C) Copyright 2002-2014,2016-2018 Fred Gleason <fredg@paravelsystems.com>
|
// (C) Copyright 2002-2020 Fred Gleason <fredg@paravelsystems.com>
|
||||||
//
|
//
|
||||||
// This program is free software; you can redistribute it and/or modify
|
// 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
|
// it under the terms of the GNU General Public License version 2 as
|
||||||
@ -117,7 +117,7 @@ int RDLogEvent::load(bool track_ptrs)
|
|||||||
log_max_id=log->nextId();
|
log_max_id=log->nextId();
|
||||||
delete log;
|
delete log;
|
||||||
|
|
||||||
LoadLines(0,track_ptrs);
|
LoadLines(log_name,0,track_ptrs);
|
||||||
|
|
||||||
return log_line.size();
|
return log_line.size();
|
||||||
}
|
}
|
||||||
@ -179,7 +179,7 @@ void RDLogEvent::save(RDConfig *config,bool update_tracks,int line)
|
|||||||
|
|
||||||
int RDLogEvent::append(const QString &logname,bool track_ptrs)
|
int RDLogEvent::append(const QString &logname,bool track_ptrs)
|
||||||
{
|
{
|
||||||
return LoadLines(log_max_id,track_ptrs);
|
return LoadLines(logname,log_max_id,track_ptrs);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -794,7 +794,7 @@ QString RDLogEvent::xml() const
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
int RDLogEvent::LoadLines(int id_offset,bool track_ptrs)
|
int RDLogEvent::LoadLines(const QString &logname,int id_offset,bool track_ptrs)
|
||||||
{
|
{
|
||||||
RDLogLine line;
|
RDLogLine line;
|
||||||
RDSqlQuery *q1;
|
RDSqlQuery *q1;
|
||||||
@ -887,7 +887,7 @@ int RDLogEvent::LoadLines(int id_offset,bool track_ptrs)
|
|||||||
"CART.NOTES "+ // 65
|
"CART.NOTES "+ // 65
|
||||||
"from LOG_LINES left join CART "+
|
"from LOG_LINES left join CART "+
|
||||||
"on LOG_LINES.CART_NUMBER=CART.NUMBER where "+
|
"on LOG_LINES.CART_NUMBER=CART.NUMBER where "+
|
||||||
"LOG_LINES.LOG_NAME=\""+RDEscapeString(log_name)+"\" "+
|
"LOG_LINES.LOG_NAME=\""+RDEscapeString(logname)+"\" "+
|
||||||
"order by COUNT";
|
"order by COUNT";
|
||||||
q=new RDSqlQuery(sql);
|
q=new RDSqlQuery(sql);
|
||||||
if(q->size()<=0) {
|
if(q->size()<=0) {
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
//
|
//
|
||||||
// Abstract Rivendell Log Events
|
// Abstract Rivendell Log Events
|
||||||
//
|
//
|
||||||
// (C) Copyright 2002-2003,2016 Fred Gleason <fredg@paravelsystems.com>
|
// (C) Copyright 2002-2020 Fred Gleason <fredg@paravelsystems.com>
|
||||||
//
|
//
|
||||||
// This program is free software; you can redistribute it and/or modify
|
// 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
|
// it under the terms of the GNU General Public License version 2 as
|
||||||
@ -72,8 +72,7 @@ class RDLogEvent
|
|||||||
QString xml() const;
|
QString xml() const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
// int LoadLines(const QString &log_table,int id_offset,bool track_ptrs);
|
int LoadLines(const QString &logname,int id_offset,bool track_ptrs);
|
||||||
int LoadLines(int id_offset,bool track_ptrs);
|
|
||||||
void SaveLine(int line);
|
void SaveLine(int line);
|
||||||
void InsertLines(QString values);
|
void InsertLines(QString values);
|
||||||
void InsertLineValues(QString *query, int line);
|
void InsertLineValues(QString *query, int line);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user