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

Fix #372 since whereColumn automatically prepend table prefix #508

Merged
merged 1 commit into from
Mar 20, 2020
Merged

Conversation

Omranic
Copy link
Contributor

@Omranic Omranic commented Mar 16, 2020

This is related to #372

Problem trying to solve
whereColumn method already prepend table prefixes for columns.
This PR removes the duplicate prefix as it's currently produces db errors.

Scenario
PHP v7.4.3
Laravel v7.1.3
Bouncer v1.0.0-rc.7

Config (with database table prefix)

I didn't try Bouncer v1.0.0-rc.7 with Laravel v6, but currently the whereColumn method seems to be consistent with other database query grammer, and it's being prefixed as expected.

@JosephSilber
Copy link
Owner

Thanks!

Would you be able to add tests for this?

@Omranic
Copy link
Contributor Author

Omranic commented Mar 20, 2020

@JosephSilber Thank you for merging this, is there a new tagged release coming out soon?

@JosephSilber
Copy link
Owner

is there a new tagged release coming out soon?

As soon as you, I or anyone else can find the time to write a test for this.

JosephSilber added a commit that referenced this pull request Mar 30, 2020
@JosephSilber
Copy link
Owner

The new RC8 release includes this fix 👍

tszulc added a commit to RoomRoster/bouncer that referenced this pull request Mar 11, 2022
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.

2 participants