Bug #2857: Fix boolean column for sqlite, do not report false errors in slave DB

(cherry picked from commit b3483aac7f29dd749ce732245a5fd952127d7ec1)