From cbb41cab46e9ef7ffc1f89fe1bbc7673824d404c Mon Sep 17 00:00:00 2001 From: David Sansome Date: Sun, 21 Mar 2010 13:50:00 +0000 Subject: [PATCH] Store these booleans as ints so sqlite doesn't get confused. Fixes issue #82 --- src/song.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/song.cpp b/src/song.cpp index b408f25a8..ae0e50389 100644 --- a/src/song.cpp +++ b/src/song.cpp @@ -370,8 +370,8 @@ void Song::BindToQuery(QSqlQuery *query) const { query->bindValue(":lastplayed", -1); // TODO query->bindValue(":rating", -1); - query->bindValue(":forced_compilation_on", d->forced_compilation_on_); - query->bindValue(":forced_compilation_off", d->forced_compilation_off_); + query->bindValue(":forced_compilation_on", d->forced_compilation_on_ ? 1 : 0); + query->bindValue(":forced_compilation_off", d->forced_compilation_off_ ? 1 : 0); #undef intval }