Skip to content

Commit

Permalink
applied mongodb-perl-driver patch.
Browse files Browse the repository at this point in the history
  • Loading branch information
nightsailer committed Sep 5, 2010
1 parent 05a1dcf commit 0563c53
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 3 additions & 1 deletion AnyMongo.xs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ MODULE = AnyMongo PACKAGE = AnyMongo
PROTOTYPES: DISABLE

BOOT:
gv_fetchpv("AnyMongo::bson_char", GV_ADDMULTI, SVt_IV);
gv_fetchpv("AnyMongo::BSON::bson_char", GV_ADDMULTI, SVt_IV);
gv_fetchpv("AnyMongo::BSON::utf8_flag_on", GV_ADDMULTI, SVt_IV);
gv_fetchpv("AnyMongo::BSON::use_boolean", GV_ADDMULTI, SVt_IV);

MODULE = AnyMongo PACKAGE = AnyMongo::BSON
PROTOTYPES: DISABLE
Expand Down
3 changes: 1 addition & 2 deletions mongo_support.c
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,7 @@ elem_to_sv (int type, buffer *buf)
break;
}
case BSON_BOOL: {
dSP;
char d = *buf->pos++;
int count;
SV *use_bool = get_sv("AnyMongo::BSON::use_boolean", 0);
Expand All @@ -353,8 +354,6 @@ elem_to_sv (int type, buffer *buf)
break;
}

dSP;

SAVETMPS;

PUSHMARK(SP);
Expand Down

0 comments on commit 0563c53

Please sign in to comment.