@@ -584,7 +584,7 @@ public function distinct(bool $val = true)
584584 */
585585 public function from ($ from , bool $ overwrite = false ): self
586586 {
587- if ($ overwrite === true ) {
587+ if ($ overwrite ) {
588588 $ this ->QBFrom = [];
589589 $ this ->db ->setAliasedTables ([]);
590590 }
@@ -774,7 +774,7 @@ protected function whereHaving(string $qbKey, $key, $value = null, string $type
774774 foreach ($ keyValue as $ k => $ v ) {
775775 $ prefix = empty ($ this ->{$ qbKey }) ? $ this ->groupGetType ('' ) : $ this ->groupGetType ($ type );
776776
777- if ($ rawSqlOnly === true ) {
777+ if ($ rawSqlOnly ) {
778778 $ k = '' ;
779779 $ op = '' ;
780780 } elseif ($ v !== null ) {
@@ -1155,8 +1155,8 @@ protected function _like($field, string $match = '', string $type = 'AND ', stri
11551155 $ keyValue = ! is_array ($ field ) ? [$ field => $ match ] : $ field ;
11561156
11571157 foreach ($ keyValue as $ k => $ v ) {
1158- if ($ insensitiveSearch === true ) {
1159- $ v = strtolower ($ v );
1158+ if ($ insensitiveSearch ) {
1159+ $ v = mb_strtolower ($ v, ' UTF-8 ' );
11601160 }
11611161
11621162 $ prefix = empty ($ this ->{$ clause }) ? $ this ->groupGetType ('' ) : $ this ->groupGetType ($ type );
@@ -1192,7 +1192,7 @@ protected function _like($field, string $match = '', string $type = 'AND ', stri
11921192 */
11931193 protected function _like_statement (?string $ prefix , string $ column , ?string $ not , string $ bind , bool $ insensitiveSearch = false ): string
11941194 {
1195- if ($ insensitiveSearch === true ) {
1195+ if ($ insensitiveSearch ) {
11961196 return "{$ prefix } LOWER( " . $ this ->db ->escapeIdentifiers ($ column ) . ") {$ not } LIKE : {$ bind }: " ;
11971197 }
11981198
@@ -1604,7 +1604,7 @@ public function getCompiledSelect(bool $reset = true): string
16041604 {
16051605 $ select = $ this ->compileSelect ();
16061606
1607- if ($ reset === true ) {
1607+ if ($ reset ) {
16081608 $ this ->resetSelect ();
16091609 }
16101610
@@ -1648,7 +1648,7 @@ public function get(?int $limit = null, int $offset = 0, bool $reset = true)
16481648 ? $ this ->getCompiledSelect ($ reset )
16491649 : $ this ->db ->query ($ this ->compileSelect (), $ this ->binds , false );
16501650
1651- if ($ reset === true ) {
1651+ if ($ reset ) {
16521652 $ this ->resetSelect ();
16531653
16541654 // Clear our binds so we don't eat up memory
@@ -1683,7 +1683,7 @@ public function countAll(bool $reset = true)
16831683
16841684 $ query = $ query ->getRow ();
16851685
1686- if ($ reset === true ) {
1686+ if ($ reset ) {
16871687 $ this ->resetSelect ();
16881688 }
16891689
@@ -1732,7 +1732,7 @@ public function countAllResults(bool $reset = true)
17321732
17331733 $ result = $ this ->db ->query ($ sql , $ this ->binds , false );
17341734
1735- if ($ reset === true ) {
1735+ if ($ reset ) {
17361736 $ this ->resetSelect ();
17371737 } elseif (! isset ($ this ->QBOrderBy )) {
17381738 $ this ->QBOrderBy = $ orderBy ;
@@ -1786,7 +1786,7 @@ public function getWhere($where = null, ?int $limit = null, ?int $offset = 0, bo
17861786 ? $ this ->getCompiledSelect ($ reset )
17871787 : $ this ->db ->query ($ this ->compileSelect (), $ this ->binds , false );
17881788
1789- if ($ reset === true ) {
1789+ if ($ reset ) {
17901790 $ this ->resetSelect ();
17911791
17921792 // Clear our binds so we don't eat up memory
@@ -2302,7 +2302,7 @@ public function getCompiledInsert(bool $reset = true)
23022302 array_values ($ this ->QBSet )
23032303 );
23042304
2305- if ($ reset === true ) {
2305+ if ($ reset ) {
23062306 $ this ->resetWrite ();
23072307 }
23082308
@@ -2471,7 +2471,7 @@ public function getCompiledUpdate(bool $reset = true)
24712471
24722472 $ sql = $ this ->_update ($ this ->QBFrom [0 ], $ this ->QBSet );
24732473
2474- if ($ reset === true ) {
2474+ if ($ reset ) {
24752475 $ this ->resetWrite ();
24762476 }
24772477
0 commit comments