Skip to content

Conversation

clue
Copy link
Contributor

@clue clue commented Apr 2, 2018

This PR ensures that the Query class will only try to replace question marks in the given SQL string if bind params have actually been passed explicitly. If no bind params have been passed, it will no longer try to replace any params and thus no longer complain about missing params.

Resolves / closes #15
Builds on top of #39

@clue clue added the bug label Apr 2, 2018
@clue clue added this to the v0.3.2 milestone Apr 2, 2018
@WyriHaximus WyriHaximus requested review from jsor and WyriHaximus April 2, 2018 17:47
@WyriHaximus WyriHaximus merged commit 96bb4ff into friends-of-reactphp:master Apr 3, 2018
@clue clue deleted the param-binding branch April 3, 2018 20:22
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.

query() method replaces all question marks from query (LogicException in Query class)
3 participants