Skip to content
New issue

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

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

Already on GitHub? # to your account

Correct issue #176: Ensure database setup before building select #197

Merged
merged 2 commits into from
May 28, 2014

Conversation

kendru
Copy link

@kendru kendru commented May 6, 2014

fixes #176
It appears that when not explicitly setting the database connection via ORM::set_db(), calling ORM::for_table() would not set up the database explicitly. This caused a situation where the database was getting set after the select statement was built, causing the limit clause to be built incorrectly. I also modified the existing test to accurately reflect the situation where this bug appeared.

@treffynnon
Copy link
Collaborator

Thanks for the pull request - this looks nice.

@treffynnon treffynnon added this to the 1.5.0 milestone May 6, 2014
treffynnon added a commit that referenced this pull request May 28, 2014
Correct issue #176: Ensure database setup before building select
@treffynnon treffynnon merged commit a1b30b9 into j4mie:develop May 28, 2014
@kendru kendru deleted the issue176 branch May 28, 2014 14:21
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants