Make MySQL return "number of found rows" instead of number of "affected rows".
Document why we have to check with defined() first.
Added test of OCS privatedata to trigger key duplication
Merge pull request #9749 from owncloud/backport-9672-stable7

Backport 9672 stable7