Commit 50ad785b authored by Honglei Zhang's avatar Honglei Zhang Committed by Qt by Nokia
Browse files

Convert Boolean value into integer


According to documentation, SQLite doesn't have a separate Boolean
storage class. Instead, values are stored as integers 0(false) and
1(true). In QSqlQuery::bindValue(), if a boolean value is bound
to a placeholder, it is converted to text true and false. This fix
converts boolean value to integer 0 and 1.

Task-number: QTBUG-23895
Change-Id: I4945971172f0b5e5819446700390033a1a4ce301
Reviewed-by: default avatarMichael Goddard <michael.goddard@nokia.com>
Reviewed-by: default avatarMark Brand <mabrand@mabrand.nl>
parent 1967c147
No related merge requests found
Showing with 65 additions and 0 deletions
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment