SQLServer2012Keywords.php 761 Bytes
Newer Older
1 2 3 4
<?php

namespace Doctrine\DBAL\Platforms\Keywords;

5 6
use function array_merge;

7
/**
8
 * Microsoft SQL Server 2012 reserved keyword dictionary.
9 10 11
 *
 * @link    www.doctrine-project.com
 */
12
class SQLServer2012Keywords extends SQLServer2008Keywords
13 14 15 16 17 18 19 20 21 22 23
{
    /**
     * {@inheritdoc}
     */
    public function getName()
    {
        return 'SQLServer2012';
    }

    /**
     * {@inheritdoc}
24 25
     *
     * @link http://msdn.microsoft.com/en-us/library/ms189822.aspx
26 27 28
     */
    protected function getKeywords()
    {
29
        return array_merge(parent::getKeywords(), [
30 31 32 33
            'SEMANTICKEYPHRASETABLE',
            'SEMANTICSIMILARITYDETAILSTABLE',
            'SEMANTICSIMILARITYTABLE',
            'TRY_CONVERT',
34
            'WITHIN GROUP',
35
        ]);
36 37
    }
}