2018-06-01 Fred Gleason <fredg@paravelsystems.com>

* Stubbed out rddbmgr(8).
	* Implemented the '--create' command in rddbmgr(8).
	* Fixed a bug in 'RDStation::create()' that generated corrupt records
	in the 'AUDIO_INPUT' and 'AUDIO_OUTPUTS' tables when creating a
	new host with no exemplar.
This commit is contained in:
Fred Gleason
2018-06-01 23:23:58 +00:00
parent fec324abd8
commit 7133d0f388
16 changed files with 3191 additions and 3 deletions

View File

@@ -587,9 +587,14 @@ void RDConfig::load()
profile->stringValue("mySQL","Charset",DEFAULT_MYSQL_CHARSET);
conf_mysql_collation=
profile->stringValue("mySQL","Collation",DEFAULT_MYSQL_COLLATION);
/*
conf_create_table_postfix=QString(" engine ")+conf_mysql_engine+" "+
"character set "+conf_mysql_charset+" "+
"collate "+conf_mysql_collation;
*/
conf_create_table_postfix=
RDConfig::createTablePostfix(conf_mysql_engine,conf_mysql_charset,
conf_mysql_collation);
facility=profile->stringValue("Logs","Facility",DEFAULT_LOG_FACILITY).lower();
if(facility=="syslog") {
@@ -759,3 +764,12 @@ QString RDConfig::userAgent(const QString &modname)
}
return QString("Mozilla/5.0 rivendell/")+VERSION+" ("+modname+")";
}
QString RDConfig::createTablePostfix(const QString &engine,
const QString &charset,
const QString &collation)
{
return QString(" engine ")+engine+" "+"character set "+charset+" "+
"collate "+collation;
}