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

Operators sw,ew uses ILIKE which MySQL does not support #13

Open
indyo opened this issue May 18, 2017 · 2 comments
Open

Operators sw,ew uses ILIKE which MySQL does not support #13

indyo opened this issue May 18, 2017 · 2 comments

Comments

@indyo
Copy link

indyo commented May 18, 2017

https://github.com/esbenp/bruno/blob/master/src/EloquentBuilderTrait.php#L109

@carolinecennis
Copy link

in the Eloquent Builder Trait I added this to solve:
$dbType = Config::get('database.default');

                    if($dbType == 'postgres'){
                        $clauseOperator = $not ? 'NOT ILIKE' : 'ILIKE';
                    } else {
                        $clauseOperator = $not ? 'NOT LIKE' : 'LIKE';
                    }

@Carghaez
Copy link
Contributor

It has been fixed!

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

3 participants