Permalink
Browse files

update for newer lem-sqlite3

  • Loading branch information...
1 parent c29fe67 commit 9ccfd8635351786c9dd64d052322047f58405e1e @esmil esmil committed Jan 19, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 drinkomatic.lua
View
@@ -377,7 +377,7 @@ USER = {
UPDATE accounts SET balance = balance - @price WHERE id = @id; \z
INSERT INTO purchases (dt, product_id, account_id, amount) \z
VALUES (datetime('now'), @pid, @id, @price); \z
- COMMIT", { ['@id'] = id, ['@pid'] = pid, ['@price'] = price }))
+ COMMIT", { id = id, pid = pid, price = price }))
r = assert(db:fetchone(
"SELECT balance FROM accounts WHERE id = ?", id))

0 comments on commit 9ccfd86

Please sign in to comment.