Skip to content

Commit

Permalink
Fix bson crash and mongo test
Browse files Browse the repository at this point in the history
  • Loading branch information
Buggynours committed Jul 31, 2021
1 parent 1d468ee commit 46fed49
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
12 changes: 10 additions & 2 deletions storage/connect/mysql-test/connect/t/mongo.inc
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
let $MONGO= C:/Applic/MongoDB/Server/3.6/bin/mongo;
let $MONGOIMPORT= C:/Applic/MongoDB/Server/3.6/bin/mongoimport;
#let $MONGO= C:/Applic/MongoDB/Server/3.6/bin/mongo;
#let $MONGOIMPORT= C:/Applic/MongoDB/Server/3.6/bin/mongoimport;
let $MONGO= mongo;
let $MONGOIMPORT= mongoimport;







3 changes: 3 additions & 0 deletions storage/connect/tabbson.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2422,6 +2422,7 @@ void TDBBSON::ResetSize(void)
MaxSize = Cardinal = -1;
Fpos = -1;
N = 0;
Docrow = NULL;
Done = false;
} // end of ResetSize

Expand Down Expand Up @@ -2480,6 +2481,7 @@ bool TDBBSON::SetRecpos(PGLOBAL, int recpos)
#endif // 0

Fpos = recpos - 1;
Docrow = NULL;
return false;
} // end of SetRecpos

Expand All @@ -2495,6 +2497,7 @@ bool TDBBSON::OpenDB(PGLOBAL g)
Fpos = -1;
NextSame = false;
SameRow = 0;
Docrow = NULL;
return false;
} // endif use

Expand Down

0 comments on commit 46fed49

Please sign in to comment.