Commit 68bd8642 authored by Albert Astals Cid's avatar Albert Astals Cid

Fix if to actually have a comparison

Reviewers: cullmann

Reviewed By: cullmann

Subscribers: laysrodrigues, kfunk, kwrite-devel, cullmann

Tags: #kate

Differential Revision: https://phabricator.kde.org/D13522
parent 291b6899
......@@ -341,7 +341,7 @@ void SchemaWidget::generateStatement(QSqlDriver::StatementType statementType)
// set all fields to a value (NULL)
// values are needed to generate update and insert statements
if (statementType == QSqlDriver::UpdateStatement || QSqlDriver::InsertStatement)
if (statementType == QSqlDriver::UpdateStatement || statementType == QSqlDriver::InsertStatement)
for (int i = 0, n = rec.count(); i < n; ++i)
rec.setNull(i);
......
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