Commit 7f5e3012 authored by Jasem Mutlaq's avatar Jasem Mutlaq

Do not set name to null since it cannot be set to NULL

parent 2e62491b
......@@ -1158,7 +1158,7 @@ void KSUserDB::SaveProfile(ProfileInfo *pi)
QSqlQuery query(userdb_);
// Clear data
if (!query.exec(QString("UPDATE profile SET name=null,host=null,port=null,city=null,province=null,country=null WHERE id=%1").arg(pi->id)))
if (!query.exec(QString("UPDATE profile SET host=null,port=null,city=null,province=null,country=null WHERE id=%1").arg(pi->id)))
qDebug() << query.lastQuery() << query.lastError().text();
// Update Name
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment