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

Pool and debug settings always are true #405

Merged
merged 4 commits into from
Dec 12, 2013
Merged

Conversation

BelfordZ
Copy link
Contributor

example:
ORM.connect("mysql://something:nothing@beep/boop?pool=false&debug=false", ...)
will still set debug == true and pool == true because calling the boolean constructor on a non-empty string always yields true.

This fix simply checks the val of debug and pool, and if they are falsy, sets them to false, or true otherwise. (still maintains the null-defaulting case).

dresende added a commit that referenced this pull request Dec 12, 2013
Pool and debug settings always are true
@dresende dresende merged commit 4dca6d3 into dresende:master Dec 12, 2013
@BelfordZ
Copy link
Contributor Author

Thanks Diogo =P

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants