DBBrowserDB: Fix bug in updateRecord()

Fix a bug in the updateRecord() method that made it impossible to update
INT columns.
This commit is contained in:
Martin Kleusberg
2013-03-17 18:35:08 +01:00
parent 066356e5eb
commit 725a14c21d

View File

@@ -430,7 +430,7 @@ bool DBBrowserDB::updateRecord(int wrow, int wcol, const QByteArray& wtext)
qCritical() << "updateRecord: " << lastErrorMessage;
return false;
}
if(sqlite3_bind_blob(stmt, 1, wtext.constData(), wtext.length(), SQLITE_STATIC) != SQLITE_OK)
if(sqlite3_bind_text(stmt, 1, wtext.constData(), wtext.length(), SQLITE_STATIC) != SQLITE_OK)
{
lastErrorMessage = sqlite3_errmsg(_db);
qCritical() << "updateRecord: " << lastErrorMessage;