Вход Регистрация
Файл: vendor/doctrine/dbal/lib/Doctrine/DBAL/Platforms/PostgreSQL91Platform.php
Строк: 40
<?php

namespace DoctrineDBALPlatforms;

use function 
explode;

/**
 * Provides the behavior, features and SQL dialect of the PostgreSQL 9.1 database platform.
 *
 * @deprecated Use PostgreSQL 9.4 or newer
 */
class PostgreSQL91Platform extends PostgreSqlPlatform
{
    
/**
     * {@inheritDoc}
     */
    
public function supportsColumnCollation()
    {
        return 
true;
    }

    
/**
     * {@inheritdoc}
     */
    
protected function getReservedKeywordsClass()
    {
        return 
KeywordsPostgreSQL91Keywords::class;
    }

    
/**
     * {@inheritDoc}
     */
    
public function getColumnCollationDeclarationSQL($collation)
    {
        return 
'COLLATE ' $this->quoteSingleIdentifier($collation);
    }

    
/**
     * {@inheritDoc}
     */
    
public function getListTableColumnsSQL($table$database null)
    {
        
$sql   parent::getListTableColumnsSQL($table$database);
        
$parts explode('AS complete_type,'$sql2);

        return 
$parts[0] . 'AS complete_type, '
            
'(SELECT tc.collcollate FROM pg_catalog.pg_collation tc WHERE tc.oid = a.attcollation) AS collation,'
            
$parts[1];
    }
}
Онлайн: 0
Реклама