2023-03-11 Fred Gleason <fredg@paravelsystems.com>

* Fixed a bug in rdadmin(1) that threw a SQL error when attempting
	to create a new Switcher/GPIO instance.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason
2023-03-13 12:19:12 -04:00
parent 66b331cab2
commit 66fe9ca835
2 changed files with 7 additions and 1 deletions

View File

@@ -24006,3 +24006,6 @@
2023-03-07 Fred Gleason <fredg@paravelsystems.com>
* Fixed a regression in rdvairplayd(8) that caused a segfault on
startup.
2023-03-11 Fred Gleason <fredg@paravelsystems.com>
* Fixed a bug in rdadmin(1) that threw a SQL error when attempting
to create a new Switcher/GPIO instance.

View File

@@ -2,7 +2,7 @@
//
// Edit a Rivendell Matrix
//
// (C) Copyright 2002-2021 Fred Gleason <fredg@paravelsystems.com>
// (C) Copyright 2002-2023 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
@@ -1538,6 +1538,9 @@ void EditMatrix::AddResources(RDMatrix::VguestType type) const
if(edit_matrix->type()==RDMatrix::LogitekVguest) {
sql+=QString::asprintf("`VGUEST_TYPE`=%d,",type);
}
else {
sql+=QString::asprintf("`VGUEST_TYPE`=%d,",RDMatrix::VguestTypeNone);
}
sql+=QString::asprintf("`NUMBER`=%d",i+1);
RDSqlQuery::apply(sql);
}