diff options
author | Sebastian Reichel <sre@ring0.de> | 2012-08-01 20:44:59 +0200 |
---|---|---|
committer | Sebastian Reichel <sre@ring0.de> | 2012-08-01 20:44:59 +0200 |
commit | ec0a0cb024cab37c9424fb1402b2d1a6a6c0c055 (patch) | |
tree | 0331de14fb849571fcb4ee8130306f2dce38072b | |
parent | 501c116cee7bd4839eb68314129e26c0b2861307 (diff) | |
download | serial-barcode-scanner-ec0a0cb024cab37c9424fb1402b2d1a6a6c0c055.tar.bz2 |
fix last change
-rw-r--r-- | db.vala | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -140,7 +140,7 @@ public class Database { this.price_stmt.reset(); this.price_stmt.bind_text(1, "%llu".printf(article)); - this.price_stmt.bind_text(1, "%lld".printf(timestamp)); + this.price_stmt.bind_text(2, "%lld".printf(timestamp)); int rc = this.price_stmt.step(); @@ -151,10 +151,10 @@ public class Database { else return this.price_stmt.column_int(1); case Sqlite.DONE: - stderr.printf("unbekanntes Produkt: %llu", article); + stderr.printf("unbekanntes Produkt: %llu\n", article); return 0; default: - stderr.printf("[interner Fehler: %d]", rc); + stderr.printf("[interner Fehler: %d]\n", rc); return 0; } } |