Skip to content
This repository was archived by the owner on Dec 24, 2022. It is now read-only.

Commit 20054b9

Browse files
committed
Merge pull request #181 from arhoads76/master
SqliteDialectProviderBase materialization of bit columns
2 parents 359ad70 + f3941d4 commit 20054b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ServiceStack.OrmLite.Sqlite/SqliteOrmLiteDialectProviderBase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ public override object ConvertDbValue(object value, Type type)
9696
{
9797
if (value == null || value is DBNull) return null;
9898

99-
if (type == typeof(bool))
99+
if (type == typeof(bool) && !(value is bool))
100100
{
101101
var intVal = int.Parse(value.ToString());
102102
return intVal != 0;

0 commit comments

Comments
 (0)