[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    playground/office/pekunia/pekunia/model
From:       Ruurd Pels <ruurd () tiscali ! nl>
Date:       2005-07-31 22:57:23
Message-ID: 1122850643.147150.26988.nullmailer () svn ! kde ! org
[Download RAW message or body]

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());
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic