mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-10-17 16:11:12 +02:00
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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user