protected function getVarcharSQLDeclarationSnippet($length, $fixed)
    {
        if (!is_int($length) || (is_int($length) && ($length <= 0))) {
            throw PlatformException::invalidVarcharLength();
        }

        if (!is_bool($fixed)) {
            throw PlatformException::invalidVarcharFixedFlag();
        }

        if ($fixed) {
            return 'CHAR('.$length.')';
        }

        return 'VARCHAR('.$length.')';
    }