final public function sqlIn(
        string $field,
        array $values,
        string $commonType = CommonTypes::TTEXT,
        bool $positive = true,
        bool $includeNull = false
    ): string {
        if (! $positive) {
            trigger_error(
                __METHOD__ . ' with argument $positive = false is deprecated, use DBAL::sqlNotIn',
                E_USER_NOTICE
            );
            return $this->sqlNotIn($field, $values, $commonType, $includeNull);
        }
        if (0 === count($values)) {
            return '0 = 1';
        }
        return $field . ' IN ' . $this->sqlQuoteIn($values, $commonType, $includeNull);
    }
final public function sqlIn(
        string $field,
        array $values,
        string $commonType = CommonTypes::TTEXT,
        bool $positive = true,
        bool $includeNull = false
    ): string {
        if (! $positive) {
            trigger_error(
                __METHOD__ . ' with argument $positive = false is deprecated, use DBAL::sqlNotIn',
                E_USER_NOTICE
            );
            return $this->sqlNotIn($field, $values, $commonType, $includeNull);
        }
        if (0 === count($values)) {
            return '0 = 1';
        }
        return $field . ' IN ' . $this->sqlQuoteIn($values, $commonType, $includeNull);
    }
final public function sqlIn ( string $ field , array $ values , string $ commonType = CommonTypes :: TTEXT , bool $ positive = true , bool $ includeNull = false ) : string { if ( ! $ positive ) { trigger_error ( __METHOD__ . ' with argument $positive = false is deprecated, use DBAL::sqlNotIn' , E_USER_NOTICE ) ; return $ this -> sqlNotIn ( $ field , $ values , $ commonType , $ includeNull ) ; } if ( 0 === count ( $ values ) ) { return '0 = 1' ; } return $ field . ' IN ' . $ this -> sqlQuoteIn ( $ values , $ commonType , $ includeNull ) ; }
Return a comparison condition using IN operator
If the array of values is empty then create an always false condition "0 = 1"

@see sqlQuoteIn

@param string $field
@param array $values
@param string $commonType
@param bool $positive Set to FALSE to perform a NOT IN comparison
@param bool $includeNull

@return string
Return a comparison condition using IN operator If the array of values is empty then create an always false condition 0 = 1