Skip to content
Browse files

Fixed CSHARP-478. Changed the default for commands from { commandName…

… : true } to { commandName : 1}. They are supposed to be equivalent (and the Java driver also uses true) but there is at least one server command that is picky and wants to see a 1.
  • Loading branch information...
1 parent aad28d7 commit f74ddc37b83dfb379b8f90ae30bb24b7b1bb5eed rstam committed Jun 6, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 Driver/Core/MongoDatabase.cs
  2. +1 −1 DriverUnitTests/Core/CommandResults/CommandResultTests.cs
View
2 Driver/Core/MongoDatabase.cs
@@ -991,7 +991,7 @@ public virtual CommandResult RunCommandAs(Type commandResultType, IMongoCommand
/// <returns>A TCommandResult</returns>
public virtual CommandResult RunCommandAs(Type commandResultType, string commandName)
{
- var command = new CommandDocument(commandName, true);
+ var command = new CommandDocument(commandName, 1);
return RunCommandAs(commandResultType, command);
}
View
2 DriverUnitTests/Core/CommandResults/CommandResultTests.cs
@@ -41,7 +41,7 @@ public void Setup()
[Test]
public void TestOkMissing()
{
- var command = new CommandDocument("invalid", true);
+ var command = new CommandDocument("invalid", 1);
var document = new BsonDocument();
var result = new CommandResult(command, document);
try

0 comments on commit f74ddc3

Please sign in to comment.
Something went wrong with that request. Please try again.