mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-10-16 23:51:20 +02:00
2022-12-21 Fred Gleason <fredg@paravelsystems.com>
* Added the database server hostname to the summary output of rddbmgr(8). Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
@@ -45,14 +45,16 @@ bool MainObject::PrintStatus(QString *err_msg) const
|
||||
"from `SYSTEM`";
|
||||
q=new RDSqlQuery(sql);
|
||||
if(q->first()) {
|
||||
printf("Rivendell database, schema %d [%s] (%s)\n",schema,
|
||||
printf("Rivendell database, schema %d [%s] (%s @ %s)\n",schema,
|
||||
GetSchemaVersion(schema).toUtf8().constData(),
|
||||
q->value(0).toString().toUtf8().constData());
|
||||
q->value(0).toString().toUtf8().constData(),
|
||||
db_mysql_hostname.toUtf8().constData());
|
||||
}
|
||||
else {
|
||||
fprintf(stderr,"rddbmgr: WARNING - unable to read Realm value.\n");
|
||||
printf("Rivendell database, schema %d [%s]\n",schema,
|
||||
GetSchemaVersion(schema).toUtf8().constData());
|
||||
printf("Rivendell database, schema %d [%s] (@ %s)\n",schema,
|
||||
GetSchemaVersion(schema).toUtf8().constData(),
|
||||
db_mysql_hostname.toUtf8().constData());
|
||||
}
|
||||
delete q;
|
||||
}
|
||||
|
Reference in New Issue
Block a user