Skip to content

Conversation

@elcapo
Copy link
Contributor

@elcapo elcapo commented May 20, 2023

Hello @tpetry,

Here is my attempt to add support for string concatenation. It uses concat in all cases except in SQLite, where it uses the corresponding || operator.

I added a test but, honestly, I haven't been able to run the tests so this needs testing before merging.

@tpetry
Copy link
Owner

tpetry commented May 21, 2023

Thanks for your contribution.

I'll delay merging this PR until laravel/framework#46558 is merged. The current implementation of query expressions can't use arbitrary strings in expressions due to SQL injection problems. Only with the PR to Laravel this feature will be of use.

tpetry added a commit that referenced this pull request Jun 9, 2023
@tpetry tpetry closed this Jun 9, 2023
@tpetry
Copy link
Owner

tpetry commented Jun 9, 2023

This is now released with 0.5.0. Thanks for your contribution.

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