mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-10-11 17:13:47 +02:00
2014-08-27 Fred Gleason <fredg@paravelsystems.com>
* Fixed a regression in 'lib/rdcreate_log.cpp' that caused auxiliary table creation to fail.
This commit is contained in:
@@ -38,7 +38,7 @@ void RDCreateLogTable(const QString &name)
|
||||
|
||||
QString RDCreateLogTableSql(QString name)
|
||||
{
|
||||
return QString("create table if not exists `")+RDLog::tableName(name)+"`"+
|
||||
return QString("create table if not exists `")+name+"`"+
|
||||
"(ID INT NOT NULL PRIMARY KEY,"+
|
||||
"COUNT INT NOT NULL,"+
|
||||
"TYPE INT DEFAULT 0,"+
|
||||
@@ -86,7 +86,7 @@ QString RDCreateLogTableSql(QString name)
|
||||
|
||||
QString RDCreateClockTableSql(QString name)
|
||||
{
|
||||
return QString("create table `")+RDClock::tableName(name)+"` ("+
|
||||
return QString("create table `")+name+"` ("+
|
||||
"ID int unsigned auto_increment not null primary key,"+
|
||||
"EVENT_NAME char(64) not null,"+
|
||||
"START_TIME int not null,"+
|
||||
@@ -97,7 +97,7 @@ QString RDCreateClockTableSql(QString name)
|
||||
|
||||
QString RDCreateReconciliationTableSql(QString name)
|
||||
{
|
||||
QString sql=QString("create table `")+RDSvc::svcTableName(name)+"` ("+
|
||||
QString sql=QString("create table `")+name+"` ("+
|
||||
"ID int unsigned auto_increment primary key,"+
|
||||
"LENGTH int,"+
|
||||
"LOG_NAME char(64),"+
|
||||
|
@@ -1326,7 +1326,7 @@ void RDSvc::create(const QString exemplar) const
|
||||
//
|
||||
// Create Service Reconciliation Table
|
||||
//
|
||||
sql=RDCreateReconciliationTableSql(svc_name);
|
||||
sql=RDCreateReconciliationTableSql(RDSvc::svcTableName(svc_name));
|
||||
q=new RDSqlQuery(sql);
|
||||
delete q;
|
||||
}
|
||||
|
Reference in New Issue
Block a user