protected function aliasing(string $identifier, string $alias, bool $isTable): string
    {
        $quoted = $this->quote($identifier, $isTable) . ' AS ' . $this->driver->identifier($alias);

        if ($isTable && strpos($identifier, '.') === false) {
            //We have to apply operation post factum to prevent self aliasing (name AS name)
            //when db has prefix, expected: prefix_name as name)
            $this->registerAlias($alias, $identifier);
        }

        return $quoted;
    }