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

[5.6] Wrap columns in whereRowValues() #25179

Merged
merged 1 commit into from
Aug 11, 2018
Merged

[5.6] Wrap columns in whereRowValues() #25179

merged 1 commit into from
Aug 11, 2018

Conversation

staudenmeir
Copy link
Contributor

@staudenmeir staudenmeir commented Aug 10, 2018

whereRowValues() doesn't wrap the columns:

$builder = DB::table('table')->whereRowValues(['column1', 'column2'], '=', ['foo', 'bar']);
dd($builder->toSql());

// expected: select * from "table" where ("column1", "column2") = (?, ?)
// actual:   select * from "table" where (column1, column2) = (?, ?)

@mfn
Copy link
Contributor

mfn commented Aug 11, 2018

You mean it's missing proper quotes when using e.g. upper case columns in Postgres.

@taylorotwell taylorotwell merged commit 4643442 into laravel:5.6 Aug 11, 2018
@staudenmeir staudenmeir deleted the where-row-values branch August 13, 2018 21:56
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