summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSebastian Reichel <sre@ring0.de>2018-07-17 20:58:40 +0200
committerSebastian Reichel <sre@ring0.de>2018-07-18 01:27:02 +0200
commitfd24973c6996402269eece9049071a2064652592 (patch)
tree84f4c5379207ee49a2df1a9a5cc59c55c37fe759 /src
parentf77ef3ceb3b828724a60c4838b3524e8f7c5115b (diff)
downloadserial-barcode-scanner-fd24973c6996402269eece9049071a2064652592.tar.bz2
database: fix stock_status
Diffstat (limited to 'src')
-rw-r--r--src/database/database.vala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/database/database.vala b/src/database/database.vala
index ab9c5d2..0b37775 100644
--- a/src/database/database.vala
+++ b/src/database/database.vala
@@ -285,7 +285,7 @@ public class DataBase : Object {
statements["stock_status"].reset();
while(statements["stock_status"].step() == Sqlite.ROW) {
DetailedProduct entry = {
- statements["stock_status"].column_int(0),
+ uint64.parse(statements["stock_status"].column_text(0)),
statements["stock_status"].column_text(1),
statements["stock_status"].column_text(2),
statements["stock_status"].column_int(3),