Skip to content

Don't delete query values after formatting #509

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

Merged
merged 1 commit into from
Jun 17, 2013

Conversation

grncdr
Copy link
Contributor

@grncdr grncdr commented Jun 14, 2013

Back when I submitted #358, I added a line to delete query.values after the query had been formatted. This pull request removes that line because it's very handy to be able to log them in a structured manner in parts of the code that wouldn't normally have access to the parameters.

They may be useful to other users of the query object
@grncdr
Copy link
Contributor Author

grncdr commented Jun 14, 2013

The reason for doing it originally was that I didn't want to expose a new property on query objects, but now I think it makes more sense to leave it in place instead of deleting it part-way through the objects lifetime.

@tellnes
Copy link
Collaborator

tellnes commented Jun 14, 2013

LGTM

@dresende
Copy link
Collaborator

Thank you for pointing it out.

dresende added a commit that referenced this pull request Jun 17, 2013
Don't delete query values after formatting
@dresende dresende merged commit 340bf87 into mysqljs:master Jun 17, 2013
@grncdr grncdr deleted the dont-delete-query-values branch June 17, 2013 16:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants