@@ -37,7 +37,7 @@ extension ExpressionType where UnderlyingType : Number {
3737
3838}
3939
40- extension ExpressionType where UnderlyingType : _OptionalType , UnderlyingType. Wrapped : Number {
40+ extension ExpressionType where UnderlyingType : _OptionalType , UnderlyingType. WrappedType : Number {
4141
4242 /// Builds a copy of the expression wrapped with the `abs` function.
4343 ///
@@ -598,7 +598,7 @@ extension CollectionType where Generator.Element : Value, Index.Distance == Int
598598 /// - Returns: A copy of the expression prepended with an `IN` check against
599599 /// the collection.
600600 @warn_unused_result public func contains( expression: Expression < Generator . Element > ) -> Expression < Bool > {
601- let templates = " , " . join ( [ String] ( count: count, repeatedValue: " ? " ) )
601+ let templates = [ String] ( count: count, repeatedValue: " ? " ) . joinWithSeparator ( " , " )
602602 return " IN " . infix ( expression, Expression < Void > ( " ( \( templates) ) " , map { $0. datatypeValue } ) )
603603 }
604604
@@ -614,7 +614,7 @@ extension CollectionType where Generator.Element : Value, Index.Distance == Int
614614 /// - Returns: A copy of the expression prepended with an `IN` check against
615615 /// the collection.
616616 @warn_unused_result public func contains( expression: Expression < Generator . Element ? > ) -> Expression < Bool ? > {
617- let templates = " , " . join ( [ String] ( count: count, repeatedValue: " ? " ) )
617+ let templates = [ String] ( count: count, repeatedValue: " ? " ) . joinWithSeparator ( " , " )
618618 return " IN " . infix ( expression, Expression < Void > ( " ( \( templates) ) " , map { $0. datatypeValue } ) )
619619 }
620620
0 commit comments