Skip to content

Commit

Permalink
Merge branch 'nextversion' into rest
Browse files Browse the repository at this point in the history
  • Loading branch information
Reinaldo Araujo Barreto Junior committed Jul 6, 2022
2 parents 3fa4887 + e4f338c commit e87bff2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion base/classes/helpers/SqlHelper.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,11 @@ public static function getSqlTypeTextLike( $stringWhere
$testZero = empty($testZero)?true:$testZero;
$connector = empty($connector)?self::SQL_CONNECTOR_AND:$connector;
$value = self::explodeTextString($value);
$isTrue = EOL.' AND '.$attribute.' like \'%'.$value.'%\' ';
if ( self::getDbms() == DBMS_SQLSERVER ) {
$isTrue = EOL.' AND '.$attribute.' like \'%'.$value.'%\' COLLATE Latin1_General_CI_AI';
} else {
$isTrue = EOL.' AND '.$attribute.' like \'%'.$value.'%\' ';
}
$attribute = self::attributeIssetOrNotZero($arrayWhereGrid,$attribute,$isTrue,null,$testZero);
$stringWhere = $stringWhere.$attribute;
return $stringWhere;
Expand Down

0 comments on commit e87bff2

Please sign in to comment.