Commit a38d1f3 1 parent ba684a3 commit a38d1f3 Copy full SHA for a38d1f3
File tree 1 file changed +22
-0
lines changed
1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -720,4 +720,26 @@ protected function compileUnionSelectFromDual(array $values): string
720
720
return 'select ' .$ values .' from dual ' ;
721
721
})->implode (' union all ' );
722
722
}
723
+
724
+ /**
725
+ * Compile a "where like" clause.
726
+ *
727
+ * @param \Illuminate\Database\Query\Builder $query
728
+ * @param array $where
729
+ * @return string
730
+ */
731
+ protected function whereLike (Builder $ query , $ where )
732
+ {
733
+ $ where ['operator ' ] = $ where ['not ' ] ? 'not like ' : 'like ' ;
734
+
735
+ if ($ where ['caseSensitive ' ]) {
736
+ return $ this ->whereBasic ($ query , $ where );
737
+ }
738
+
739
+ $ value = $ this ->parameter ($ where ['value ' ]);
740
+
741
+ $ operator = str_replace ('? ' , '?? ' , $ where ['operator ' ]);
742
+
743
+ return 'upper( ' .$ this ->wrap ($ where ['column ' ]).') ' .$ operator .' upper( ' .$ value .') ' ;
744
+ }
723
745
}
You can’t perform that action at this time.
0 commit comments