Skip to content

joinWhere does not work when table prefixes are set #513

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

Open
thurinus opened this issue Aug 14, 2016 · 0 comments
Open

joinWhere does not work when table prefixes are set #513

thurinus opened this issue Aug 14, 2016 · 0 comments

Comments

@thurinus
Copy link

Additional conditions added via joinWhere and joinOrWhere were not being honored on MysqliDb configurations with prefixes. A bit of debugging revealed that in _buildJoin, the table name stored in _join had the prefix, but the one in _joinAnd did not. This caused the condition isset($this->_joinAnd[$joinStr]) to fail and never consider any of the extra join conditions.

Problem stems from joinWhere commands being keyed by the raw table name as provided, without conditioning it like the way join does it.

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

No branches or pull requests

1 participant