Skip to content

Commit 356140a

Browse files
committed
Enum arrays now serialized as ints, not enum names
1 parent 7c7a42a commit 356140a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/CouchDB.Driver/Translators/ConstantExpressionTranslator.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ private void HandleConstant(object constant)
5656
_sb.Append(JsonConvert.SerializeObject(constant));
5757
}
5858
break;
59+
case TypeCode.Int32:
60+
_sb.Append((int)constant);
61+
break;
5962
default:
6063
_sb.Append(constant);
6164
break;

0 commit comments

Comments
 (0)