Skip to content

Conversation

@kesselb
Copy link
Collaborator

@kesselb kesselb commented Aug 14, 2020

Found by Psalm (#21787)

Argument 2 of OCP\DB\QueryBuilder\IQueryBuilder::set expects string, OCP\DB\QueryBuilder\IParameter provided with a __toString method

quoteColumnName casts every instance of IParameter to string and almost every time set is used together with createNamedParameter like ->set('email', $query->createNamedParameter($remote->getEMail())).

This basically updates the documentation with the reality ;)

Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
@kesselb kesselb added 3. to review Waiting for reviews bug labels Aug 14, 2020
@kesselb kesselb added this to the Nextcloud 20 milestone Aug 14, 2020
@MorrisJobke
Copy link
Member

Merge as it is documentation only

@MorrisJobke MorrisJobke merged commit fb4e989 into master Aug 14, 2020
@MorrisJobke MorrisJobke deleted the debt/noid/add-parameter-to-set branch August 14, 2020 18:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants