@@ -551,13 +551,13 @@ public Operator<T> concatenate(@Nullable Object value) {
551551 value = typeConverter .getDBValue (value );
552552 }
553553 if (value instanceof String || value instanceof IOperator
554- || value instanceof Character ) {
554+ || value instanceof Character ) {
555555 operation = String .format ("%1s %1s " , operation , Operation .CONCATENATE );
556556 } else if (value instanceof Number ) {
557557 operation = String .format ("%1s %1s " , operation , Operation .PLUS );
558558 } else {
559559 throw new IllegalArgumentException (
560- String .format ("Cannot concatenate the %1s" , value != null ? value .getClass () : "null" ));
560+ String .format ("Cannot concatenate the %1s" , value != null ? value .getClass () : "null" ));
561561 }
562562 this .value = value ;
563563 isValueSet = true ;
@@ -617,7 +617,8 @@ public String convertObjectToString(Object object, boolean appendInnerParenthesi
617617 converted = convertToDB ? typeConverter .getDBValue (object ) : object ;
618618 } catch (ClassCastException c ) {
619619 // if object type is not valid converted type, just use type as is here.
620- FlowLog .log (FlowLog .Level .W , c );
620+ FlowLog .log (FlowLog .Level .I , "Value passed to operation is not valid type for TypeConverter in the column. " +
621+ "Preserving value " + object + " to be used as is." );
621622 }
622623 return BaseOperator .convertValueToString (converted , appendInnerParenthesis , false );
623624 } else {
@@ -792,10 +793,10 @@ public T secondValue() {
792793 @ Override
793794 public void appendConditionToQuery (@ NonNull QueryBuilder queryBuilder ) {
794795 queryBuilder .append (columnName ()).append (operation ())
795- .append (convertObjectToString (value (), true ))
796- .appendSpaceSeparated (Operation .AND )
797- .append (convertObjectToString (secondValue (), true ))
798- .appendSpace ().appendOptional (postArgument ());
796+ .append (convertObjectToString (value (), true ))
797+ .appendSpaceSeparated (Operation .AND )
798+ .append (convertObjectToString (secondValue (), true ))
799+ .appendSpace ().appendOptional (postArgument ());
799800 }
800801
801802 @ Override
@@ -852,7 +853,7 @@ public In<T> and(@Nullable T argument) {
852853 @ Override
853854 public void appendConditionToQuery (@ NonNull QueryBuilder queryBuilder ) {
854855 queryBuilder .append (columnName ()).append (operation ())
855- .append ("(" ).append (OperatorGroup .joinArguments ("," , inArguments , this )).append (")" );
856+ .append ("(" ).append (OperatorGroup .joinArguments ("," , inArguments , this )).append (")" );
856857 }
857858
858859 @ Override
0 commit comments