File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -58,10 +58,13 @@ protected override void GenerateBody(DynamicStream stream) {
58
58
stream . Append ( BsonTranslator . AsString ( this . GetDatabaseTarget ( ) ) ) ;
59
59
60
60
//generate the options and write them
61
- //BitVector32 options = new BitVector32(0);
62
- //options[0] = this.Options.Has(UpdateOptionTypes.Upsert);
63
- //options[1] = this.Options.Has(UpdateOptionTypes.MultiUpdate);
64
- stream . Append ( BsonTranslator . AsInt32 ( ( int ) this . Options ) ) ;
61
+ BitVector32 options = new BitVector32 ( 0 ) ;
62
+ options [ 1 ] = this . Options . Has ( UpdateOptionTypes . Upsert ) ;
63
+ options [ 2 ] = this . Options . Has ( UpdateOptionTypes . MultiUpdate ) ;
64
+ stream . Append ( BsonTranslator . AsInt32 ( options . Data ) ) ;
65
+
66
+ //not sure what the right way to do this is...
67
+ //stream.Append(BsonTranslator.AsInt32((int)this.Options));
65
68
66
69
//then the actual selection
67
70
stream . Append ( this . Parameters . ToBsonByteArray ( ) ) ;
You can’t perform that action at this time.
0 commit comments