From: adam Date: Tue, 25 Jun 2013 06:21:59 +0000 (+0700) Subject: nejdb bugfix X-Git-Tag: v1.2.12~276^2~8 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=48f53c36cdb0306889ede168daca23fec002dc53;p=platform%2Fupstream%2Fejdb.git nejdb bugfix --- diff --git a/nejdb/Ejdb.BSON/BSONIterator.cs b/nejdb/Ejdb.BSON/BSONIterator.cs index 68c69f8..ac5ee26 100644 --- a/nejdb/Ejdb.BSON/BSONIterator.cs +++ b/nejdb/Ejdb.BSON/BSONIterator.cs @@ -255,7 +255,8 @@ namespace Ejdb.BSON { 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: diff --git a/nejdb/nejdb.csproj b/nejdb/nejdb.csproj index 07bb306..01b6cb0 100644 --- a/nejdb/nejdb.csproj +++ b/nejdb/nejdb.csproj @@ -24,13 +24,11 @@ false - none true bin\Release prompt 4 false - DEBUG; true @@ -49,7 +47,7 @@ prompt 4 false - DEBUG;EJDBDLL; + EJDBDLL; diff --git a/nejdb/nejdb.userprefs b/nejdb/nejdb.userprefs index 8634846..9da185b 100644 --- a/nejdb/nejdb.userprefs +++ b/nejdb/nejdb.userprefs @@ -1,11 +1,13 @@  - + - - - - + + + + + + @@ -23,12 +25,7 @@ - - it.CurrentKey - fields - fields[i] - nfc - + @@ -38,7 +35,6 @@ - @@ -50,6 +46,8 @@ + + diff --git a/tcejdb/ejdb.c b/tcejdb/ejdb.c index 71a88bd..b53c9e8 100644 --- a/tcejdb/ejdb.c +++ b/tcejdb/ejdb.c @@ -147,7 +147,7 @@ const char* ejdberrmsg(int ecode) { 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";