Skip to content

Pool and debug settings always are true - #405

Merged
dresende merged 4 commits into
dresende:masterfrom
picatic:master
Dec 12, 2013
Merged

dresende merged 4 commits into
dresende:masterfrom
picatic:master

Conversation

@BelfordZ

Copy link
Copy Markdown
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
Copy Markdown
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