Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix parameter binding if query contains question marks #40

Merged
merged 1 commit into from
Apr 3, 2018

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 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