Debug.Assert(_entryLen - 1 >= 0);
string sv = Encoding.UTF8.GetString(_input.ReadBytes(_entryLen - 1));
_entryDataValue = new BSONValue(_ctype, _entryKey, sv);
- Debug.Assert(_input.ReadByte() == 0x00); //trailing zero byte
+ var rb = _input.ReadByte();
+ Debug.Assert(rb == 0x00); //trailing zero byte
break;
}
case BSONType.BOOL:
<ConsolePause>false</ConsolePause>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'ReleaseUnix|AnyCPU' ">
- <DebugType>none</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release</OutputPath>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<ConsolePause>false</ConsolePause>
- <DefineConstants>DEBUG;</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'DebugWindows|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<ConsolePause>false</ConsolePause>
- <DefineConstants>DEBUG;EJDBDLL;</DefineConstants>
+ <DefineConstants>EJDBDLL;</DefineConstants>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Properties>
<MonoDevelop.Ide.Workspace ActiveConfiguration="ReleaseUnix" />
- <MonoDevelop.Ide.Workbench ActiveDocument="Ejdb.Tests/TestEJDB.cs">
+ <MonoDevelop.Ide.Workbench ActiveDocument="Ejdb.BSON/BSONIterator.cs">
<Files>
- <File FileName="Ejdb.Tests/TestEJDB.cs" Line="153" Column="36" />
- <File FileName="Ejdb.Tests/TestBSON.cs" Line="279" Column="31" />
- <File FileName="Ejdb.DB/EJDB.cs" Line="5" Column="10" />
- <File FileName="Ejdb.BSON/BSONDocument.cs" Line="279" Column="68" />
+ <File FileName="Ejdb.Tests/TestEJDB.cs" Line="155" Column="30" />
+ <File FileName="Ejdb.Tests/TestBSON.cs" Line="1" Column="1" />
+ <File FileName="Ejdb.BSON/BSONDocument.cs" Line="129" Column="1" />
+ <File FileName="Ejdb.DB/EJDB.cs" Line="133" Column="16" />
+ <File FileName="Ejdb.BSON/BSONIterator.cs" Line="230" Column="18" />
+ <File FileName="Ejdb.DB/EJDBQuery.cs" Line="158" Column="3" />
</Files>
<Pads>
<Pad Id="ProjectPad">
<State expanded="True" selected="True" />
</Pad>
<Pad Id="MonoDevelop.Debugger.WatchPad">
- <State>
- <Value>it.CurrentKey</Value>
- <Value>fields</Value>
- <Value>fields[i]</Value>
- <Value>nfc</Value>
- </State>
+ <State />
</Pad>
<Pad Id="ConnectionManagerPad">
<State selected="True" />
<Node name="nejdb" expanded="True">
<Node name="Ejdb" expanded="True">
<Node name="Tests" expanded="True">
- <Node name="TestBSON" expanded="True" />
<Node name="TestEJDB" expanded="True" />
</Node>
</Node>
<MonoDevelop.Ide.DebuggingService.Breakpoints>
<BreakpointStore>
<Breakpoint file="/home/adam/Projects/softmotions/ejdb/nejdb/Ejdb.Tests/TestBSON.cs" line="279" column="1" />
+ <Breakpoint file="/home/adam/Projects/softmotions/ejdb/nejdb/Ejdb.Tests/TestEJDB.cs" line="155" column="34" />
+ <Breakpoint file="/home/adam/Projects/softmotions/ejdb/nejdb/Ejdb.BSON/BSONIterator.cs" line="154" column="1" />
</BreakpointStore>
</MonoDevelop.Ide.DebuggingService.Breakpoints>
<MonoDevelop.Ide.DebuggingService.PinnedWatches />
case JBEINVALIDCOLNAME: return "invalid collection name";
case JBEINVALIDBSON: return "invalid bson object";
case JBEQINVALIDQCONTROL: return "invalid query control field starting with '$'";
- case JBEQINOPNOTARRAY: return "$strand, $stror, $in, $nin, $bt keys requires not empty array value";
+ case JBEQINOPNOTARRAY: return "$strand, $stror, $in, $nin, $bt keys require not empty array value";
case JBEMETANVALID: return "inconsistent database metadata";
case JBEFPATHINVALID: return "invalid JSEJDB_EXPORT const char *ejdbversion();ON field path value";
case JBEQINVALIDQRX: return "invalid query regexp value";