public function quoteIdentifier($name)
    {
        $quote = null;
        switch ($this->getAttribute(\PDO::ATTR_DRIVER_NAME)) {
            case 'pgsql':
            case 'sqlsrv':
            case 'dblib':
            case 'mssql':
            case 'sybase':
                $quote = '"';
                break;
            case 'mysql':
            case 'sqlite':
            case 'sqlite2':
            default:
                $quote = '`';
        }

        $parts = explode('.', $name);
        foreach ($parts as $k => $part) {
            if ($part !== '*') {
                $parts[$k] = $quote . $part . $quote;
            }
        }

        return implode('.', $parts);
    }
public function quoteIdentifier($name)
    {
        $quote = null;
        switch ($this->getAttribute(\PDO::ATTR_DRIVER_NAME)) {
            case 'pgsql':
            case 'sqlsrv':
            case 'dblib':
            case 'mssql':
            case 'sybase':
                $quote = '"';
                break;
            case 'mysql':
            case 'sqlite':
            case 'sqlite2':
            default:
                $quote = '`';
        }

        $parts = explode('.', $name);
        foreach ($parts as $k => $part) {
            if ($part !== '*') {
                $parts[$k] = $quote . $part . $quote;
            }
        }

        return implode('.', $parts);
    }
public function quoteIdentifier ( $ name ) { $ quote = null ; switch ( $ this -> getAttribute ( \ PDO :: ATTR_DRIVER_NAME ) ) { case 'pgsql' : case 'sqlsrv' : case 'dblib' : case 'mssql' : case 'sybase' : $ quote = '"' ; break ; case 'mysql' : case 'sqlite' : case 'sqlite2' : default : $ quote = '`' ; } $ parts = explode ( '.' , $ name ) ; foreach ( $ parts as $ k => $ part ) { if ( $ part !== '*' ) { $ parts [ $ k ] = $ quote . $ part . $ quote ; } } return implode ( '.' , $ parts ) ; }
Quote table or column
@param string $name
@return string
Quote table or column