protected function getDelimiter($delimiter = ';', $query = null)
    {
        while (1) {
            if ($query === null || strpos($query, $delimiter) === false) {
                return $delimiter;
            }

            $delimiter .= $delimiter;
        }
    }