summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Reichel <sre@ring0.de>2012-08-01 20:44:59 +0200
committerSebastian Reichel <sre@ring0.de>2012-08-01 20:44:59 +0200
commitec0a0cb024cab37c9424fb1402b2d1a6a6c0c055 (patch)
tree0331de14fb849571fcb4ee8130306f2dce38072b
parent501c116cee7bd4839eb68314129e26c0b2861307 (diff)
downloadserial-barcode-scanner-ec0a0cb024cab37c9424fb1402b2d1a6a6c0c055.tar.bz2
fix last change
-rw-r--r--db.vala6
1 files changed, 3 insertions, 3 deletions
diff --git a/db.vala b/db.vala
index de7c8b4..bf3e3da 100644
--- a/db.vala
+++ b/db.vala
@@ -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;
}
}