Skip to content
This repository was archived by the owner on Feb 1, 2022. It is now read-only.

PHP-1427 and PHP-1433: distinct() query param handling #845

Merged
merged 1 commit into from
Apr 23, 2015

Conversation

jmikola
Copy link
Member

@jmikola jmikola commented Apr 22, 2015


An empty query parameter should be omitted from the command document (consistent with other helpers). This will avoid the case where an empty array is serialized as a BSON array and the server complains that a BSON object was not provided.

Additionally, relax ZPP parsing to allow arrays or objects for the query (also consistent with other helpers).

@derickr
Copy link
Contributor

derickr commented Apr 23, 2015

LGTM

An empty query parameter should be omitted from the command document (consistent with other helpers). This will avoid the case where an empty array is serialized as a BSON array and the server complains that a BSON object was not provided.

Additionally, relax ZPP parsing to allow arrays or objects for the query (also consistent with other helpers).
@jmikola jmikola merged commit 9afd144 into mongodb:v1.6 Apr 23, 2015
jmikola added a commit that referenced this pull request Apr 23, 2015
@jmikola jmikola deleted the php-1427 branch April 23, 2015 15:52
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants