SQLServer2005Keywords.php 787 Bytes
Newer Older
1 2 3 4
<?php

namespace Doctrine\DBAL\Platforms\Keywords;

5 6 7
use function array_diff;
use function array_merge;

8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
/**
 * Microsoft SQL Server 2005 reserved keyword dictionary.
 *
 * @link    www.doctrine-project.com
 */
class SQLServer2005Keywords extends SQLServerKeywords
{
    /**
     * {@inheritdoc}
     */
    public function getName()
    {
        return 'SQLServer2005';
    }

    /**
     * {@inheritdoc}
     *
     * @link http://msdn.microsoft.com/en-US/library/ms189822%28v=sql.90%29.aspx
     */
    protected function getKeywords()
    {
30
        return array_merge(array_diff(parent::getKeywords(), ['DUMMY']), [
31 32 33 34 35
            'EXTERNAL',
            'PIVOT',
            'REVERT',
            'SECURITYAUDIT',
            'TABLESAMPLE',
36
            'UNPIVOT',
37
        ]);
38 39
    }
}