SVN commit 441791 by ruurd: Fix insert query and binding M +2 -2 ledgerdbhelper.cpp --- trunk/playground/office/pekunia/pekunia/model/ledgerdbhelper.cpp #441790:441791 @@ -163,9 +163,9 @@ QSqlQuery dq = Database::getInstance().prepare ( "INSERT INTO ledger \ - VALUES (:admin_ident, :ident, :name, :description, :ledgertype_code)" + VALUES (:admin_ident, :ident, :account, :description, :ledgertype_code)" ); - dq.bindValue(";admin_ident", theLedger->getAdmin()->getIdent()); + dq.bindValue(":admin_ident", theLedger->getAdmin()->getIdent()); dq.bindValue(":ident", theLedger->getIdent()); dq.bindValue(":account", theLedger->getAccount().c_str()); dq.bindValue(":description", theLedger->getDescription().c_str());