mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-11-29 16:50:13 +01:00
2021-08-15 Fred Gleason <fredg@paravelsystems.com>
* Fixed a regression in rdadmin(1) that threw a SQL error when attempting to create a new Replicator entry. Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
@@ -22281,3 +22281,6 @@
|
|||||||
creating a new Service entry.
|
creating a new Service entry.
|
||||||
* Fixed a bug in rdadmin(1) that could cause a segfault when
|
* Fixed a bug in rdadmin(1) that could cause a segfault when
|
||||||
creating a new Schedule Code entry.
|
creating a new Schedule Code entry.
|
||||||
|
2021-08-15 Fred Gleason <fredg@paravelsystems.com>
|
||||||
|
* Fixed a regression in rdadmin(1) that threw a SQL error when
|
||||||
|
attempting to create a new Replicator entry.
|
||||||
|
|||||||
@@ -242,7 +242,7 @@ void RDReplicatorListModel::updateRowLine(int line)
|
|||||||
if(line<d_texts.size()) {
|
if(line<d_texts.size()) {
|
||||||
QString sql=sqlFields()+
|
QString sql=sqlFields()+
|
||||||
"where `REPLICATORS`.`NAME`='"+
|
"where `REPLICATORS`.`NAME`='"+
|
||||||
RDEscapeString(d_texts.at(line).at(line).toString())+"'";
|
RDEscapeString(d_texts.at(line).at(0).toString())+"'";
|
||||||
RDSqlQuery *q=new RDSqlQuery(sql);
|
RDSqlQuery *q=new RDSqlQuery(sql);
|
||||||
if(q->first()) {
|
if(q->first()) {
|
||||||
updateRow(line,q);
|
updateRow(line,q);
|
||||||
|
|||||||
@@ -107,7 +107,8 @@ void AddReplicator::okData()
|
|||||||
}
|
}
|
||||||
|
|
||||||
sql=QString("insert into `REPLICATORS` set ")+
|
sql=QString("insert into `REPLICATORS` set ")+
|
||||||
"`NAME`='"+RDEscapeString(repl_name_edit->text())+"'";
|
"`NAME`='"+RDEscapeString(repl_name_edit->text())+"',"+
|
||||||
|
QString().sprintf("`TYPE_ID`=%u",RDReplicator::TypeCitadelXds);
|
||||||
q=new RDSqlQuery(sql);
|
q=new RDSqlQuery(sql);
|
||||||
if(!q->isActive()) {
|
if(!q->isActive()) {
|
||||||
QMessageBox::warning(this,tr("Replicator Exists"),tr("A replicator with that name already exists!"));
|
QMessageBox::warning(this,tr("Replicator Exists"),tr("A replicator with that name already exists!"));
|
||||||
|
|||||||
Reference in New Issue
Block a user