2019-01-09 Fred Gleason <fredg@paravelsystems.com>

* Fixed a bug in rddbmgr(8) that caused DB corruption in multi-byte
	UTF-8 strings when reverting the schema.
This commit is contained in:
Fred Gleason
2019-01-09 13:07:49 -05:00
parent e716cd5022
commit b92943f3e8
2 changed files with 5 additions and 2 deletions

View File

@@ -204,9 +204,9 @@ bool MainObject::RevertSchema(int cur_schema,int set_schema,QString *err_msg)
//
// Revert 297
//
ModifyCharset("latin1","latin1_swedish_ci");
if((cur_schema==297)&&(set_schema<cur_schema)) {
ModifyCharset("latin1","latin1_swedish_ci");
sql=QString("alter table AUDIO_CARDS ")+
"modify column STATION_NAME char(64) not null";
if(!RDSqlQuery::apply(sql,err_msg)) {