2019-04-04 Fred Gleason <fredg@paravelsystems.com>

* Fixed a bug in rddbmgr(8) that could cause database corruption
	when altering a table's charset/collation.
This commit is contained in:
Fred Gleason
2019-04-04 14:06:28 -04:00
parent b88565a115
commit 7bfa5c12d9
5 changed files with 44 additions and 16 deletions

View File

@@ -88,7 +88,8 @@ bool MainObject::ModifyCharset(const QString &charset,
QStringList f0=q->value(1).toString().split("_");
QString prev_charset=f0.at(0);
if(q->value(1).toString().toLower()!=collation) {
RewriteTable(q->value(0).toString(),prev_charset,charset,collation);
RewriteTable(q->value(0).toString(),
prev_charset,q->value(1).toString(),charset,collation);
}
}
delete q;