encode undefined

This commit is contained in:
Mike Dirolf 2009-03-05 11:12:44 -05:00
parent cfb1cb73ce
commit 634766b14e
1 changed files with 4 additions and 0 deletions

View File

@ -197,6 +197,10 @@ static int write_element(VALUE key, VALUE value, VALUE extra) {
buffer_write_bytes(buffer, RSTRING(string_data)->ptr, length);
break;
}
if (strcmp(cls, "XGen::Mongo::Driver::Undefined") == 0) {
write_name_and_type(buffer, key, 0x06);
break;
}
}
case T_DATA:
{