diff options
author | Sybren van Elderen <info@lived.nl> | 2009-09-22 09:49:15 +0200 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2009-09-24 09:37:48 +0200 |
commit | 11812d35b14607aef409274a89c29e3e67d2aa2c (patch) | |
tree | ec5ffd35bf6c47230ea34f958dd98578c0dadb05 | |
parent | 53e433db6da39c99049984ad8cd767bbab1d8acf (diff) |
-rw-r--r-- | geld.cpp | 2 | ||||
-rw-r--r-- | transaction.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -94,7 +94,7 @@ void Geld::initDB(QString file) "description TEXT" ")" ); - q.exec("VACCUM"); + q.exec("VACUUM"); } diff --git a/transaction.cpp b/transaction.cpp index 36ca247..a0fa304 100644 --- a/transaction.cpp +++ b/transaction.cpp @@ -70,7 +70,7 @@ void Transaction::save(int id) QSqlQuery q; q.prepare(id ? "UPDATE transactions SET date = ?, amount = ?, contra = ?, description = ? WHERE id = ?" - : "INSERT INTO transactions (date, amount, contra, description) VALUES (?, ?, ?, ?, ?)" + : "INSERT INTO transactions (date, amount, contra, description) VALUES (?, ?, ?, ?)" ); q.addBindValue(m_ui->Date->text()); q.addBindValue(m_ui->Amount->text().toDouble()*100); |