mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-08-02 17:09:28 +02:00
2021-03-08 Fred Gleason <fredg@paravelsystems.com>
* Commented out code to initialize the 'NEXUS_STATIONS' table in rddbmgr(8). * Fixed a bug in 'CheckSchedCodeRules()' in rddbmgr(8) that would throw a SQL error when no schedule codes were defined. Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
parent
548105dbed
commit
de570896f1
@ -21236,3 +21236,8 @@
|
||||
operation of the progress dialog during log generation.
|
||||
2021-03-08 Fred Gleason <fredg@paravelsystems.com>
|
||||
* Fixed a regression in 'lib/rdconfig.cpp' that broke the build.
|
||||
2021-03-08 Fred Gleason <fredg@paravelsystems.com>
|
||||
* Commented out code to initialize the 'NEXUS_STATIONS' table
|
||||
in rddbmgr(8).
|
||||
* Fixed a bug in 'CheckSchedCodeRules()' in rddbmgr(8) that
|
||||
would throw a SQL error when no schedule codes were defined.
|
||||
|
@ -1027,6 +1027,19 @@ void MainObject::CheckSchedCodeRules(bool prompt_user) const
|
||||
QString sql;
|
||||
RDSqlQuery *q;
|
||||
|
||||
//
|
||||
// Check that we have at least one schedule code
|
||||
//
|
||||
sql=QString("select ")+
|
||||
"CODE "+ // 00
|
||||
"from SCHED_CODES";
|
||||
q=new RDSqlQuery(sql);
|
||||
if(!q->first()) {
|
||||
delete q;
|
||||
return;
|
||||
}
|
||||
delete q;
|
||||
|
||||
//
|
||||
// Check for orphaned rules
|
||||
//
|
||||
|
@ -9805,15 +9805,15 @@ bool MainObject::UpdateSchema(int cur_schema,int set_schema,QString *err_msg)
|
||||
return false;
|
||||
}
|
||||
|
||||
q=new RDSqlQuery("select NAME from SERVICES",false);
|
||||
while(q->next()) {
|
||||
sql=QString("insert into NEXUS_STATIONS set ")+
|
||||
"RD_SERVICE=\""+RDEscapeString(q->value(0).toString())+"\"";
|
||||
if(!RDSqlQuery::apply(sql,err_msg)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
delete q;
|
||||
// q=new RDSqlQuery("select NAME from SERVICES",false);
|
||||
// while(q->next()) {
|
||||
// sql=QString("insert into NEXUS_STATIONS set ")+
|
||||
// "RD_SERVICE=\""+RDEscapeString(q->value(0).toString())+"\"";
|
||||
// if(!RDSqlQuery::apply(sql,err_msg)) {
|
||||
// return false;
|
||||
// }
|
||||
// }
|
||||
// delete q;
|
||||
|
||||
sql=QString("insert into IMPORT_TEMPLATES set ")+
|
||||
"NAME='MusicMaster Nexus',"+
|
||||
|
Loading…
x
Reference in New Issue
Block a user