From 4bf728f7906e7c5fd5ae5bfc5a0a4b26804ce97e Mon Sep 17 00:00:00 2001 From: Philipp Spitzer Date: Tue, 6 Sep 2011 19:14:21 +0000 Subject: [PATCH] Removed one comment and fixed typos. --- src/orm/ormrecord.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/orm/ormrecord.h b/src/orm/ormrecord.h index 4f5828d..85d32c2 100644 --- a/src/orm/ormrecord.h +++ b/src/orm/ormrecord.h @@ -93,8 +93,8 @@ T OrmRecord::hydrate(const QSqlRecord& record) } // updates specified column 'col' -// if the value is not specified as an argument, -// it's taken from the reford itself +// if the value is not specified as an argument, +// it's taken from the record itself // see also: setValue() method for more details template void OrmRecord::update(QString col, QVariant value) @@ -106,7 +106,6 @@ void OrmRecord::update(QString col, QVariant value) else // take 'col' value from the record; see setValue() query.bindValue(":col", convertToDb(this->value(col), this->value(col).type())); query.bindValue(":id", this->value("id")); - //query.bindValue(":id", convertToDb(value("id"), QVariant::Int)); query.exec(); } -- 2.39.5