mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-10-16 15:41:13 +02:00
2022-09-29 Fred Gleason <fredg@paravelsystems.com>
* Modified rddbmgr(8) to include the Realm name in its default output. Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
@@ -23412,3 +23412,6 @@
|
||||
package.
|
||||
2022-09-28 Fred Gleason <fredg@paravelsystems.com>
|
||||
* Updated the 'helpers/rdtrans.sh' utility.
|
||||
2022-09-29 Fred Gleason <fredg@paravelsystems.com>
|
||||
* Modified rddbmgr(8) to include the Realm name in its default
|
||||
output.
|
||||
|
@@ -2,7 +2,7 @@
|
||||
//
|
||||
// Print the status of a database.
|
||||
//
|
||||
// (C) Copyright 2018-2021 Fred Gleason <fredg@paravelsystems.com>
|
||||
// (C) Copyright 2018-2022 Fred Gleason <fredg@paravelsystems.com>
|
||||
//
|
||||
// This program is free software; you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License version 2 as
|
||||
@@ -39,9 +39,27 @@ bool MainObject::PrintStatus(QString *err_msg) const
|
||||
printf("not a Rivendell database!\n");
|
||||
return true;
|
||||
}
|
||||
|
||||
printf("Rivendell database, schema %d [%s]\n",schema,
|
||||
GetSchemaVersion(schema).toUtf8().constData());
|
||||
if(schema>=353) {
|
||||
sql=QString("select ")+
|
||||
"`REALM_NAME` "+ // 00
|
||||
"from `SYSTEM`";
|
||||
q=new RDSqlQuery(sql);
|
||||
if(q->first()) {
|
||||
printf("Rivendell database, schema %d [%s] (%s)\n",schema,
|
||||
GetSchemaVersion(schema).toUtf8().constData(),
|
||||
q->value(0).toString().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());
|
||||
}
|
||||
delete q;
|
||||
}
|
||||
else {
|
||||
printf("Rivendell database, schema %d [%s]\n",schema,
|
||||
GetSchemaVersion(schema).toUtf8().constData());
|
||||
}
|
||||
|
||||
*err_msg="ok";
|
||||
return true;
|
||||
|
Reference in New Issue
Block a user