v0.9.36
What's Changed
- Add MongoPostgresWriteConsistencyTest by @suddendust in #280
- Fixes a bug in
PostgresResultIteratorWithBasicTypesin whichfloat4/realvalues were cast to strings. So say we have a fieldratingswith is arealfield - It would appear as"4.3"inDocumentinstead of4.3(Mongo behaves correctly so this fix is added for functional compatibility). - Added checks on the type of input in update parsers for fail-fast. This is inline with Mongo's behaviour.
- Handle array fields properly in
SETupdate parsers to parse them as a single value. - Fix the return behaviour of
Collection#upsertfor PG. Till now, it returnstrueif a new doc is created,falseif it's updated. This is not inline with the contract or Mongo's behaviour - So now, it returnstrueif it succeeds. - Handle
SETon entire JSONB columns properly. - Use
CommonUpdateValidatorfor flat PG collections.
Full Changelog: 0.9.35...0.9.36