Permalink
Browse files

[fix] mongo: Treat binaries datas as binaries datas..., Credit:Bug re…

…ported by Alok Menghrajani http://forum.opalang.org/1_324
  • Loading branch information...
1 parent 0a1a29e commit 4762c811e6ee7388d0a186dd3e1a3ceec4fb75c7 @BourgerieQuentin BourgerieQuentin committed Oct 9, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/stdlib/apis/mongo/wire_protocol.opa
View
2 lib/stdlib/apis/mongo/wire_protocol.opa
@@ -415,7 +415,7 @@ WireProtocol = {{
(match U.skip(input, if stbin == 2 then 4 else 0) with
| {success=(input,_)} ->
{success=({input with pos=input.pos+size},
- {some={~name; value={String=Binary.get_string(input.binary,input.pos,size)}}})}
+ {some={~name; value={Binary=Binary.get_binary(input.binary,input.pos,size)}}})}
| {~failure} -> {~failure})
| {~failure} -> {~failure})
| /*el_oid*/7 ->

0 comments on commit 4762c81

Please sign in to comment.