argoncloud/ActionBSON — Issue #6: ObjectID wrong type index
Author: Rulexec
Created: 2011-11-07 08:18:40+00:00
State: open

Here patch:

From 8a9ba4c974539bc0d1030851e513151b8abe5268 Mon Sep 17 00:00:00 2001
From: Rulexec
Date: Mon, 7 Nov 2011 10:17:03 +0200
Subject: [PATCH] fix ObjectID type index

---
src/org/serialization/bson/BSON.as | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/org/serialization/bson/BSON.as b/src/org/serialization/bson/BSON.as
index 81e87af..2866993 100644
--- a/src/org/serialization/bson/BSON.as
+++ b/src/org/serialization/bson/BSON.as
@@ -127,7 +127,7 @@ package org.serialization.bson {

} else if ( object is ObjectID ) {

-	type = BSON_DOUBLE;
+	type = BSON_OBJECTID;
value = toBSONObjectID( object as ObjectID );

} else if ( object is Date ) {
--
1.7.4.msysgit.0