Skip to content

Commit

Permalink
Fix boolean conversion issue with new MySQL 8.
Browse files Browse the repository at this point in the history
Care for Custom Priorities.
  • Loading branch information
Bill Meek committed Nov 1, 2021
1 parent f56f086 commit 8646ad3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mythtv/programs/mythbackend/scheduler.cpp
Expand Up @@ -4434,8 +4434,8 @@ void Scheduler::AddNewRecords(void)
QString sclause = result.value(1).toString();
sclause.remove(RecordingInfo::kReLeadingAnd);
sclause.remove(';');
pwrpri += QString(" + (%1) * %2").arg(sclause)
.arg(result.value(0).toInt());
pwrpri += QString(" + IF(%1, 1, 0) * %2")
.arg(sclause).arg(result.value(0).toInt());
}
}
pwrpri += QString(" AS powerpriority ");
Expand Down

0 comments on commit 8646ad3

Please sign in to comment.