2020-03-09 Fred Gleason <fredg@paravelsystems.com>

* Fixed a bug in rddbmgr(8) that threw a SQL error when attempting
	to modify a DB containing tables set to use character set UTF-8
	to schema 297.
This commit is contained in:
Fred Gleason
2020-03-09 17:26:42 -04:00
parent 5eec2975d1
commit 7cbacda0e2
4 changed files with 101 additions and 24 deletions

View File

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