bruno icon indicating copy to clipboard operation
bruno copied to clipboard

Operators sw,ew uses ILIKE which MySQL does not support

Open indyo opened this issue 8 years ago • 2 comments

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

indyo avatar May 18 '17 07:05 indyo

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';
                    }

carolinecennis avatar May 24 '17 13:05 carolinecennis

It has been fixed!

Carghaez avatar Aug 10 '17 03:08 Carghaez