Commit Graph

3944 Commits

Author SHA1 Message Date
Hannes Magnusson
92ac59f4db Simplify logging domain 2014-07-30 20:25:53 +00:00
Hannes Magnusson
2fc706ae25 CID-39604: Fixed possible null dereferencing 2014-07-30 20:17:56 +00:00
Hannes Magnusson
d447f09294 s/executeWrite/executeWriteBatch/g as the class is called WriteBatch 2014-07-30 01:54:49 +00:00
Hannes Magnusson
f8c89f8ba0 Only collect and return the _id if requested - and never $this 2014-07-30 01:52:21 +00:00
Hannes Magnusson
8cc4cc6335 optimize BSON class' and allow ObjectID to have other then _id key 2014-07-30 01:51:31 +00:00
Hannes Magnusson
867f0ed6e4 Sprinkly tad bit more logging and fix coupleof protos 2014-07-30 01:50:53 +00:00
Hannes Magnusson
03ea6499a5 Add json_to_bson() function 2014-07-30 01:50:29 +00:00
Hannes Magnusson
c7ac4714b2 Try properly to read as much data as requested 2014-07-30 01:50:04 +00:00
Hannes Magnusson
ff87de2d0f Copy the oid 2014-07-30 01:49:38 +00:00
Hannes Magnusson
84a215df30 Make BSON types implement BSON\Type interface 2014-07-30 01:49:09 +00:00
Hannes Magnusson
0791154a3f Remove dirty hack and add a more dirty hack to fetch usable run-tests 2014-07-22 01:07:15 +00:00
Hannes Magnusson
c84245f0fa make sure a empty file doesn't break our build 2014-07-22 00:42:03 +00:00
Hannes Magnusson
1fa76c78fe Don't run tests under valgrind on travis... bug in valgrind+libmongoc 2014-07-22 00:29:10 +00:00
Hannes Magnusson
9276ecba0a Install libmongoc using mci generated packages 2014-07-22 00:20:47 +00:00
Hannes Magnusson
ca6824f78e Fix bson buffer 2014-07-21 22:20:35 +00:00
Hannes Magnusson
f23cef90ca Implement WriteConcern 2014-07-21 22:20:05 +00:00
Hannes Magnusson
19cfa46ee1 new tests 2014-07-21 22:07:48 +00:00
Hannes Magnusson
50f644b753 Fix zts 2014-07-21 20:55:16 +00:00
Hannes Magnusson
bb111df04c Fix constant generator & regenerate 2014-07-21 20:51:20 +00:00
Hannes Magnusson
1c43114e4a Implement readPreferences 2014-07-21 19:43:24 +00:00
Hannes Magnusson
69c8580f1a Improve ignore paths 2014-07-21 18:14:30 +00:00
Hannes Magnusson
6002ef605f Travis CI fixes
- Update ulimits to dump core
- run-tests.php has broken exit codes - detect failure better
- On failure, see if we have coredumps and then extract the bt
2014-07-21 18:09:28 +00:00
Hannes Magnusson
3c5ebe6a70 fix path to ignore 2014-07-19 04:22:47 +00:00
Hannes Magnusson
1a32de27b8 fix zts 2014-07-19 03:25:44 +00:00
Hannes Magnusson
a07234eb9a Add __toString() for ObjectID 2014-07-18 20:13:43 -07:00
Hannes Magnusson
e619946d8c Returned generate _id when adding objects to batches 2014-07-19 02:58:53 +00:00
Hannes Magnusson
be82fbda80 Improve example 2014-07-19 02:52:24 +00:00
Hannes Magnusson
0c644bb2c5 Add ObjectID support 2014-07-19 00:52:57 +00:00
Hannes Magnusson
8d85ce31a5 Forgotten things for new classes 2014-07-19 00:23:26 +00:00
Hannes Magnusson
283d6dd3c9 Fix \0 in property names (private props, ...) 2014-07-18 23:43:30 +00:00
Hannes Magnusson
18dac2fee7 Add the ability to automatically generate _id 2014-07-18 23:43:30 +00:00
Hannes Magnusson
6f00666b02 Better way to run the tests through valgrind 2014-07-18 23:43:30 +00:00
Hannes Magnusson
fdf1b4b1ff Missing new class 2014-07-18 16:45:26 -07:00
Hannes Magnusson
6360f5038a Add BSON objects and move generated classes into its own folders 2014-07-18 16:44:45 -07:00
Jeremy Mikola
a438cf5c6a Only use GeneratedId for upserts, not inserts
Identifiers generated for inserts will be returned from WriteBatch::insert()
2014-07-18 16:46:44 -04:00
Jeremy Mikola
7429d1e9db Replace createFromServers() factory method with getServers()
Servers are only constructed internally through a Manager, so the factory method no longer applies.
2014-07-18 16:45:16 -04:00
Jeremy Mikola
bce0363135 Create WriteConcern value object 2014-07-17 18:18:47 -04:00
Jeremy Mikola
74eeda6009 Merge pull request #10 from bjori/make-testclean
Replace clean-tests.sh with make target
2014-07-17 18:01:26 -04:00
Jeremy Mikola
ecab50ac0d Replace clean-tests.sh with make target 2014-07-17 18:01:14 -04:00
Hannes Magnusson
2a02f46356 Run the tests under valgrind on travis 2014-07-17 20:02:36 +00:00
Jeremy Mikola
619c29d3c1 Revise Manager::executeUpdate() error test
The multi and upsert options are not mutually exclusive, so this should not be an error case.
2014-07-17 15:31:28 -04:00
Jeremy Mikola
080053c7f7 Fix warning for bson_uint32_to_string() string pointer arg 2014-07-17 14:49:18 -04:00
Jeremy Mikola
2c78def242 Shell script to clean up leftover test files 2014-07-17 14:25:54 -04:00
Hannes Magnusson
b587120791 Fix constants value 2014-07-17 09:53:12 -07:00
Hannes Magnusson
e80fecb2d9 Regenerate after coverity fixes 2014-07-16 17:18:42 -07:00
Hannes Magnusson
619b58141f Ignore the bundled zval array helper header
I don't know why coveralls tries to find it in a wrong path either
2014-07-17 00:07:32 +00:00
Hannes Magnusson
e88b97f10f tralalalllala. It really needs to be dedicated branch
The travis build matrix doesn't count as one run, it counts as 4 :)
2014-07-16 23:58:17 +00:00
Hannes Magnusson
ed29f354d5 make clean first as it had already been built by compile.sh 2014-07-16 23:52:17 +00:00
Hannes Magnusson
dcd732c485 Get coverity to build the dry-run branch automatically 2014-07-16 23:39:45 +00:00
Hannes Magnusson
de35cf6cf0 I just learned about trap
Automatically exit on failure
2014-07-16 23:23:08 +00:00