2017-12-27 Fred Gleason <fredg@paravelsystems.com>

* Fixed a bug that broke generation of the 'RULES' table when creating
	a new clock in rdlogmanager(1).
This commit is contained in:
Fred Gleason
2017-12-27 18:40:57 -05:00
parent 345ed93a26
commit 8ee03d9fd6
3 changed files with 11 additions and 5 deletions

View File

@@ -28,9 +28,11 @@ SchedRulesList::SchedRulesList(QString clockname,RDConfig *config)
QString sql;
RDSqlQuery *q;
RDSqlQuery *q1;
QString clkname=clockname;
clkname.replace(" ","_");
sql=QString("create table if not exists `")+
RDClock::tableName(clockname)+"_RULES` ("+
clkname+"_RULES` ("+
"CODE varchar(10) not null primary key,"+
"MAX_ROW int unsigned,"+
"MIN_WAIT int unsigned,"+