src/Driver/Quoter.php
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;
    }
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;
    }
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 ; }
Handle "IDENTIFIER AS ALIAS" expression.

@param string $identifier
@param string $alias
@param bool   $isTable
@return string
Handle IDENTIFIER AS ALIAS expression .